users@glassfish.java.net

Re: NodeAgent - Cross Instance JNDI Referencing

From: Adam Jenkins <adamjenkinstmpredirect_at_yahoo.com.au>
Date: Fri, 13 Mar 2009 15:13:55 -0700 (PDT)

Disregard this email, I just found the faq

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#cross-appserverremoteref

--- On Sat, 14/3/09, Adam Jenkins <adamjenkinstmpredirect_at_yahoo.com.au> wrote:

From: Adam Jenkins <adamjenkinstmpredirect_at_yahoo.com.au>
Subject: NodeAgent - Cross Instance JNDI Referencing
To: users_at_glassfish.dev.java.net
Received: Saturday, 14 March, 2009, 9:10 AM


Hi Guys,

I'm experimenting with NodeAgents and multiple instances on the same machine.  First up let me say what a fantastic user interface glassfish has.  I've been doing JEE since back in the days of mod_jserv on apache and glassfish has the best interface I've ever come across (including weblogic).  The fact that you can start and stop multiple instances and give them their own memory space is amazing and represents IMHO a major leap forward for JEE deployment.

I have two instances (on the same machine), one of them I deploy my ejbs to, the other I deploy my war files to.  They're under management of a node agent.  Now when I deployed them all onto the one instance it was no problem, the war referenced the remote interfaces of the ejbs and everything was cool.

However now that they're in different instances, the annotated remote lookup fails.  I was doing some jndi browsing, and noticed that each instance has it's own jndi (so of course my war instance can't see the beans deployed to the ejb instance).  I want my ejbs and wars on different instances to give them different memory settings and jvm properties.

Is there any way to expose the ejbs in the ejb instance to the war instance jndi without actually deploying the ejbs into the war instance?  Or do I have to do it programattically?

Any good links you could point me towards?

Cheers
Adam


      Stay connected to the people that matter most with a smarter inbox. Take a look http://au.docs.yahoo.com/mail/smarterinbox

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net