You should be able to run other tasks on their own thread within the same
jvm using a wrapper as follows:
import org.objectweb.jonas.server.Server;
public class JonasWrapper {
public static void main(String[] args) {
Thread myTask = new Thread(){
public void run() {
// do my task stuff
}
};
myTask.start();
// start JOnAS
Server.main(args);
}
}
Is this what you are after?
----- Original Message -----
From: "Philippe Coq" <[EMAIL PROTECTED]>
To: "Joe Weder" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 7:35 PM
Subject: Re: Server startup tasks
> Joe Weder wrote:
> >
> > Is there any way that I can perform additional tasks on each startup of
the
> > ejb server?
> >
> > I want to load some meta-data objects into the server vm.
> >
> > I want to bind a UnicastRemoteObject to the server's
javax.naming.Context.
> >
> > Any suggestions? I would think that there is a way to do this without
> > modifying the org.objectweb.jonas.server.Server
> > source.
> >
> > Joe Weder
> > Software Engineer
> > Intelligent Computer Systems
> > [EMAIL PROTECTED]
> > 717.295.7977 x614
> Hi Joe,
> in the current version of JOnAS you can't do this without modifying
> Server.java code. We are working on the possibility for JOnAS to
> start at startup time some "User Services" the idea will be that
> if you want to perform some additional task you will have to write
> your own service (a service must implement a well defined interface
> start, stop etc...)
> this service will be configurable by a set of properties,
> and a new property in the jonas.properties file will indicate
> the set of services that Jonas will launch at startup time.
> It is one of our priority and we haveplannned to introduce this in
> the next release of JOnAS for this summer or before if possible
> Best regards
> --
> Philippe
>
> Philippe Coq Evidian Phone: (33) 04 76 29 78 49
> Bull S.A - 1 rue de Provence - 38432 Echirolles Cedex France
> Download our EJBServer at http://www.objectweb.org
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
>
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".