This content has been marked as final.
Show 4 replies
-
1. Re: JBoss and user threads and sockets
dimitris Feb 9, 2006 6:34 AM (in response to atodorov)You can't do this kind of stuff (listening to sockets, createing your own threads) in ejbs.
You need to extend JBoss with your own service to do it:
See "extending jboss"
http://www.jboss.com/pdf/jbworld/never_write_main.pdf
"How can I extend JBoss"
http://www.jboss.org/wiki/Wiki.jsp?page=FAQJBossJMX -
2. Re: JBoss and user threads and sockets
atodorov Feb 9, 2006 9:53 AM (in response to atodorov)I see...
But what about if I use threads & sockets in the same VM, but outside of the ejb container? We use the bundled Tomcat. May I manage threads & sockets safely from a ServletContextListener (for examlpe)? -
3. Re: JBoss and user threads and sockets
dimitris Feb 10, 2006 6:50 AM (in response to atodorov)You could do this from a servlet. But writing an mbean service gives you full lifecycle control (start/stop) and manageability (through jmx).
-
4. Re: JBoss and user threads and sockets
atodorov Feb 10, 2006 9:01 AM (in response to atodorov)Ok, thanks!