Markus Karg wrote:
> 
> > Thanks for all your answers. They were very helpful, but I think you're
> > wrong on the container one. I checked the EJB Specs from Sun and it says
> > this:
> > The container runtime provides the deployed enterprise beans with
> > transaction and security management [and other services - I ommitted] that
> > are generally required as a part of a manageable server platform.
> 
> This is not different to what I thought (maybe I pointed out not good). The
> container is providing this services to the bean, but it really only
> provides it and does not run it. That means, there is a security and TX
> server running (really only one instance for the whole J2EE server), and the
> container only gives the bean access to it. So the container is not doing TX
> or security services, it only looks for some, gets a handle, and forwards
> that handle to the bean (as a context).
It is not right to say that the container only gives the beans access to
Transaction 
and security services. The role of the container is (for transactionnal
aspects for example) to assures that an EJB method will be invoked
in the right scope of transaction depending on the transaction
attributes.
It is the container that interacts with the transaction service 
to suspend client transaction and begin a new one. It gives also
the bean access to the transaction service via the EJB context in case
of session beans;



> > It also draws a distinction between the "Container" and the "Server,"
> which
> > it states can have different providers.
> 
> Yes that's true, but for the interfaces between container and server are not
> well defined, I do not know of any example where container X can run within
> server Y. :-(
> 
> > As well, I looked at the source code
> > of JOnAS and there a container is basically an implementation of the
> > ejb-jar.xml for each bean (or ".jar") file. Every ".jar" or individual
> bean
> > (if not in a ".jar") has its own container, all of which can live in the
> > same Server. There can also be multiple servers too.
> 
> So every bean has it's own container? Strange, where is the distinction
> between Container and Context then?
> 

No there is a container for one ejb-jar file or ejb-jar.xml in which
you can describe several EJBs


> > If you want more info
> > on this, let me know and I'll point you to the actual source code.
> 
> Yes, if it's not too complex, please send filename and line number.
> 
> ----
> 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".

-- 
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
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