Results 1 to 1 of 1
Thread: Rmi
- 10-04-2011, 11:55 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 21
- Rep Power
- 0
Rmi
what is the proper lookup string needed to access this Remote interface for an EJB?
4 INFO FirstFOO was successfully deployed in 751 milliseconds.(details) javax.enterprise.system.tools.admin.org.glassfish. deployment.admin Oct 4, 2011 17:58:54.170 _ThreadID=324;_ThreadName=Thread-2;
3 INFO Glassfish-specific (Non-portable) JNDI names for EJB FooBean : [foo1.FooRemote1#foo1.FooRemote1, foo... (details) javax.enterprise.system.container.ejb.com.sun.ejb. containers Oct 4, 2011 17:58:54.060 _ThreadID=324;_ThreadName=Thread-2;
---------------------------------------
Hashtable envHash = new Hashtable();
//envHash.put("java.naming.factory.initial","com.eve rmind.server.ApplicationClientInitialContextFactor y");
envHash.put("java.naming.provider.url","http://0.0.0.0:8080");
System.setProperty("java.security.policy", "client.policy");
if (System.getSecurityManager() == null)
System.setSecurityManager(new RMISecurityManager());
try {
ctx0= new InitialContext(envHash);
//Context FooRemote1 fooremote= (FooRemote1)ctx0.lookup("?????????????????????");


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks