activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: Help configuring ActiveMQ as JMSProvider in WebSphere
Date Fri, 09 Nov 2012 10:54:10 GMT
the actievmq initial context is just a hash map, it does not query the
broker to find destinaitons.
so either you configure the hashmap via properties or you do a lookup
in the dynamicQueues context and it will return what ever you ask for.

eg:

Queue queue = (Queue)
jndiContext.lookup("dynamicQueues/jms/systemMessageQueue");


or in jndi.properties add:

# register some queues in JNDI using the form
# queue.[jndiName] = [physicalName]
queue.jms/systemMessageQueue = jms/systemMessageQueue

It may be that the use of / in the queue name will be problematic. not sure.

Some more detail at:
http://activemq.apache.org/jndi-support.html

On 8 November 2012 22:04, fbcyborg <fbcyborg@gmail.com> wrote:
> OK,
>
> I compiled activemq from sources and I use activemq-all-5.8-SNAPSHOT.jar now
> but the problem still exists:
>
> [11/8/12 23:00:08:754 CET] 00000029 SystemErr     R
> com.ibm.websphere.naming.CannotInstantiateObjectException: threw
> NameNotFoundException while the JNDI NamingManager was processing a
> javax.naming.Reference object. [Root exception is
> javax.naming.NameNotFoundException: jms/systemMessageQueue]
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:1013)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookup(Helpers.java:730)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.jndicos.CNContextImpl.processResolveResults(CNContextImpl.java:3691)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1861)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.jndicos.CNContextImpl.doLookup(CNContextImpl.java:1762)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.jndicos.CNContextImpl.lookupExt(CNContextImpl.java:1513)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.jndicos.CNContextImpl.lookup(CNContextImpl.java:645)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:166)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:180)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> javax.naming.InitialContext.lookup(Unknown Source)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.test.jms.JMSTestServlet.manageRequest(JMSTestServlet.java:123)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.test.jms.JMSTestServlet.doPost(JMSTestServlet.java:59)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
> [11/8/12 23:00:08:755 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1657)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:939)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3935)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:452)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:511)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:305)
> [11/8/12 23:00:08:756 CET] 00000029 SystemErr     R     at
> com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R Caused by:
> javax.naming.NameNotFoundException: jms/systemMessageQueue
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> org.apache.activemq.jndi.ReadOnlyContext.lookup(ReadOnlyContext.java:235)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> javax.naming.InitialContext.lookup(Unknown Source)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory$1.run(IndirectJndiLookupObjectFactory.java:390)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.IndirectJndiLookupObjectFactory.getObjectInstanceExt(IndirectJndiLookupObjectFactory.java:226)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     at
> com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:924)
> [11/8/12 23:00:08:757 CET] 00000029 SystemErr     R     ... 34 more
>
>
> Where am I making a mistake?
> I don't understand.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Help-configuring-ActiveMQ-as-JMSProvider-in-WebSphere-tp4658603p4659087.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Mime
View raw message