The best way to do this is to implement your JMS listener class as a
Java Servlet.  You can then configure the servlet to startup upon
server startup (you can even configure the order of the startup).  

Yes, you can use threads inside the Servlet.  

-- 
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY

--- In flexcoders@yahoogroups.com, "amalabie" <[EMAIL PROTECTED]> wrote:
>
> I'm using messaging (JMS) to pass objects to a Java program that
> listens for messages on the Topic. My question is: How do I
> automatically get the Java program running so it can pick up messages?
> When I start it manually it does start to grab msg's off the message
> queue. Does JRun have some sort of config parameter I can set?
> 
> Also, should the Java program be utilising threads? It's job is to
> wait around and service requests as they come in, so if a lot of users
> are sending, things could get messy.
> 
> Any help would be greatly appreciated! Thanks in anticipation!
> 
> My config:
> Windows XP Pro
> Eclipse and Flex Builder plugin
> Integrated JRun4
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to