Skip to main content

Glassfish remote ejb

1 reply [Last post]
senderj
Offline
Joined: 2008-09-24

I used to code the following between 2 jboss for bean handles:

Properties p = new Properties();
p.put(InitialContext.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(InitialContext.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
p.put(InitialContext.PROVIDER_URL, "localhost:1099");
Context c = new InitialContext(p);
....

But I don't know how to do it in glassfish. Read the demo coding in jee5, they are all local access only. Can somebody help?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
swiety
Offline
Joined: 2004-11-07