From: Alex S. <ale...@bu...> - 2003-03-28 21:22:09
|
The jboss-user list has probably heard enough of me on this subject by now! I just want to say thanks to everyone who gave responded. It's been very helpful, I appreciate it. Cheers, Alex -----Original Message----- From: jbo...@li... [mailto:jbo...@li...] On Behalf Of Gaetan Zoritchak Sent: 28 March 2003 19:10 To: jbo...@li... Subject: Re: [JBoss-user] Starting threads from session beans I use a generic MDB as a Batch Treatment Service that calls back=20 stateless beans. It's not a big deal to do it and the JVM JMS=20 communication layer make it work very fast. --=20 Gaetan Zoritchak Bright Side Factory http://www.bs-factory.com Alex Sumner wrote: > Thanks, >=20 > I'm not worried that the MDB approach will be hard to program. It's=20 > more that there will be a lot of these messages and I'm not sure if an > MDB will become a bottleneck, it seems like using a lot of stuff to do > a little thing. >=20 > Alex >=20 > -----Original Message----- > From: jbo...@li... > [mailto:jbo...@li...] On Behalf Of Rodrigo=20 > Chand=EDa > Sent: 28 March 2003 15:23 > To: jbo...@li... > Subject: Re: [JBoss-user] Starting threads from session beans >=20 >=20 > Actually, a MDB is rather easy to program. Give it a try. It might=20 > yust fit your need. >=20 > Of course you can do all that pooling with JMX. >=20 > Regards, >=20 > Rodrigo Chandia >=20 > El Viernes 28 de Marzo del 2003 04:22 AM, Alex Sumner escribi=F3: >=20 >>Thanks Rahul and David, >> >>Maybe I have to think again. Considered MDBs, but they seem like >>overkill for what I need. I just want to kick off some background=20 >>activity when a user does something via a session bean. >> >>I can avoid starting a new thread by having one waiting in a pool, but >=20 >=20 >>I still need some wait/notify synchronization between the session bean >=20 >=20 >>thread and the pooled ones. So it's still in the prohibited category - >=20 >=20 >>"bean must not attempt to start, stop, suspend, or resume a thread". >> >>I'd be interested to hear what the detailed consequences in JBoss are, >=20 >=20 >>if anyone knows offhand? >> >>Cheers, >> >>Alex >> >>-----Original Message----- >>From: jbo...@li... >>[mailto:jbo...@li...] On Behalf Of Rahul >>Ganjoo >>Sent: 28 March 2003 05:41 >>To: jbo...@li... >>Subject: RE: [JBoss-user] Starting threads from session beans >> >> >>J2EE spec doesnt allow u to start threads in EJBs...it gets too messy >>if you try... try MDBs... >> >>-----Original Message----- >>From: Alex Sumner [mailto:ale...@bu...] >>Sent: Friday, March 28, 2003 1:45 AM >>To: jbo...@li... >>Subject: [JBoss-user] Starting threads from session beans >> >> >>Hi, >> >>Briefly: is it permissible to start a new thread from a thread running >=20 >=20 >>in a session bean? >> >>I've heard that it isn't allowed, but can't see this explicitly >>prohibited in the J2EE specs. More importantly, what will the=20 >>consequences be in JBoss? If the session bean thread is in a TX, would >=20 >=20 >>I be correct in assuming the new thread will not be associated with >>that TX? >> >>Thanks, >> >>Alex >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: >>The Definitive IT and Networking Event. Be There! >>NetWorld+Interop Las Vegas 2003 -- Register today! >>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >>_______________________________________________ >>JBoss-user mailing list >>JBo...@li... >>https://lists.sourceforge.net/lists/listinfo/jboss-user >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: >>The Definitive IT and Networking Event. Be There! >>NetWorld+Interop Las Vegas 2003 -- Register today! >>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >>_______________________________________________ >>JBoss-user mailing list >>JBo...@li... >>https://lists.sourceforge.net/lists/listinfo/jboss-user >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: >>The Definitive IT and Networking Event. Be There! >>NetWorld+Interop Las Vegas 2003 -- Register today! >>http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en >>_______________________________________________ >>JBoss-user mailing list >>JBo...@li... >>https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > JBoss-user mailing list > JBo...@li...=20 > https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > JBoss-user mailing list > JBo...@li...=20 > https://lists.sourceforge.net/lists/listinfo/jboss-user >=20 ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en _______________________________________________ JBoss-user mailing list JBo...@li... https://lists.sourceforge.net/lists/listinfo/jboss-user |