1 Reply Latest reply on Feb 13, 2003 8:03 AM by Phyo Kyaw

    Using RMI from a Session Bean

    Stefan Arentz Newbie

      I need to talk to a remote RMI server from a Session Bean. What is the correct procedure for this?

      Should I simply switch to the RMISecurityManager, do my stuff, restore the original SecurityManager?

      How and where do I specify the correct policy?

      Is this even allowed by the EJB spec?

      Stefan

        • 1. Re: Using RMI from a Session Bean
          Phyo Kyaw Newbie

          I am having the same problem, I've just started using JBoss and may be I dont understand the security model very well, or RMI security or both:)

          I want to access remote RMI server from a session bean. Surely I can't set

          System.setSecurityManager(new RMISecurityManager());

          in my session bean. I have listed system properties and I dont see any security related properties. How do I map to JBoss JAAS, or do I need to????

          Now I am having this error..

          10:50:11,229 ERROR [ArtefactManagerBean] Remote exception: error unmarshalling return; nested exception is:
          java.lang.ClassNotFoundException: org.genesis_ist.oscar.server.ClientFactoryImpl_Stub (no security manager: RMI class loader disabled)
          10:50:11,231 ERROR [ArtefactManagerBean] Login setup error..Remote exception: ; CausedByException is:
          error unmarshalling return; nested exception is:
          java.lang.ClassNotFoundException: org.genesis_ist.oscar.server.ClientFactoryImpl_Stub (no security manager: RMI class loader disabled)



          Many thanks in advance....!!!!