Alex, I'm no expert in Weblogic, but I can tell you what I did while
using Orion(yes, remember when ORION-INTEREST hardware was running?
;-)). My concerns with Weblogic are of the ClassLoader variety. I'm
unsure that this would work:

I started such services within the servlet container, and then called
them from my EJBs. A static initializer on the servlet will do + some
attribute(in Orion, load-on-startup). I also bundled minimal logic into
the servlet to start/stop the service and check its status with a web
interface.

Nowadays, I think the best way for you to do it would be launching
MBeans from the servlet container, and then bringing up as many services
as you want. I think Weblogic and JBoss support MBeans for this purpose.
I also tend to think you could migrate these with minimal effort, in
case some server doesn't support it(using a servlet with a static
initializer in the particular case of Orion/OC4J)

HTH,

Juan Pablo Lorandi
Chief Software Architect
Code Foundry Ltd.
[EMAIL PROTECTED]

Barberstown, Straffan, Co. Kildare, Ireland.
Tel: +353-1-6012050  Fax: +353-1-6012051
Mobile: +353-86-2157900
www.codefoundry.com


> -----Original Message-----
> From: A mailing list for Enterprise JavaBeans development
> [mailto:[EMAIL PROTECTED]] On Behalf Of Alex Paransky
> Sent: Saturday, August 17, 2002 7:29 PM
> To: [EMAIL PROTECTED]
> Subject: How can I integrate multi-threaded components with
> EJB session beans?
>
>
> In one of my session beans, I need to download contents from
> many different URLs.  I have implemented a parallel
> downloader into which I can throw a bunch of URLs, and it
> starts to download them on different threads.  When the
> download of each URL is complete, it calls back on the
> supplied interface to notify the client.
>
> I need to use this component from an EJB.  What is the best
> way for me to integrate it into my system?
>
> I was thinking of wrapping it into an RMI server object which
> I can then deploy into the JNDI namespace of the appserver,
> however, I am unsure of how to best integrate with the
> "callback" mechanism.  I guess the callback could simply call
> on the Session Bean, and pass the required information,
> however, the process of re-acquiring (reloading) the state
> from the database is expensive.
>
> Are there better ways?  I am running under Weblogic 6.1 SP3,
> but don't want to make my code Weblogic dependent.
>
> Thanks for any insight you may offer.
>
> -AP_
> http://www.myprofiles.com/member/profile/apara_personal
>
> ==============================================================
> =============
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "signoff EJB-INTEREST".
> 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 "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to