EJB containers are not databases, you don't have to connect them. You get a
reference to a distributed component (EJB) through its home registered in
the naming service (JNDI). Thus, if you have several EJB containers runing
in differents JVM (local or remote) they have to share the same "registry".
Moreover, in this case, you have to run only one transaction manager that
will be the coordinator for all the containers.
If your environment complies to these points you will be able to access
components in your client from different EJB containers (either in the same
thread or in differents).

Hope it helps.


-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de
[EMAIL PROTECTED]
Envoy� : mercredi 27 juin 2001 16:07
� : [EMAIL PROTECTED]
Objet : Running more than one EJB client inside of one client software?


I need to know whether it is possible to have more than one connection to an
EJB server inside of one Java Client Application. Is there a method as
"create
new connection and attach it to a new thread" or something, or is this done
automatically if I create a new thread and inside of this connection to the
EJB
server?

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to