When you deploy as an ear, in JBoss the JNDI name of EJBs becomes:
earname/EjbBeanName/local
When you deploy outside an ear, the 'earname' part obviously is not there.
Lookup a Oracle Ias 10.1.3.1 Remote EJB
First of all:
1) Get the OC4J client!!!! It's the only way to get a lookup of an ejb deployed remotely in oracle ias 10.1.3.1!!!
2) set it in the lib of your application
3) Now you can start combating against oracle ias ejb lookup
3.1) put the following properties in the InitialContext
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
props.put(Context.PROVIDER_URL, "ormi://iasServerName:rmiPort/ejbApplicationName");
props.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.SECURITY_CREDENTIALS, "manager");
Context contesto=new InitialContext(props);
ITestRemote testRemote=(ITestRemote)contesto.lookup("SessionBeanProva");
OK! You get it!
1) Get the OC4J client!!!! It's the only way to get a lookup of an ejb deployed remotely in oracle ias 10.1.3.1!!!
2) set it in the lib of your application
3) Now you can start combating against oracle ias ejb lookup
3.1) put the following properties in the InitialContext
Properties props = new Properties();
props.put(Context.INITIAL_CONTEXT_FACTORY, "oracle.j2ee.rmi.RMIInitialContextFactory");
props.put(Context.PROVIDER_URL, "ormi://iasServerName:rmiPort/ejbApplicationName");
props.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
props.put(Context.SECURITY_CREDENTIALS, "manager");
Context contesto=new InitialContext(props);
ITestRemote testRemote=(ITestRemote)contesto.lookup("SessionBeanProva");
OK! You get it!
Iscriviti a:
Post (Atom)