Hi Vinícius,
It's pretty easy. You just create an InitialContext with
org.openejb.client.LocalInitialContextFactory as your JNDI provider
and set "openejb.home" as a System property or as part of the
InitialContext parameters. The value of "openejb.home" should be the
location of where you installed OpenEJB. Just make sure you have the
openejb-loader-1.0-XXX.jar in your client's classpath.
That's it!
The same technique works for unit testing the EJBs.
-David
On Sep 27, 2005, at 2:15 AM, Vinicius Silva wrote:
Hi David.
It is around 20 Entity Beans(mapped on PostgreSQL tables through
CMP/JDBC
driver) and 5 Session Beans(playing the role of Service Façades).
By the way, i am wondering how to run OpenEjb embedded into my
Swing app.
Regards,
Vinícius
On Monday 26 September 2005 21:32, David Blevins wrote:
On Sep 26, 2005, at 6:33 AM, Vinicius Silva wrote:
Hi,
i am considering using openejb embbended within a client Java app
running on
client machines with 128MB(RAM). Do you guys think is it possible?
What is
the memory requirements for running OpenEJB?
OpenEJB itself through the local server at one point could run on a
Zarus. It doesn't take much space.
It should be no sweat, but it really depends on the size/quantity of
the ejb's you intend to run. About how many and what type of ejbs
are you looking at running?
-David