|
I am using Jonas 2-2-4.
I am attempting to use Jonas to replace an existing
allpication. The application is built using a seperate database for
different instances of the application.
I want to create and deploy the set of beans that
implement the application, multiple times on the same EJBServer. I am
under the impression that i can do this using a separate deployment descriptor
for each instance of the application. I have done this and it loads
fine. I can write clients that will talk to the individual beans
correctly.
The problem i have is when i try to write a bean to
talk to each of the separately deployed application beans, i get an EJBException
when i try to do the context.lookup on the jndi-name. So i guess i don't
understand well enough, how the tags in the ejb-jar.xml and the
jonas-ejb-jar.xml.
Specifically - Do the ejb-name and the ejb-ref-name
have to match between the deployment and the reference to the
deployment?
I assume that the jndi name must be unique over the
EJBServer. Is this true?
Anyone who can shed some light on this would be
very much appreciated?
|
