Activemq Jndi Lookup Example

Camel will use JNDI as the default Registry implementation if you do not use Spring. NoInitialContextException: Need to specify class name in > environment or system property, or as an applet parameter, or in an > application. (DataSource) context. When used with the JMX support it can be an invaluable tool for working with ActiveMQ Web console 5. ActiveMQ and JMS : Basic steps for novice. Complete the Service tab to specify authentication and timeout activities that override the default authentication process, and, if using LDAP, to store the connection information for the LDAP directory server. WildFly 11 provides the rebalanceConnections activation configuration property for MDBs. * classes and I'm > getting a different exception now: > javax. The following example demonstrates how to make connection to a LDAP server using JNDI (Java Naming and Directory Interface) APIs in Java. That said, the. Please consider disabling your ad blocker for Java4s. Hi, I just downloaded activeMQ 4. Use the jms. @Lookup is useful for: Injecting a prototype-scoped bean into a singleton bean (similar to Provider) Injecting dependencies procedurally; Note also that @Lookup is the Java equivalent of the XML element lookup-method. DefaultObject: Sets a reference to an instance of an object to fall back to if the JNDI lookup fails. Use jmsJndiConnectionFactory to obtain one via JNDI lookup or create it by yourself. Configure the ESB to work with one ActiveMQ broker as described above. JournalDev Java, Java EE, Android, Python, Web Development Tutorials. How to Use JNDI Local Namespace in WebSphere Studio V5, With Sample Code The Java Naming and Directory Interface (JNDI) is an important part of J2EE that specifies how to find an artifact by name (e. Today we will extend ActiveMQ Hello World to use JNDI to lookup javax. Running into all sorts of problems. 30 Responses to “EJB3 – HelloWorld example Using Weblogic 10. To map a logical JNDI name to the global JNDI data source name in a Session EJB, declare a resource reference in the JBoss-specific deployment descriptor file jboss. you just need to create your own jndi. You could do the same to configure MQSeries, TibCo, BEA, Sonic and so on. We used ActiveMQ 5. lookup(WLContextImpl. The following are top voted examples for showing how to use javax. That way you can make available your DataSource as spring bean. Connecting to the JMS Server by Using JNDI You can connect to any JMS server by using the Java Naming and Directory Interface (JNDI) to locate an existing JMS connection factory. ConnectionFactory rather than creating ActiveMQConnectionFactory directly. QueueReceiver. A name can also be an object that implements the Name interface; however a string is the most common way to name an object. In this example, port 61616 is used for one ActiveMQ instance and port 61617 is used for the other ActiveMQ instance. java” like following. During application deployment, this resource reference is mapped to a configured, managed Connection Factory that is stored in the JNDI namespace of the application server. In the example below, we will create a factory that only knows how to create com. @Lookup is useful for: Injecting a prototype-scoped bean into a singleton bean (similar to Provider) Injecting dependencies procedurally; Note also that @Lookup is the Java equivalent of the XML element lookup-method. , connection factory and destination) to and from a LDAP directory server (DS) like Apache Directory Server. Note: This tab only appears for custom authentication services. By setting JDBC specific, you can slightly change the behavior of the connection such a. JNDI (Java Naming and Directory Interface) organizes its names into a hierarchy. ActiveMQInitialContextFactory # use the. doLookup(Name name) InitialContext. connectionFactory: mandatory, an instance of ConnectionFactory. It still failed to discover the broker/queue. lookup properties in the above example make use of an ActiveMQ feature that allows special JNDI namespaces to be reserved for dynamic topics and queues (dynamic means they are not predefined in the broker but are instead created by the application as needed). Failed to start REST service Hi, I'm a newbie. JNDI is used to specify port, driver, user name, and password information for the Audit and Quartz databases that are housed on your Pentaho Repository database. java to Subcribe for messages. If the tutorial you are trying to follow explains the JMS tutorial in the context of web application, then most likely there are some setups to be done in the application server (e. If you prefer not to use JNDI, these could be instantiated directly. 0) 'activemq-all-5. http://git-wip-us. The HornetQ codebase was donated to the Apache ActiveMQ project, and the HornetQ community joined to build a next-generation messaging broker. Spring framework sample applicationContext. Load properties from jndi. RegistryContext. java” like following. This section shows you how to define your JNDI database connection information. destination. ActiveMQ queues and topics are dynamically created when you actually use them, for example, when you actually send a message to a queue. NET,PHP etc. JNDI is used to specify port, driver, user name, and password information for the Audit and Quartz databases that are housed on your Pentaho Repository database. Lookup − This refers to looking up and getting an. My end point cannot be found because of some Spring JNDI lookup problem. lookup properties in the above example make use of an ActiveMQ feature that allows special JNDI namespaces to be reserved for dynamic topics and queues (dynamic means they are not predefined in the broker but are instead created by the application as needed). If you are not using JNDI for some reason, please replace the JNDI lookup spring tags with bean declaration of connection factory and queues. Check that ActiveMQ started successfully by running the following command from a Unix command shell netstat -an|grep 61616 (port 61616 is the default Act 3. If an object, registered to JNDI, is supposed to be looked up by remote JNDI clients (i. properties and. If you prefer not to use JNDI, these could be instantiated directly. Create jndi. However, the latest information on ActiveMQ RA indicates that it DOES support JNDI naming of JMS destinations. a client that runs in a separate JVM), then it must be registered under java:jboss/exported context. Connecting multiple ActiveMQ brokers The ESB Profile of WSO2 EI can be configured as described below to work with two ActiveMQ brokers. * and javax. So our existing code finds already existing queues in the JMS server just by doing: Queue jmsqueue = (javax. Glassfish, JBoss) or web server (e. step guide for activemq installation with example? org. Interface) lookup. xml configuration spring. Getting started with Java Messaging Service (JMS) Posted on April 27, 2013 by rupalchatterjee This blog will basically focus on the practical implementation of JMS. ActiveMQInitialContextFactory # use the following property to configure the default connector java. Suffice to say, the JNDI support is completely local and has nothing to do with server. TomEE is run from within Eclipse (via Server configuration). Queue it will send messages to. x Description - Standalone JAVA client is unable to lookup EJB hosted in a clustered environment in WAS 5. ActiveMQ Queue JNDI Publisher Consumer. properties file on my classpath. JBoss Web provides a JNDI InitialContext implementation instance for each web application running under it, in a manner that is compatible with those provided by a Java2 Enterprise Edition application server. For example if you are using Spring you must define the bean in the spring. The JNDI view is specific to every application server. Create an initial context to perform the JNDI lookup. lookup() calls instead of 4. Then, select the JMS Point-to-Point sampler element in the tree. Running into all sorts of problems. Important: To run a JMS virtual service on some computer, you need to install and configure a JMS provider (like ActiveMQ) and, if the service uses it, a JMS manager (like HermesJMS). ActiveMQ Queue JNDI Publisher Consumer. Re: making queues findable from InitialContext. connectionFactory: mandatory, an instance of ConnectionFactory. The Java Messaging Service (JMS) is a method of communicating with services. Context interface. DefaultObject: Sets a reference to an instance of an object to fall back to if the JNDI lookup fails. Hi, In this example we will see how to bind custom objects in the JNDI tree of “JBoss AS7. Suffice to say, the JNDI support is completely local and has nothing to do with server. ActiveMQInitialContextFactory. Connecting the Interconnect Router to an AMQ7 Broker. If the case of dynamic programmatic JNDI lookup, instead of annotating a field (or a property) as an injection target, you can annotate a class (such as a Servlet) to establish a reference to an EJB. client uses this name to lookup for an object allows to look up an object when its provided with a name. properties file - then injects the remaining properties in the file. java would be best, like an additional command extension to the activemq-admin tool. ActiveMQInitialContextFactory # use the following property to configure the default connector java. I have deployed the same in TOMCAT 7. According ActiveMQ documentation touching JNDI, if I want to use ConectionFactories and Queues (Topics) via JNDI, I have to place jndi. Existing system: I have a Restful service API developed with JAX-RS and jersey. To add an Apache ActiveMQ provider that is running on the local machine with context lookup for destinations, add these entries to the file JMS_ProviderInfo_User. Requirement of JMS, advantage of JMS, JMS Programming Model, JMS Queue Example, Create connection factory and destination resource, Create connection factory and destination resource, JMS Topic Example etc. I've used ActiveMQ before, but in a rather Ad-Hock manner using profiles set up by imqadmin and read using the fsContext stuff. Apache TomEE is a lightweight, yet powerful, JavaEE Application server with feature rich tooling. Also, were you able to use JNDI name for inbound queue with ActiveMQ? I have to specify the physical Queue name inside my MDB for inbound message, but prefer to use jndi name in my code and configure the jndi name in adminobject inside activemq-jms-ds. destination. Lookup names of this form provide a level of indirection such that the lookup name used to look up an object is not dependent on the object's name as it is bound in the name server's namespace. initial = org. I have the activemq-all-5. Universal Messaging integration with JNDI Universal Messaging is the default messaging component used by webMethods Integration Server. The java:jms/RemoteConnectionFactory is the JNDI location of the same connection factory mentioned above, except it's exposed for remote lookup. The HornetQ codebase was donated to the Apache ActiveMQ project, and the HornetQ community joined to build a next-generation messaging broker. Queue named 'example. Its main purpose is to ensure interoperability between the implementations of different Web services vendors. ActiveMQInitialContextFactory # use the following property to configure the default connector java. In the example below, we will create a factory that only knows how to create com. MQ runs locally on the machine and there is a java code that uses jndi and pushes messages into topic called MyTopic. Example using non global JNDI (this doesn't work ):. 7 and had 1 topic connection factory (JNDI name TopicConnectionFactory) and a single topic (JNDI name jms/systemMessageTopic). If computer is not connected to the Internet, this test will quietly fail logging a * message. The connection factory name(s). These examples are extracted from open source projects. ActiveMQConnectionFactory By T Tak Here are the examples of the java api class org. To connect to an ActiveMQ topic in a durable way, an additional parameter called durableSubscriptionName has to be specified in the connection URI. This example uses JNDI to lookup the JMS Queue and ConnectionFactory objects. Troubleshooting naming and JNDI problems using the WebSphere® Application Server and Deployment Manager. Next, we will see how to configure it in Spring, XBean or using the ActiveMQConnectionFactory. It uses ActiveMQ which is not present at the POM but instead pulled from Maven repo using * {@link TestUtils#setupActiveMqLibForTesting (boolean)}, which implies that for this test to run the computer must * be connected to the Internet. However, we found that REST service failed to start. This Confluence has been LDAP enabled, if you are an ASF Committer, please use your LDAP Credentials to login. , a database table) and how to use directory services, such as Lightweight Directory Access Protocol (LDAP). Note that the most important parts are the definition of the resource in the application container and the lookup for the JNDI resource on the configuration. To add an Apache ActiveMQ provider that is running on the local machine with context lookup for destinations, add these entries to the file JMS_ProviderInfo_User. This example shows how to configure JNDI to lookup other EJBs using either the @EJB annotation or the ejb-jar. You must set up the JNDI environment before you can run the JMSHeader node sample. However, there is a limitation that from the side of one client, only one subscriber can be connected simultaneously to a given topic using a given durable subscription nam. properties in the EDQ Local Home directory and restarting the server). NameNotFoundException - JNDI. When you deploy your application inside an application server, the container will setup the JNDI tree for you. Failed to start REST service Hi, I'm a newbie. Using JNDI to retrieve administered objects in a JMS application To retrieve administered objects from a Java™ Naming and Directory Interface (JNDI) namespace, a JMS application must create an initial context and then use the lookup() method to retrieve the objects. activemq-artemis / examples / features / standard / topic / src / main / java / org / apache / activemq / artemis / jms / example / TopicExample. Notice that the lookup is performed by using WildFly's proprietary "ejb:" namespace. Write A Resource Factory Class. The reason we need the bindings file is that Cast Iron JMS Connector uses the JNDI to get the resources (for example QueueConnectionFactory, Queue/Topic Names) and ActiveMQ does not implement JNDI fully. ActiveMQInitialContextFactory will it ever look for a local jndi. When using org. I had a little trouble figuring out how the reference was actually bound to the datasource. Configure a jms service on the Gateway with the properties and values for the JNDI initial context factory. Note: This tab only appears for custom authentication services. However, if you are using the Hightide distribution of Jetty, this feature is already fully enabled, so you can skip any setup steps, and just read the sections on how to put objects into Jetty's JNDI so that you can retrieve them at runtime. For the test data setup, please refer to my last article about JDBC DataSource Example. jar to the Message Broker shared classes directory. This defines a JNDI name Q. java) is included in the DevDaily. In WildFly, you can either choose to use the WildFly 8 specific EJB client API to do the invocation or use JNDI to lookup a proxy for your bean and invoke on that returned proxy. ReadOnlyContext. activemq-artemis / examples / features / standard / topic / src / main / java / org / apache / activemq / artemis / jms / example / TopicExample. This type of lookup table serves a great number of data records. Define JNDI Database Connection Information in JBoss. , a database table) and how to use directory services, such as Lightweight Directory Access Protocol (LDAP). Any problems file an INFRA jira ticket please. 0\activemq-all-5. Configure Apache ActiveMQ, as described on the Apache website. x Description - Standalone JAVA client is unable to lookup EJB hosted in a clustered environment in WAS 5. ActiveMQConnectionFactory By T Tak Here are the examples of the java api class org. * Of course, in a real world example you would re-use the session, producer, consumer and temporary queue * and not create a new one for each message! * Or better still use the correlation id, and just store the requests in a map, then you don't need a temporary queue at all. For stateful beans: The bean name part cannot be an empty string in the JNDI name. Is there something that I need to configure in the server in order to reference jetty-env. ActiveMQInitialContextFactory will it ever look for a local jndi. ConnectionFactory rather than creating ActiveMQConnectionFactory directly. quickstarts. Create an initial context to perform the JNDI lookup. properties file on my classpath. DataSource bean has been created using JNDI data source. For the purposes of our example, we want to use an embedded ActiveMQ broker. SOAP over JMS offers more reliable and scalable messaging support than SOAP over HTTP. If want to configure with external ActiveMQ, you can do it just by change in application. JNDI does more than that of course, but a deep dive into JNDI is beyond the scope of this tutorial. The stored DataSource can then be used each time a connection is needed. If ActiveMQ is used as a messaging provider with another J2EE app server, then the JNDI initial context class may be different. I created jndi. xml configuration file which is in the current directory. That said, the. The default JDBC specific can be used, but the specific one might suit your purpose better. transaction Seam 2. A name can also be an object that implements the Name interface; however a string is the most common way to name an object. destination. Hi, Before I answer your question, let give you a short brief of Spring Framework. Help us document this example! Click the blue pencil icon in the upper right to edit this page. Let's see some specific examples: creation of JNDI Context and then the lookup of apache. The necessary queues are created automatically by the sample. Activemq jndi lookup example. My team have installed REST and Tomcat. xml deployment descriptor. This defines a JNDI name Q. For example if you are using Spring you must define the bean in the spring. The code example is explained in the procedure that follows. Note that the most important parts are the definition of the resource in the application container and the lookup for the JNDI resource on the configuration. First of all we need to develop a EJB Local business interface “ReplicableSFSLocalInt. It is a set of API and service interfaces. Key Description Default Value; Configuration: clover. persistence log category OPENEJB-1242 suport connector 1. Alternatively, you can avoid creating a jndi. This class has no transaction logic. ActiveMQ will work with any JNDI provider capable of storing Java objects. ActiveMQ and JMS : Basic steps for novice. I started the message broker and used example code to run a JMS. The Apache Tomcat actions are stored in the CA Release Automation Repository, database, and in the folder structure. Find 71760+ best results for "jms jndi lookup example" web-references, pdf, doc, ppt, xls, rtf and txt files. Universal Messaging integration with JNDI Universal Messaging is the default messaging component used by webMethods Integration Server. So we provide a simple JNDI InitialContextFactory which can be used to lookup JMS connection factory objects as well as Destination objects. Software applications that use Java Messaging Service(JMS) are required to ensure the reliable delivery of message between clients. I'm defining a ConnectionFactory and a Topic in Tomcat's global resources, bringing them into Spring as JNDI references and, finally, using JMSTemplate. 42) I hope a gentleman would give. The following are Jave code examples for showing how to use lookup() of the javax. The JNDI’s interfaces, classes and exceptions are available in the javax. @Lookup is useful for: Injecting a prototype-scoped bean into a singleton bean (similar to Provider) Injecting dependencies procedurally; Note also that @Lookup is the Java equivalent of the XML element lookup-method. The list of supporting platforms and languages can be read from the ActiveMQ page. InitialContextFactory; External Apache ActiveMQ: com. In addition to the JMS-related objects, I need to bind/lookup other kinds of objects, so, the JNDI provider does not exactly fits my needs. To add an Apache ActiveMQ provider that is running on the local machine with context lookup for destinations, add these entries to the file JMS_ProviderInfo_User. properties file on my classpath. For example, if a JMS queue in the messaging-activemq subsystem must be exposed for remote JNDI clients, then it must be registered to JNDI using java. this is my test client:. Spring+HibernateDaoSupport Class Example using JNDI as Datasource Lookup. and as we were already using jndi in our application, i could not go ahead an modify files present here and also cannot add my activemq related changes in here and so solution was to create different jndi. To change this, you can create an extension file for Sterling B2B Integrator (for example, activeMQ. The respective transaction lookup was added to EAP 5 Seam so that transaction lookup from user applications and Seamspace examples now works as expected. There are a couple interesting aspects in this example intended to flush out some of the more confusing, and perhaps frustrating, aspects of referring to EJBs. However, the documentation focuses on showing code examples that use Apache ActiveMQ. 3 EJB3 Local Lookup Sample. That said, the. JMS - Hello World using ActiveMQ 9 minute read The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. Define JNDI Database Connection Information in JBoss. I used the web-xml editor in WDSc and added the jndi binding under the 'WebSphere Binding' tab, but couldn't see it when I looke. We used ActiveMQ 5. com "Java Source Code Warehouse" project. url = vm://localhost # use the following property to specify the JNDI name the connection factory # should appear as. C:\JNDI-Directory). 2 ActiveMQ support. It starts from the anatomy of a JMS message and moves quickly through connectors, message persistence, authentication, and authorization. Apache ActiveMQ and Tomcat Today I want to investigate how to integrate JMS functionality into a web application running within a Tomcat servlet container (7. I'm defining a ConnectionFactory and a Topic in Tomcat's global resources, bringing them into Spring as JNDI references and, finally, using JMSTemplate. To enable ActiveMQ Artemis to use JGroups you need to configure JGroups configuration file and make sure it is on the classpath by placing in the configuration directory, the file test-jgroups-file. The connection factory name(s). 2 with WAS 7. In the sample application the receiver class was synchronous. This will setup the JNDI for the ConectionFactory and Topic to work within Tomcat. When you deploy your application inside an application server, the container will setup the JNDI tree for you. 2 index = main index_message_header = 1 index_message_properties = 1 init_mode = jndi jms_connection_factory_name = connectionFactory jndi_initialcontext_factory = org. In this chapter we will concentrate on the JNDI lookup and invocation and will leave the EJB client API for a separate chapter. The Failover transport layers reconnect logic on top of any of the other transports. activemq-artemis / examples / features / standard / topic / src / main / java / org / apache / activemq / artemis / jms / example / TopicExample. ReadOnlyContext. properties file (start a plaintext file in your IDE and rename. transaction Seam 2. fully-qualified-classname-of-the-remote-interface : This is the fully qualified class name of the interface for which you are doing the lookup. The queue sender application performs the following steps: Obtain an InitialContext object for the JMS server. This bean stores the incoming message onto a database. x Description - Standalone JAVA client is unable to lookup EJB hosted in a clustered environment in WAS 5. In this chapter we are discussing a JMS example using Apache ActiveMQ. Note the bean lazy-init has been set to false for the connection factory and JNDI lookup. The description of Spring messages features in this chapter apply to all of these JMS vendors. The check-box, "Skip JNDI lookup" has been introduced so that the user can specify whether the Queue(or rather the JMS server) being used exists on the same java application server. NamingContextFactory and. Since there will be JNDI providers for all popular naming services, this means that JMS providers can deliver one implementation of administered objects that will run everywhere. The following are top voted examples for showing how to use javax. you just need to create your own jndi. Then, select the JMS Point-to-Point sampler element in the tree. Quality Of. Example 2-1 shows how to look up a connection factory object in the JNDI object store. The intention with these examples is to show the various ways you can isolate specific interfaces or types of interfaces to gain more specific control on how they are named. JMSSecurityException: User name [null] or password is invalid (EJB and other Jakarta /Java EE Technologies forum at Coderanch). I was trying to get reference to EJB(StatefulSession1Bean) using JNDI lookup for Remote-Client for same example as mentioned in 5. ActiveMQ queues and topics are dynamically created when you actually use them, for example, when you actually send a message to a queue. Message Queues. Both libraries can be used through the InitialContext of the JNDI API. In testStatelessEjb() method, jndi lookup is done with name - "LibrarySessionBean/remote" to obtain the remote business object (stateless ejb). If you create a custom implementation of ILookupContext (for example one that performs lazy caching), assign this property instead of configuring the property JndiContextType. xml, making the application much more portable and easier to deploy. I'm trying to send a message using ActiveMQ from a JBoss EAP 7 Docker container to an ActiveMQ Docker container. Spring provides first-class support for JMS, enabling applications integration using standard based messaging. , a database table) and how to use directory services, such as Lightweight Directory Access Protocol (LDAP). jar in my class path on the start-up of weblogic. quickstarts. It starts from the anatomy of a JMS message and moves quickly through connectors, message persistence, authentication, and authorization. com "Java Source Code Warehouse" project. php(143) : runtime-created function(1) : eval()'d code(156) : runtime. ActiveMQInitialContextFactory. xml The following example starts up a broker using the activemq. While that chapter refers to classes that are part of Spring's ActiveMQ integration, those classes have counter parts as part of Spring's TIBCO EMS integration. For example, if a client’s message storage space is exhausted, some messages as defined by a site specific message retention policy may be dropped. The jms/MyQueueConnectionFactory is the JNDI name the SenderEJB will use to lookup a javax. The file you need is called (for version 5. However, the latest information on ActiveMQ RA indicates that it DOES support JNDI naming of JMS destinations. It is a Java API that allows applications to create, send, receive, and read messages. receive() Use transactional sessions. It starts from the anatomy of a JMS message and moves quickly through connectors, message persistence, authentication, and authorization. Here's frick's relevant source code. These examples are extracted from open source projects. Main class directly. Main class directly; Use JNDI to lookup a javax. MQ runs locally on the machine and there is a java code that uses jndi and pushes messages into topic called MyTopic. 2 ActiveMQ support. ActiveMQ Queue JNDI Publisher Consumer. Hi, This is the first time I am working on Active MQ. Run the Quickstart in Red Hat JBoss Developer Studio or Eclipse. A name that is bound within a context is the JNDI name of the object. Integrate Apache ActiveMQ; To Integrate Any JMS-Compliant Message Broker. Then, select the JMS Point-to-Point sampler element in the tree. Use the management CLI to create the resource adapter. The JMS API enables communication that is loosely coupled, asynchronous and. However, feedback from tomcat-user has shown that specifics for individual configurations can be rather tricky. * and javax. ActiveMQInitialContextFactory # use the following property to configure the default connector java. In building the example a configuration will be provided that works with ActiveMQ 3. Naming exception caught:javax. The lookup method passes a JNDI name parameter and returns the related object. This means Apache ActiveMQ Artemis can be instantiated and run in any dependency injection framework such as Spring or Google Guice. Let’s head over to the Tomcat DataSource JNDI example in java web application. If you prefer not to use JNDI, these could be instantiated directly. org/repos/asf/activemq-artemis/blob/afd7d8b3/examples/features/standard/core-bridge/src/main/java/org/apache/activemq/artemis/jms/example. Although Spring needs a ConnectionFactory to work with JMS, you generally need not use it directly yourself and can instead rely on higher level messaging abstractions. That said, the. Instead, our WorkItemHandler will focus on using the activemq-ra connection factory (bound to java:/JmsXA). We will first see how to do it programatically in Java. We must not include a JMS jar since it will be provided by a WildFly module directly. cd examples/camel-example-guice-jms mvn compile exec:java What this does is boot up the Guice based JNDI provider from guicejndi. Spring AMQP ActiveMQ Tutorial, ActiveMQ Tutorial with Spring, Spring ActiveMQ Example, ActiveMQ JMS Spring Example, Apache ActiveMQ Tutorial with Spring JournalDev Java, Java EE, Android, Python, Web Development Tutorials. InitialContext; import javax. Use the management CLI to create the resource adapter. InitialContext parameters are stored in xml files. In this chapter we are discussing a JMS example using Apache ActiveMQ. Use the management CLI to create the resource adapter. Example context. You specify the source of the messages (JMS Topic or JMS Queue) and a task that will be executed for each inco. Complete the following steps to create the JNDI objects that are required to run the JMS Coordinated Request-Reply sample. You could do the same to configure MQSeries, TibCo, BEA, Sonic etc. by using WinZip. ActiveMQ in Action is all you'll need to master ActiveMQ.