Hi,
I'm trying to connect to a message queue from an application that runs
outside JBOSS(3.06)
But when I run the following code:
java.util.Hashtable env = new java.util.Hashtable();
env.putContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFact
ory");
env.put(Context.PROVIDER_URL, "localhost:1099");
jndiContext = new InitialContext(env);
jndiContext.lookup("ConnectionFactory");
I'm getting the following exception:
javax.naming.CommunicationException [Root exception is
java.rmi.UnmarshalException: error unmarshalling return; nested exception
is:
java.lang.ClassNotFoundException:
org.jboss.mq.referenceable.ObjectRefAddr (no security manager: RMI class
loader disabled)] java.lang.NullPointerException
What am I doing wrong???
Hope someone can give me a hint ;-)
/J
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user