Hi All,
I'm using JBoss 4.0.2 and integrated ActiveMQ to deploy an MDB. Things seem to
deploy just fine as there is a Global JNDI entry for the queue. (JMX Console).
However, when I try to connect remotely, I can create the context, but am
having problems connecting to the resource. See code below:
| Properties p = new Properties();
| p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
| p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
| p.put(Context.PROVIDER_URL, "jnp://hostname:1099");
|
| InitialContext ctx = new InitialContext(p);
| Object tmp = ctx.lookup("queue");
| System.out.println("Class: " +
tmp.getClass().getCanonicalName().toString());
|
Why is the returned object of type: org.jnp.interfaces.NamingContext?
In the Global JNDI namespace of the JMX Console JNDI view, there is the
following entry:
anonymous wrote :
| +- queue (class: org.jnp.interfaces.NamingContext)
| | +- MyQueue (class: org.activemq.message.ActiveMQQueue)
|
I can't seem to get a connection factory to send messsages to the queue. I hope
it's something obvious. Can anyone tell me where I'm going wrong here? I want a
handle to the "MyQueue" queue.
Many thanks,
Claire.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905315#3905315
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905315
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user