Hi,

I'm working on a J2EE application with Servlets and EJBs. One of the tasks is to do a 
big calculation (10 min-1 hour). In order not to use all CPU resources for these 
calculations, I have an asynchronously design pattern and do the calculations one by 
one. 

To this end I use a Servlet that sends a message with Java Message Services (JMS) to a 
queue. A point-to-point Message Driven Bean is pulling messages from the queue and is 
subsequently calling a Session Bean that does the calculation. Until so far, this 
obeys "EJB Design Patterns of Floyd Marinescu, Chapter 1 ,Message Facade".

Here comes my question:
The results of the calculation, once the calculation is finished, are sitting in the 
Session Bean (in memory). Now I want to access the calculational results of the 
session bean from within a servlet. How can I do this? In some way the data in the 
session bean should be associated with a user session of the servlet. But I think I 
can not access session attributes of the HttpSession nor those of the ServletContext.

By the way, I don't want to persist them in a database because it 's a lot of data and 
it's not clear whether data is needed in the future. 

This is undoubtly an issue that occurs in more applications. Can someone help me with 
this one?

Thanks,

Evert Bende

http://212.203.14.69/topsolar/cgi-bin/climatetop50/cgi-bin/topsites.cgi?action=in&id=69]www.wattabout.com

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849094#3849094

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849094


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to