Andrej,

I would try to avoid using a startup class like Weblogic's statup class because it ties your solution to an application server.
I would recommend create a getService() method for you service so that when it is called from another EJB
or servlet it checks to see if the service is running and if it isn't then it instantiates all of the objects. I am
assuming the service is a singleton?  Also, in weblogic you can avoid using the startup classes by creating
a main[string args[]) method in your service and it works just as well as the startup classes from Weblogic.
Andy

 

 

Andy Frank
[EMAIL PROTECTED]

 
Andrej Gabara <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
10/28/2000 10:17 PM MST
Please respond to Orion-Interest

To: Orion-Interest <[EMAIL PROTECTED]>
cc:
bcc:
Subject: RE: startup classes?


Thank's, but I meant startup classes in the EJB server. Maybe it's
immaterial if its web application or ejb server. I've scanned through
the mail archive, but did not find a similar question. Thank's anyways.

-Andrej

----------------------------------------------------------------------------
  Andrej Gabara          [EMAIL PROTECTED]            (408) 543-4452
  Kintana, Inc.          http://www.kintana.com         (408) 752-8460 FAX
----------------------------------------------------------------------------

> -----Original Message-----
> From: Christian Sell [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, October 28, 2000 1:11 PM
> To: Orion-Interest
> Subject: Re: startup classes?
>
>
> this has been asked a few times before (last time only a few
> days ago, see
> list archive). Basically you will need to handle this in a
> servlet which has
> load-on-startup configured. If you really need you services
> to start when
> the server is started, you will have to configure the same
> for the web-app
> the servlet lives in.
> As for failover, I guess you will have to take care of that yourself.
>
> -----Original Message-----
> From: Andrej Gabara <[EMAIL PROTECTED]>
> To: Orion-Interest <[EMAIL PROTECTED]>
> Date: Samstag, 28. Oktober 2000 15:14
> Subject: startup classes?
>
>
> >
> >Hi,
> >
> >our server needs to run some services internally. Those services are
> >implemented as threads and should be started when the server
> is started.
> >How do you do this in Orion? Weblogic allows you to define
> some classes
> >to run in its properties file.
> >
> >How does this affect load-balancing and fail-over? Say
> server1 that runs
> >the services crashes. How to make server2 (or another server) pick up
> >those services?
> >
> >Thank's in advance,
> >Andrej
> >
> >-------------------------------------------------------------
> --------------
> -
> >  Andrej Gabara          [EMAIL PROTECTED]           
> (408) 543-4452
> >  Kintana, Inc.          http://www.kintana.com        
> (408) 752-8460 FAX

> >-------------------------------------------------------------
> --------------
> -
> >
>
>

Reply via email to