Home » Enterprise Java » Page 39

Enterprise Java

Log4j ImmediateFlush Property Example

This article is a tutorial about log priority levels in Log4j. In this tutorial, we are going to configure log4j via property files. 1. Introduction Log4J (Java) is a widely used logging framework for Java. It continues to grow continuously with the recent upgrade to Log4j2. Log4j supports logging via Logger, Appender and Layouts. Logger is the interaction point for ...

Read More »

Spring Integration Custom Transformer Example

1. Introduction Spring Integration provides a transformer mechanism to convert message payloads from one form to another between two channels. In this article, we will see how to implement a simple custom transformer. 2. Application The application is a Spring Boot application in which a Map is sent to a message channel. A Spring Integration Transformer listens to the message ...

Read More »

Log4j Priority Example

This article is a tutorial about log priority levels in Log4j. In this tutorial, we are going to configure log4j via property files. 1. Introduction Log4J (Java) is a widely used logging framework for Java. It continues to grow continuously with the recent upgrade to Log4j2. Log4j supports logging via Logger, Appender and Layouts. Logger is the interaction point for ...

Read More »

Spring Boot Logging Example

Looking to learn about Spring Boot Logging? Read this example, it is very straight forward and simple. 1. Assumptions This article assumes that you know your way around Eclipse. You are familiar with Maven. This project has been created using Eclipse Mars so all instructions are based on this IDE. This article uses the code base from the Spring Boot ...

Read More »

JAX-WS Callback Example

1. Introduction Java Architecture for XML Web Services (JAX-WS) is a Java programming language for creating web services, particularly SOAP services. JAX-WS provides both Callback and Polling mechanisms to invoke web services asynchronously. In Callback mode, the client provides a callback handler to accept and process the inbound response object. In this example, I will demonstrate how to invoke a JAX-WS ...

Read More »

JAX-WS JAXB Example

1. Introduction Java Architecture for XML Web Services (JAX-WS) is a Java programming language for creating web services, particularly SOAP services. Java Architecture for XML Binding (JAXB) is a Java-XML binding technology that simplifies the development of web services by enabling transformations between a schema and Java objects, and also between XML instance documents and Java object instances. Both JAX-WS ...

Read More »

Log4j Specific File Location Example

This article is a tutorial about logging to files in specific location. We will first checkout other logging methods and then proceed to log to a specific location. 1. Introduction Log4J(Java) is the widely used logging framework for Java. It continues to grow continuously with recent upgrade of Log4j2. Log4j helps to log files to a file or console or ...

Read More »

JAX-WS Dynamic Proxy Client Example

1. Introduction Java API for XML Web Services (JAX-WS) is a Java programming language for creating web services, particularly SOAP services. JAX-WS wsimport generates java stubs and binds the web service during the compile time. The generated client code binds to the WSDL at a specific service implementation. Clients need to regenerate the stubs when WSDL is updated. JAX-WS provides libraries ...

Read More »

JAX-WS BindingProvider Example

1. Introduction Java API for XML Web Services ( JAX-WS) is a Java programming language for creating web services, particularly SOAP services. BindingProvider is an interface which provides access to the protocol binding and associated context objects for request and response message processing. In this example, I will build a JAX-WS application and demonstrate how to use BindingProvider to set the http header value. ...

Read More »

Java Servlet and JSP Example

In this article we will demonstrate a simple Servlet and JSP example using the maven cargo plugin from the command line. We will also cover, albeit briefly, the functioning of both Servlet and JSP constructs within the Servlet Container in terms of how they are used to satisfy a HTTP request. The sample application will greet you with your name, ...

Read More »