Copyright (C) BULL S.A. 1998-2002


Entity beans "Account"
----------------------
AccountImpl	entity bean with "container managed" persistance
AccountExpl	entity bean with "bean managed" persistance


Compiling this example:
-----------------------
ant -find build.xml install


Running this example:
---------------------
Your database access should be configured: a properties files defining a
  Datasource object should be defined in $JONAS_ROOT/config (e.g. InstantDB1.properties),
  and the property jonas.service.dbm.datasources of the jonas.properties file should
  be set to the name of this datasource description file (e.g. InstantDB1). See JOnAS
  documentation for more details.

1) Run an EJB Server to make beans available to clients:

on UNIX:
	cd $JONAS_ROOT/examples/src/eb	
	jonas start 
On Windows:
	cd %JONAS_ROOT%\examples\src\eb
	jonas start

You should see something like this when the bean is loaded :
	...
	AccountImplBean available
	AccountExplBean available
	...
	The JOnAS Server 'jonas' version 2.6 is ready and running on rmi

2) Run the client program:

on UNIX:
	jclient -cp "$JONAS_ROOT/ejbjars/eb.jar" eb.ClientAccount AccountImplHome
	jclient -cp "$JONAS_ROOT/ejbjars/eb.jar" eb.ClientAccount AccountExplHome

On Windows:
	jclient -cp "%JONAS_ROOT%\ejbjars\eb.jar" eb.ClientAccount AccountImplHome
	jclient -cp "%JONAS_ROOT%\ejbjars\eb.jar" eb.ClientAccount AccountExplHome
	
In fact, the "-cp" option is not useful here, because classes are found in the CLASSPATH.

3) Stop the jonas server
	jonas stop


Notice on the AccountImp2 example
---------------------------------
In addition to
- AccountExpl, entity bean with "bean managed" persistance, and
- AccountImpl, entity bean with "container managed" persistance conforms to EJB 1.1
there is a third bean
- AccountImpl2, entity bean with "container managed" persistance conforms to EJB 2.
This example shows how to write the Account bean conforms to the new
"container managed" persistance, EJB 2.

This example is commented in the two XML deployment descriptors 'eb.xml' and 'jonas-eb.xml'.
To run it, you must:
- uncomment it in those two XML files,
- re-build the eb example,
- add the 'datasource.mappername' property value in your <datasource>.properties file,
- re-run the EJB server,
  (the 'datasource.mappername' property must be up-to-date in your
   '<datasource>.properties' file),
- run the client program
  $ jclient -cp "$JONAS_ROOT/ejbjars/eb.jar" eb.ClientAccount AccountImpl2Home
