[jboss-user] [EJB 3.0] - Calling MessageDrivenBean from another JBOSS-Server

NiB do-not-reply at jboss.com
Sun Jan 21 21:06:57 EST 2007

I have one SessionBean (Stateless) and i want to call a messagedrivenbean from another server. But I Have the following Problem:

anonymous wrote : INFO  [STDOUT] javax.naming.NoInitialContextException: Cannot instantiate class: org.jboss.naming:org.jnp.interfaces [Root exception is java.lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.naming:org.jnp.interfaces]

What do I do wrong? I Use ejb3 rc9 and the following code:

  	java.util.Properties p = System.getProperties();
  | 		  	p.setProperty("java.naming.factory.initial",
  |           "org.jnp.interfaces.NamingContextFactory");
  | 		  	 p.setProperty("java.naming.factory.url.pkgs",
  | 	            "org.jboss.naming:org.jnp.interfaces");
  | 		  	  p.setProperty("java.naming.provider.url", "jnp://localhost:1099");
  | 		  	try {
  | 		  	javax.naming.InitialContext ctx = new javax.naming.InitialContext(p);
  | [..]

And anther Question:
The mdb is ejb 2.1. Will that be a problem, if a solve the problem above?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004680#4004680

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004680

More information about the jboss-user mailing list