Hi,
I have a stand-alone java JMS Client application residing with the same PC where JBoss
server is and have no problems with the connection.
But when I move this application to another PC, I had some problems when looking up
with the message queue factory. I have the following codes.
properties.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(Context.PROVIDER_URL, "jnp/192.1.1.1:1099");
//This is just a samle IP of the JBoss Server
...
jndiContext = new InitialContext(properties);
...
FMsgQFactory = (QueueConnectionFactory)jndiContext.lookup("UIL2ConnectionFactory");
...
By the way, I included all necessary client jar files with the java project.
Can anybody share some lights about this?
Thanks in advance.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839502#3839502
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839502
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development