Hi,

Having just switched my project to using Jeremie, I'd like to suggest some 
improvements to the documentation, and also to config.env.

At the moment the documentation says in Install.html#Configurin3:
>>Configuring JOnAS and JNDI for Jeremie
>>The following steps are required to change from RMI to Jeremie:
>>Adapt the jndi.properties file as indicated previously.
>>set OBJECTWEB_ORB=JEREMIE in your environment (.profile)

In fact, with the current release of Jonas 2.0, this is not sufficient. One 
also needs to redeploy the EJBs, and ensure that JEREMIE_jonas.jar occurs 
in the classpath rather than RMI_jonas.jar. The choice of jar is 
particularly important because the server and deployer code rely on a 
constant in the class org.objectweb.jonas.common.Orb in order to decide 
whether to use RMI or Jeremie.

Furthermore, config.env sets the value of OBJECTWEB_ORB, and since 
config.env is executed by each script in bin this will override any setting 
made in your profile. Also, config.env does not currently choose the 
appropriate XXX_jonas jar: it always chooses RMI_jonas.jar. I know these 
are trivial matters, but added together they made my switch over to Jeremie 
more complicated than it might have been. I suggest modifying 
Install.html#Configurin3 thus:

>>Configuring JOnAS and JNDI for Jeremie
>>The following steps are required to change from RMI to Jeremie:
>>Adapt the jndi.properties file as indicated previously.
>>Edit the line in config.env that sets OBJECTWEB_ORB thus: 
OBJECTWEB_ORB=JEREMIE
>>Ensure that JEREMIE_jonas.jar is in your classpath rather than 
RMI_jonas.jar (config.env does this automatically)
>>Redeploy your EJBs
>>Make sure you are using JDK1.2.2. Jeremie is currently not compatible 
with JDK1.3

I also suggest modifying config.env thus:

# jonas classes

if [ "$OBJECTWEB_ORB" = "JEREMIE" ]
then
    JONAS_CLASSES=$JONAS_ROOT/lib/JEREMIE_jonas.jar
else
    JONAS_CLASSES=$JONAS_ROOT/lib/RMI_jonas.jar
fi

if echo $CLASSPATH | grep $JONAS_CLASSES >/dev/null
then    :
else    CLASSPATH=$JONAS_CLASSES$SPS$CLASSPATH
fi


All the best,
Joe

=====================================================================
Joe Gittings, Royal Botanic Gardens, Kew
Hanover House, Kew, Richmond, Surrey TW9 3AB

[EMAIL PROTECTED]
+44 20 8332 5712
fax: +44 20 8332 5736

----
This list is cross-posted to two mail lists.  To unsubscribe,
follow the instructions below for the list you subscribed to.
For objectweb.org: send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe ejb-container-group".
For enhydra.org: send email to [EMAIL PROTECTED] and include
in the body of the message "unsubscribe ejb-container-group".

Reply via email to