Ummm,

I think a better way of customizing an EJB server is this:

public class MyCustomizedServerClass
{
   public static void main(String args[])
   {
      ....do your startup voodoo here....
     
      // Now start Jonas
      org.objectweb.jonas.server.Server.main(args);
   }
}

Always worked for me in the past :)   And it doesn't require making arbitrary and 
non-EJB-compliant changes to Jonas.

But anyway, this sort of thing should be discouraged: you should be able to pop an EJB 
into *any* container.

Joe


-----Original Message-----
From:   Gabriel Lawrence [SMTP:[EMAIL PROTECTED]]
Sent:   Sunday, March 05, 2000 2:48 AM
To:     [EMAIL PROTECTED]
Subject:        Changes to Server.java to allow "startup" classes

We had a need to have arbitrary additional java code run inside of the
Jonas VM. To accomplish this we modified the Server.java class to allow
for startup classes. The only requirements on the startup class is that
it have a constructor that takes a Properties object and a String array.
The Properties object is the Servers environment, the String array is
the command line arguments at startup.

The code uses the "services" property to find the names of classes to
startup. It expects this as a comma seperated list...

Please consider the inclusion of our code in the Jonas project. It will
help folks who want to run Servlet engines inside of the server, or
other arbitrary RMI services and have them all be part of a single happy
family. It also allows for easy extension of the server for local
customizations....

thanx,
-gabe
 << File: Server.txt >> 

----
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