Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Creating dynamic queue in Java and Configuring it with JBoss 6.0  RSS feed

prasad phatak
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Currently I am trying to migrate my application on JBoss 6.0 which was previously running on JBoss 4.0. After going through the code I found out that it creates dynamic queues with the code which is specific to JBoss 4.0 as posted below

RMIAdaptor server = (RMIAdaptor) jndiLookup("jmx/rmi/RMIAdaptor");
dm = new ObjectName("");
server.invoke(dm, "createQueue",
new Object[] {subject,subject},
new String[] { String.class.getName(), String.class.getName()}

/*//Added By milind
server.invoke(dm, "createQueue", new Object[] { "ReplyChannel", "ReplyChannel"},
new String[] { String.class.getName(), String.class.getName() } );
//End here

queue = (Queue) jndiLookup(subject);

After migration to JBoss 6.0 it gives following print trace on console....

Value of the Description:{javax.jms.JMSException: Failed to create session=Class = Manager Method = connectToJMS}
javax.naming.NameNotFoundException: outChannel not bound
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getObject(
at org.jnp.server.NamingServer.lookup(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at sun.rmi.server.UnicastServerRef.dispatch(
at sun.rmi.transport.Transport$
at Method)
at sun.rmi.transport.Transport.serviceCall(
at sun.rmi.transport.tcp.TCPTransport.handleMessages(
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
at sun.rmi.transport.tcp.TCPTransport$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(
at org.jnp.interfaces.NamingContext.lookup(
at javax.naming.InitialContext.lookup(Unknown Source)
at com.etp.dim.jms.JMSManager.jndiLookup(

Can anyone please help me with this.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!