1 Reply Latest reply on Jan 21, 2007 9:14 PM by Niklas Schulz

    Calling MessageDrivenBean from another JBOSS-Server

    Niklas Schulz Newbie

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

      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.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?