Re: embedded

Tim Anderson <[email protected]> Mon, 10 Jul 2006 21:56:46 +1000
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Leonardo Kenji Shikida wrote:
> I would like to start and stop an openjms server form inside my
> application, embedded, but I would also like to make it available from
> clients running in other machines.
>
> I've noticed that openjms has an embedded protocol, but I believe this
> is suited for processes running in a single JVM
>
> Is it possible to be done using openjms?
>
> []
>
> Kenji
> _______________________
>   
To embed openjms, simply instantiate an org.exolab.jms.server.JmsServer 
[1] instance, passing
the path to the openjms.xml configuration file. The configuration can 
use any connector protocol.

   JmsServer server = new JmsServer(config);
   server.init();


See the user guide [2] for details on programatically stopping the server.

-Tim


[1] 
http://openjms.sourceforge.net/modules/openjms/xref/org/exolab/jms/server/JmsServer.html#116
[2] http://openjms.sourceforge.net/usersguide/admin.html



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642