Hi!
We want to use stateless sessionbeans BUT they need to use
some resources, for instance proxies to RMI servers
or data read from a file.
+ Can we use javax.ejb.SessionContext to store String values
as properties for each stateless session bean? I suppose the
answer is affirmative but have not tried it yet, because what we really
need is to be able to store objects, see next question...
+ How can I store something like an RMI connection proxy to an
RMI server so that all my stateless session beans can use it?
We don't want the session beans to be forced to create this connection for
each client invocation of a business method. We want to create the
connection
once, store it in memory, and make it available to all stateless session
beans,
very much like a JDBC pool.
Right now we store these objects in JNDI for the stateless session beans to
use it, but we are not happy with this solution:
- JNDI usually means accesing the properties from another JVM
so it is slower than storing the objects in memory
- Some EJB servers allow us to store any object into JNDI, others
only let us store CORBA servers.
Any ideas? Thanks a lot in advance.
Javier Borrajo
I+D Spain
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".