Actually, a MDB is rather easy to program. Give it a try. It might yust fit your need.
Of course you can do all that pooling with JMX. Regards, Rodrigo Chandia El Viernes 28 de Marzo del 2003 04:22 AM, Alex Sumner escribi�: > 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 > 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 I > still need some wait/notify synchronization between the session bean > thread and the pooled ones. So it's still in the prohibited category - > "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, > if anyone knows offhand? > > Cheers, > > Alex > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Rahul > Ganjoo > Sent: 28 March 2003 05:41 > To: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED] > Sent: Friday, March 28, 2003 1:45 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Starting threads from session beans > > > Hi, > > Briefly: is it permissible to start a new thread from a thread running > 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 > consequences be in JBoss? If the session bean thread is in a TX, would 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 > [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > 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 > [EMAIL PROTECTED] > 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
