Home » Archives for Mary Zheng » Page 12

Author Archives: Mary Zheng

Mary has graduated from Mechanical Engineering department at ShangHai JiaoTong University. She also holds a Master degree in Computer Science from Webster University. During her studies she has been involved with a large number of projects ranging from programming and software engineering. She works as a senior Software Engineer in the telecommunications sector where she acts as a leader and works with others to design, implement, and monitor the software solution.

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 »

Apache ActiveMQ File Transfer Example

1. Introduction Apache ActiveMQ (AMQ) is a message broker which transfers messages from sender to receiver. In this example, I will build two simple AMQ applications which will transfer files from one location to another: A producer sends a file via BytesMessage or BlobMessage A consumer receives the BytesMessage or BlobMessage and saves it as a file     2. JMS Message Type JMS ...

Read More »

Apache ActiveMQ Distributed Queue Tutorial

Apache ActiveMQ (AMQ) is an open source messaging server written in Java, which implements JMS 1.1 specifications. In this article, I will demonstrate how to utilize a distributed queue within a group of AMQ brokers.                   Table Of Contents 1. Introduction 2. Apache ActiveMQ Server Installation 3. Producer Java Application 3.1. MessageProducerApp ...

Read More »

Apache ActiveMQ Monitoring Tutorial

Apache ActiveMQ (AMQ) is an open source messaging server written in Java which implements JMS 1.1 specifications. In this example, I will explain how to monitor an AMQ server.                   Table Of Contents 1. Introduction 2. Monitor ActiveMQ JVM 3. Monitor ActiveMQ Web Console 4. Monitor ActiveMQ File System 5. Monitor ActiveMQ ...

Read More »

Apache ActiveMQ Failover Example

Apache ActiveMQ is an open source messaging server written in Java, which implements JMS 1.1 specifications. In this example, I will demonstrate how to configure a group of AMQ brokers to make the system fault-tolerant.                 Table Of Contents 1. Introduction 2. Apache ActiveMQ Server Installation 3. Apache ActiveMQ Server Configuration 3.1 Two ...

Read More »

Apache ActiveMQ Load Balancing Example

1. Introduction Apache ActiveMQ (AMQ) is a message broker which transfers the message from the sender to the receiver. Load Balancing is the process of distributing data across services for better performance. In this example, we will demonstrate how to build a load-balanced AMQ client application.           2. The Component Diagram In this example, we will demonstrate two forms of load ...

Read More »

Apache ActiveMQ Best Practices Tutorial

Apache ActiveMQ is an open source messaging server written in Java which implements JMS 1.1 specifications. In this tutorial, you will learn how to develop a few Java applications which integrate ActiveMQ to send and receive messages to and from destinations. If you already know how to install and configure ActiveMQ, you can skip the first four chapters.       ...

Read More »

Java Quartz vs Spring Batch Example

1. Introduction This example shows how to build a Quartz scheduler and Spring Batch application. Both applications execute a business task repeatedly in a different way. Quartz is an open source library designed to schedule a job for enterprises. Quartz application repeatedly executes the job based on the scheduled time. Spring Batch is an open source framework designed to enable the development ...

Read More »

Java Quartz Scheduler vs Java Timer Example

1.Introduction This example builds two java scheduler applications: one utilizes Quartz scheduler and the other uses java built-in Timer library. Quartz – an open source library, enables enterprise to schedule a job/task at a specific date and time.  It provides operations to scheduling/unscheduling jobs, starting/stopping/pausing the scheduler. JDK built-in Timer library enables an application to run the task in a ...

Read More »