1 Reply Latest reply on Nov 19, 2001 1:28 PM by schaefera

    Remote Object as ejb arguement

    ramesh_mbabu

      hi
      How can I send a remote Object as an ejb arguement where the bean in turn will contact an RMI server and will register with the RMI server for the client application using the remote object sent by the client. While trying this I got an exception

      Exception in thread "main" java.lang.reflect.UndeclaredThrowableException: java.
      lang.ClassNotFoundException: Test1_Stub (no security manager: RMI class loader d
      isabled)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
      RemoteCall.java:245)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
      220)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
      at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Un
      known Source)
      at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(Ge
      nericProxy.java:357)
      at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(St
      atelessSessionProxy.java:123)
      at $Proxy1.registerListener(Unknown Source)
      at RMITest.main(RMITest.java:31)
      like this .
      Any suggestion or code samples ???

        • 1. Re: Remote Object as ejb arguement
          schaefera

          For me this looks like that the class is not available to your EJB. You have to make the class available to the EJB (you can add it to the JAR file you use to deploy your EJB). If you need a dynamic way to make the class available then have a look Rickard Oeberg's book "Mastering RMI".

          Andy