Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

[J2EE] Standard asynchronous call

Thread view: 
zebulon - 23 Jan 2006 18:33 GMT
Hi,
I am looking for the standard way of calling a method of a class (POJO or
not) asynchronously within a J2EE developpement (for exemple within a
servlet) ?
I believe launching a new thread is forbidden (at least not advised) in a
J2EE environnement. Do you confirm that ?
Using a JMS provider and an MDB, is the only standard way ? if yes, isn't
that heavy for a basic issue like this one ?

thanks

Raymond DeCampo - 24 Jan 2006 21:30 GMT
> Hi,
> I am looking for the standard way of calling a method of a class (POJO or
> not) asynchronously within a J2EE developpement (for exemple within a
> servlet) ?
> I believe launching a new thread is forbidden (at least not advised) in a
> J2EE environnement. Do you confirm that ?

New threads are forbidden in the EJB container.  The web container
allows new threads.

> Using a JMS provider and an MDB, is the only standard way ? if yes, isn't
> that heavy for a basic issue like this one ?

Doesn't seem too heavy for me.  Messaging is the standard answer to
asynchronous requests regardless of language.  An MDB is not complicated
(not like entity or even session beans).

HTH,
Ray

Signature

This signature intentionally left blank.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.