Activemq Jndi Lookup Example

xml of tomcat. (Step-by-step) So if you're a Spring JMS beginner, you'll love this guide. I'm defining a ConnectionFactory and a Topic in Tomcat's global resources, bringing them into Spring as JNDI references and, finally, using JMSTemplate. ClassNotFoundException: org. [jms://queue/:MyQueue] browse_frequency = -1 browse_mode = all browse_queue_only = 1 durable = 0 hec_batch_mode = 0 hec_https = 0 host = 192. The code is self explanatory, and is given just to continue upon the prev post on ActiveMQ. ConnectionFactory rather than creating ActiveMQConnectionFactory directly. In most business scenarios it's commons to have a scenario where processing of a large message backlog(for example a message queue with 1000 messages) may be once a day or once a week. Suffice to say, the JNDI support is completely local and has nothing to do with server. In the example below, we will create a factory that only knows how to create com. Hi, I am trying to configure JMS Modular App to read messages from ActiveMQ Topic. The root element for the context. The same change can be done using the server. However, feedback from tomcat-user has shown that specifics for individual configurations can be rather tricky. Home » Spring » Spring ActiveMQ Example (Part 2) This is the second part in the Spring ActiveMQ example tutorial. This example shows how an object can be bound to a name. If an object, registered to JNDI, is supposed to be looked up by remote JNDI clients (i. Mirror of Apache ActiveMQ. However most of the time enterprise applications are deployed in a servlet container such as Tomcat, JBoss etc. jndiConnectionFactoryName is the JNDI name of the Connection Factory. Create a jndi. Spring provides support for encapsulating the JNDI operation (like lookup, bind and rebind) as a command object. JndiTemplateLookupFactory. xml file (stored in the /conf/axis2/ directory), the connection URL in the proxy. JSP Examples Tutorial Servlet Examples Google GSON Examples Jersey Rest Examples JAX-RS Tutorial Jackson JSON Examples Design Patterns Object Oriented Design Head First Design Patterns Core J2EE Patterns Design Patterns(GOF) Architecture Patterns. Grinder import grinder from net. An example usually helps, so I’ve put together a silly, tiny webapp that does a JNDI lookup. This particular use case demonstrates how to deploy WSO2 ESB's JMS transport for high performance deployment. It is based on the standard GWT “Hello World” webapp that is generated by default by the GWT webAppCreator script. properties and. To prevent class conflict with the AdminObjectFinder. to look up those objects via JNDI in order to interact with ActiveMQ. Client For ActiveMQ This Post explains Topics in Active MQ (Message Broker) with Subscribing and Publishing. factoryclass=org. However, the existing ActiveMQ Artemis libraries provided by JBoss must be exposed in the application classpath. /conf) Configure ActiveMQ for BI Publisher. Processing a Long Message Backlog. Every deployed service for which the JMS transport is enabled will be associated with a destination (queue or topic) according to the following rules: If the service has a transport. The helloworld-jms quickstart demonstrates the use of external JMS clients with JBoss Enterprise Application Platform Server. There is support for a number of JNDI supported brokers so uncomment the listener that corresponds with the broker you want to use. In my other JMS tutorials you will find all message delivery modes are Persistent because if you do not specify any mode for message delivery then by default the message delivery mode is Persistent. xml says the JNDI lookup used in your application is the relative name "Puppy". Dentro do JNDI, temos a linha: # queue. ActiveMQ is the most popular and powerful open source messaging and integration pattern server. Apache Tomcat Actions. The code is self explanatory, and is given just to continue upon the prev post on ActiveMQ. initial = org. The setup of the test is 1 threadgroup with 5 threads sending 4 messages each through a request queue. As I searched the web for some detailed tutorials, I didn't find any detailed tutorial that could help me. to look up those objects via JNDI in order to interact with ActiveMQ. For example, if the JMS queue in a messaging-activemq subsystem must be exposed for remote JNDI clients, then it must be registred to JNDI, like java. The 'ActiveMQ in Action' examples Example 1: jndi-lookup id. No JNDI lookup is involved at all and destinations are resolved against their names, either using the "name" attribute in the HornetQ configuration or the names provided through configuration. jar, mylogapi-0. [jms://queue/:MyQueue] browse_frequency = -1 browse_mode = all browse_queue_only = 1 durable = 0 hec_batch_mode = 0 hec_https = 0 host = 192. 到目前位置,本章内中已经阐述了如何为本章中涉及到的每一个web容器配置ActiveMQ的管理对象. In my last blog (i. To get a Session from those resources above we need to create a connection and a session to the connection. , connection factory and destination) to and from a LDAP directory server (DS) like Apache Directory Server. 3) I configured spring to lookup the JNDI vis the property ${ds. properties file based on the example shown. in) and specify the following entry:startActivemqMandatory=true|false Where: True = if activemq fails to start, the rest of processes will not be started. You could do the same to configure MQSeries, TibCo, BEA, Sonic and so on. He covers JNDI basics, directory operations, using LDAP with JNDI, LDAP classes and attributes, troubleshooting JNDI, and more. In the example below, we will create a factory that only knows how to create com. In most business scenarios it's commons to have a scenario where processing of a large message backlog(for example a message queue with 1000 messages) may be once a day or once a week. The JNDI style is typical when using an application server or a web container. - initialContext = new InitialContext(); - - // Step 2. RPL for the reply queue that points to the queue example. jar' or something similar and is in the extracted ActiveMQ directory. I'm trying to create simply connect with ActiveMQ using JNDI. If the looked up object is a Reference it is possible to supply a classname and codebase url for the factory class that provides the objects. properties option makes your code JMS compliant, but you will have to define the queues and connection factories before hand, with ActiveMQ we have another option which is to use ActiveMQConnectionFactory like this, in this example first we create object of ActiveMQConnectionFactory by passing URL to the broker then we use. Specify the JNDI name of the JMS topic and the connection factory parameters in the connection URL as shown in the above example. informatica. You can vote up the examples you like. jndi}, using a PropertyPlaceholderConfigurer bean with classpath:application. EnvEntry class, and even override an entry of the same name in web. variant should take the jndi or jndi-topic value to connect to a. Can you please provide the jndi. And it will result in NameAlreadyBoundException. jar to my classpath. A common pattern outside of OSGi is to make use of the JNDI API to access services from a directory system. 到目前位置,本章内中已经阐述了如何为本章中涉及到的每一个web容器配置ActiveMQ的管理对象. It is the companion example to the "Quick Start Tutorial" in the Sun Java(tm) System Message Queue Developer's Guide. Internal ActiveMQ Broker with activemq. The next step is to write a remote Java client application (with main()) for accessing and invoking the EJBs deployed on the server; Client uses JNDI to lookup for a proxy of your bean and invokes method on that. To use the jms service, you must perform the following steps: Copy the JMS-compliant message broker's client-specific JAR files to GATEWAY_HOME/lib. The following are top voted examples for showing how to use javax. It can handle lookups of objects from the naming service. These source code samples are taken from different open source projects. jar to my classpath. xml file by adding the configurations inside context element. In this post, I’m going to walk you through using Spring Boot to setup a Hello World example using Spring Integration and ActiveMQ. In this chapter we are going to discuss a JNDI example. You can also use the project created in EJB – Create Application chapter as such for this chapter to understand EJB persistence concepts. No JNDI lookup is involved at all and destinations are resolved against their names, either using the “name” attribute in the HornetQ configuration or the names provided through configuration. xml, making the application much more portable and easier to deploy. EJB annotation and specify the enterprise bean’s local business interface name:. A good place to start would be to play around with the simple JMS Queue and Topic example, but we also provide examples for many other parts of the JMS API. If I configure my JMS resources as described in the documentation: How do I access these resources from a java client running in a separate JVM?. Out of the box, the connector provides a JNDI based connection factory builder that allows to configure the connection using JNDI in the context of the application. This application sends and receives a "Hello World" message via a Queue destination. Note that the JNDI factory context will be the path noted above. This means you need to configure some JNDI provider to be able to use this. properties file, this allowed the properties to be read. To lookup AcmeMQ resources from JNDI, 2 jars are required, acmemq-1. I tried to configure the datasource in this file anyway using various Spring methods ( or the JndiObjectFactoryBean way shown in the Activiti docs, playing around with the expected-type option, etc. This is the URL for the JNDI server, if there is one. The same change can be done using the server. 0 endpoint via JNDI. Sometimes it might be necessary to explicitly configure an instance of ActiveMQ connection factory, for example, to set redelivery policy, or other ActiveMQ-specific features that are not exposed through Mule connector parameters. The following code examples are extracted from open source projects. These information will be entered into connections document for JMS operators to establish connection to message system. Webucator provides instructor-led training to students throughout the US and Canada. So we provide a simple JNDI InitialContextFactory which can be used to lookup JMS connection factory objects as well as Destination objects. Anyway, some weeks ago i have noticed a little (big) issue on JBoss AS 7 - I couldn't make EJB lookup using JNDI!. JndiTemplateLookupFactory. Hi All, I integrated ActiveMQ with Tomee+ and I tried to configure JMS connection by using jndi but it was not working. Step 5 - Developing a new NiFi JMS ControllerService to support JNDI. This tutorial steps you through using the BMC Atrium Orchestrator (BAO) JMS adapter with the Apache ActiveMQ application. Example 1 and example 2 are almost similar the only difference is example 1 creates queues within the program and the example 2 uses jndi. Use the jms object in order to create a JMS protocol. MyBean beans from the Generic JavaBean Resources example above. The helloworld-jms quickstart demonstrates the use of external JMS clients with JBoss Enterprise Application Platform Server. To create a new service, enter a Manager Name and click Add Manager: 5. As I searched the web for some detailed tutorials, I didn't find any detailed tutorial that could help me. In this tutorial we are going to discuss How to send Message to ActiveMQ Using spring jmstemplate. A common pattern outside of OSGi is to make use of the JNDI API to access services from a directory system. Namespace Content Handler The implementation is provided by the com. You can click to vote up the examples that are useful to you. jndiConnectionFactoryName is the JNDI name of the Connection Factory. jMeter - JMS Point To Point Test Plan - Now let us write a JMeter test plan to test a JMS Point-to-Point messaging solution. The root element for the context. 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). ActiveMQInitialContextFactory. Apache ActiveMQ is a message broker which fully implements the Java Messaging Service API 1. xml file (stored in the /conf/axis2/ directory), the connection URL in the proxy. However, the instructions provided should work with both the Apache and FuseSource distributions. The following code examples are extracted from open source projects. 1 Load ActiveMQ Provider Files Onto The OEG Gateway. If your application code is using JNDI to lookup the JMS ConnectionFactory and Destinations to use, then you could use the JNDI Support in ActiveMQ. Can you please provide the jndi. This defines a JNDI name Q. Jetty supports java:comp/env lookups in web apps. All the ConnectionPoolDataSource and DataSource implementations can be stored in JNDI. We choose ActiveMQ as our JMS provider. GA\server\default\lib Then I added the following code jboss-esb. I want to add an ActiveMQ as a JMS-Provider in the HelloWorld example. xml says the relative name "Puppy" is mapped to the real JNDI resource "EmailDS". Introduction Often we have several jobs running on our HDInsight clusters that have tight timelines requirements associated with them. 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. I appreciate if you guide me configuring topics in ActiveMQ with a short example. All steps of installation, start and stop process are same. In some cases, e. To assist in finding a place to start, the JNDI specification defines an InitialContext class. Examples Keyless auto lock/unlock Apache ActiveMQ Fast and highly scalable Clustering, peer-to-peer, federated network JNDI provider Dynamic lookup of pre. In this tutorial we are going to discuss How to send Message to ActiveMQ Using spring jmstemplate. Introduction to ActiveMQ Artemis Now you can run a test example on it. Hello World Spring Jmstemplate Example. JBoss naming is an example of JNDI implementation, based on the SPI classes. The setup of the test is 1 threadgroup with 5 threads sending 4 messages each through a request queue. This is the URL for the JNDI server, if there is one. However, feedback from tomcat-user has shown that specifics for individual configurations can be rather tricky. The default is not to have a fallback object. Webucator provides instructor-led training to students throughout the US and Canada. 1 Load ActiveMQ Provider Files Onto The OEG Gateway. x Description - Standalone JAVA client is unable to lookup EJB hosted in a clustered environment in WAS 5. Connection for interacting with a JMS broker. We choose ActiveMQ as our JMS provider. To obtain a reference to the local business interface of an enterprise bean through dependency injection, use the javax. Which JARs exactly depend on the version of the message broker that you are using. A name can be any string such as "com. The SOAP over JMS specification is aimed at a set of standards for the transport of SOAP messages over JMS. If the project is deployed properly with global JNDI mapping then you will see the following message in the console. Here is an example:. ActiveMQInitialContextFactory. Step Description; 1: Create a project with a name EjbComponent under a package com. For this we will write two java clients. This is a very simple example using a Spring JMS Template to send messages and also having a JMS listener process the messages sent. jndiDestinationName is the JNDI name of the JMS destination listened on. JNDI Provider Y Y N The provider to use for JNDI lookup: TIBCO EMS Progress SonicMQ IBM WebSphere MQ Custom - Used for custom JNDI providers. You can also use the project created in EJB – Create Application chapter as such for this chapter to understand EJB persistence concepts. Open the Tomcat server’s context. 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. Copy activemq-core-5. There is simpleCheck that accepts just javax. The SPI layer is an abstraction that naming service providers must implement to enable the core JNDI classes to expose the naming service, using the common JNDI client interface. Example: CATALINE_BASE=. ActiveMQ queues are accessed using JNDI by default. memorynotfound pool: block-if-full: true block-if-full-timeout: -1 create-connection-on-startup: true enabled: false expiry-timeout: 0 idle-timeout: 30000 max-connections: 1 maximum-active-session-per-connection: 500 reconnect-on-exception: true time-between-expiration-check. How did you get around tis? thanks Kelly. However, the existing ActiveMQ Artemis libraries provided by JBoss must be exposed in the application classpath. JNDI lookup EJB name not found Genuitec :: Driving Development for Leading Organizations › Support Forums › MyEclipse IDE › Installation, Configuration & Updates This topic contains 13 replies, has 3 voices, and was last updated by Riyad Kalla 11 years, 5 months ago. This article describes in detail how to integrate a remote Red Hat AMQ 7 cluster on a Red Hat JBoss Enterprise Application Platform 7 server, including the different configurations and components and some tips to improve your message-driven beans (MDB) applications. I started the message broker and used example code to run a JMS. Confiture the JMS publisher sampler with the following settings in the JMeter GUI. The logging level to use: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, OFF. Spring framework sample applicationContext. java file, the generic JMS adapter packages the class in a different package, jmsfromABL(not jmsfrom4gl). ActiveMQ example source code file (InitialContextTest. This defines a JNDI name Q. This is a very simple example using a Spring JMS Template to send messages and also having a JMS listener process the messages sent. In our example, PizzaShop is an abstract class and has two method makePizza and makeVeggiesPizza() which returns us the veggie Pizza. 34 sentence examples: 1. With this resolver you could do the lookup in jndi and return the real destination object found there. properties on the classpath and configure it with the JNDI provider you wish. Otherwise the service name is used as the JNDI name of the destination. Example 2–1 shows how to look up a connection factory object in the JNDI object store. However, we found that REST service failed to start. file:applicationContext. ConnectionFactory. Setting Up The OEG Environment 3. I'm defining a ConnectionFactory and a Topic in Tomcat's global resources, bringing them into Spring as JNDI references and, finally, using JMSTemplate. ActiveMQ being a messaging system based on queues (aka FIFOs), one would take for granted that if there is only one producer and one consumer for a given queue (and they are both single threaded), the order of the messages is preserved. properties file based on the example shown. The second example is for a stateful session bean, in this case the JNDI lookup will hit the server, in order to tell the server to create the SFSB session. Assume that Eclipse is configured with Apache Tomcat Application Server 7. This example demonstrates a message producer, a synchronous message consumer, and an asynchronous message consumer for a JMS queue. in src/test/resources if you are using maven). Table of Contents. First of all I use the following code from an example in the net where the activemq. When this step is not performed, a ClassNotFoundException occurred during the unmarshalling of the remote JNDI reference retrieved through the JNDI lookup. xml of ActiveMQ. properties file and keep in project classpath. xml found in the /conf directory (example: apache-activemq-5. ActiveMQInitialContextFactory. My team have installed REST and Tomcat. Step 5 - Developing a new NiFi JMS ControllerService to support JNDI. In most business scenarios it's commons to have a scenario where processing of a large message backlog(for example a message queue with 1000 messages) may be once a day or once a week. Spring JMS ActiveMQ Example 10 minute read I'm going to show you EXACTLY how to create a Spring JMS Hello World example that uses Spring Boot, ActiveMQ, and Maven. A name can also be an object that implements the Name interface; however a string is the most common way to name an object. Using JNDI to find the ConnectionFactory. 1 Introduction. It contains the following: A message producer that sends messages to a JMS destination deployed to a JBoss EAP server. interceptor. The Spring-based message listeners can then interact with the server-hosted ResourceAdapter, also using the server's built-in WorkManager. We need to use @JmsListener annotation on our listener methods. And in addition to creating the queue in Active MQ you need to define it in your jndi. lookup("ConnectionFactory"); Queue queue = (Queue) context. MDB that receives from ActiveMQ example. Using ActiveMQ with failover mechanism, I am searching for a JNDI implementation with an equivalent *failover *mechanism and an *alignment of the stored objects*. Please consider disabling your ad blocker for Java4s. NET, Microsoft Office, Azure, Windows, Java, Adobe, Python, SQL, JavaScript, Angular and much more. ActiveMQ example source code file (spring-jndi. properties to your classpath (e. JNDI is a mechanism for java to look up objects over the network. The ContextMapLookup allows applications to store data in the Log4j ThreadContext Map and then retrieve the values in the Log4j configuration. JndiLookupFactory. If you run the broker in a different IP or port, don't forget to change the broker URL in Spring configuration file. Finally, here are examples using the Spring JmsTemplate to send and receive messages. ActiveMQ will work with any JNDI provider capable of storing Java objects. There is simpleCheck that accepts just javax. In the previous post JMS Step 1 - How to Create a Simple JMS Queue in Weblogic Server 11g I showed you how to create a JMS queue and its dependent objects in WebLogic Server. Now I'm trying to do it the proper way, and am suffering for it. The file you need is called (for version 5. 4以上 2 、可运行于任何jvm和大部分web容器(ActiveMQ works great in any JVM) 3、支持多种语言客户端(java, C, C++, AJAX, ACTIONSCRIPT等等) 4 、支持多种协议(stomp,openwire,REST) 5 、良好的spring支持(ActiveMQ has great Spring Support) 6 、速度很快,JBossMQ的十倍(ActiveMQ. An implementation of JNDI for a naming service is referred to as a JNDI provider. The connector name that you should use is ${CONNECTOR_NAME} + '/' + ${JNDI_LOOKUP}. In this chapter we are discussing a JMS example using Apache ActiveMQ. xml configuration spring. via JNDI to the sample web application. In the example below, the application would store the current user's login id in the ThreadContext Map with the key "loginId". Here then are some example configurations that have been posted to tomcat-user for popular MOM and some general tips for messages useage. The logging level to use: FATAL, ERROR, WARN, INFO, DEBUG, TRACE, OFF. MQ runs locally on the machine and there is a java code that uses jndi and pushes messages into topic called MyTopic. For the purposes of our example, we want to use an embedded ActiveMQ broker. Its main purpose is to ensure interoperability between the implementations of different Web services vendors. Let's get this show on the road!. Use the jms object in order to create a JMS protocol. GA\server\default\lib Then I added the following code jboss-esb. Remote JNDI access to JMS resources. java to Subcribe for messages. No JNDI lookup is involved at all and destinations are resolved against their names, either using the “name” attribute in the HornetQ configuration or the names provided through configuration. Dentro do JNDI, temos a linha: # queue. Software development and test automation in Java using the technologies: Ant, SVN, NetBeans Plaform (lookup, loaders, utilities, nodes, explorer, window systems), Swing, NetBeans Jemmy and Jelly test automation, Google Maps API, etc. ActiveMQInitialContextFactory. And in addition to creating the queue in Active MQ you need to define it in your jndi. > > Using ActiveMQ with failover mechanism, I am searching for a JNDI > > implementation. Glassfish, JBoss) or web server (e. java This works. Earlier we saw how to implement database operations using Spring JDBC integration. 143 with default port 61616. ActiveMQInitialContextFactory # use the following property to configure the default connector java. com "Java Source Code Warehouse" project. 34 sentence examples: 1. The Apache Tomcat actions are stored in the CA Release Automation Repository, database, and in the folder structure. Failed to start REST service Hi, I'm a newbie. Since this method is called whenever an exception is thrown, subclasses should override it to add their specific information. For example, the initial context factory for B2B Data Exchange (DX) transformations is as follows: com. Java Examples for org. jMeter - JMS Point To Point Test Plan - Now let us write a JMeter test plan to test a JMS Point-to-Point messaging solution. In this section, we use ActiveMQ as an example to demonstrate how this generic resource adapter allows GlassFish to integrate with third-party JMS providers. ActiveMQInitialContextFactory. An embedded ActiveMQ instance is used as the broker. activemq-artemis / examples / features / standard / http-transport / src / main / java / org / apache / activemq / artemis / jms / example / HttpTransportExample. The JMS API enables communication that is loosely coupled, asynchronous and. This is common to use when developing Spring projects which use ActiveMQ. 4, the value is "org. It took a little bit of work to get it figured out, but. These source code samples are taken from different open source projects. JNDI JMS configuration is covered extensively in the JNDI-Resources-HOWTO. 4 to work through jndi. Home » Spring » Spring ActiveMQ Example (Part 2) This is the second part in the Spring ActiveMQ example tutorial. This is purley due to the fact that this ActiveMQ file format is parsed using Spring libraries and this is beyond our control. Create an initial context to perform the JNDI lookup. -incubator\bin This will start Active MQ. In the example below, we will create a factory that only knows how to create com. I'm defining a ConnectionFactory and a Topic in Tomcat's global resources, bringing them into Spring as JNDI references and, finally, using JMSTemplate. Tomcat + Spring + ActiveMQ October 31, 2015 javanbeyond ACTIVEMQ No comments yet In this tutorial, we are going to learn how to use Queues and Topics as managed resources in Tomcat as client and use Spring to listen and send messages to/from ActiveMQ. All the examples in this whitepaper use the default JNDI URL. connectionfactory=ConnectionFactory # if NOT using JNDI: connection info gg. This example assumes that the JMS administrator created administrative objects for a connection factory named myqmgr and a destination named myq, and that the JNDI name space is located at \\mynode\public\jndi. Hello everyone! I was kinda busy last months, so I did not have time to publish more posts here :/. ActiveMQ is a MOM product that provides asynchronous messaging for business systems. We rebooted and during the reboot we 3 years ago by badlishah from Connectivity forum. However, feedback from tomcat-user has shown that specifics for individual configurations can be rather tricky. properties and activemq. If you just use @Remote with no mappedName, default name is different for JBoss than for Glassfish (or other servers). shows an example of the Spring JNDI lookup. connectionfactory=ConnectionFactory # if NOT using JNDI: connection info gg. And in the case of ActiveMQ 15. properties to your classpath (e. On Wed, Jul 15, 2009 at 3:15 AM, Willem Jiang wrote: > Hi, > > Apache camel support the binding the JNDI configure file[1] with the camel > context, but current jms component doesn't support it. properties is not used at all and the following code is working:. message on ActiveMQ using JNDI. properties and file:/etc/sysenv as locations. I don’t know how long ago this snippet-example was posted by you, but THANKS regardless. Queue named 'example. JNDI JMS configuration is covered extensively in the JNDI-Resources-HOWTO. 4, the value is "org. Message Producer. xml says the relative name "Puppy" is mapped to the real JNDI resource "EmailDS". My team have installed REST and Tomcat. This service is usually provided by application server or web server or a dedicated LDAP server. If you have already specified the endpoint's connection factory parameters (for the JMS sender configuration) in the axis2. As I searched the web for some detailed tutorials, I didn't find any detailed tutorial that could help me. In this example ,. JSP Examples Tutorial Servlet Examples Google GSON Examples Jersey Rest Examples JAX-RS Tutorial Jackson JSON Examples Design Patterns Object Oriented Design Head First Design Patterns Core J2EE Patterns Design Patterns(GOF) Architecture Patterns. This can be set to true (i. persistent=false,useShutdownHook=false in-memory: true non-blocking-redelivery: true packages: trust-all: false trusted: com. If the project is deployed properly with global JNDI mapping then you will see the following message in the console. To connect to an ActiveMQ topic in a durable way, an additional parameter called durableSubscriptionName has to be specified in the connection URI. 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. 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. As a simple example, I want to have two Servlets: The first Servlet pushes messages into a queue, whereas the second Servlet pulls them out of the queue and displays the messages as an HTML page.