Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

running background job in java  RSS feed

 
jayaram namburaj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my application i have a button . when i press , it will generate list which is a long process. What i want is even if i close my application it has to generate the in background. Until the full generation is completed.
Thanks in Advance






[BPSouther: removed 'urgent' from subject line]
[ August 08, 2007: Message edited by: Ben Souther ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jayaram namburaj,
Welcome to JavaRanch!

In an effort to help you get the most from our forums, we've compiled a
list of tips for asking questions here. You can find the list in our
FAQ section here.
In particular please see URL=http://faq.javaranch.com/view?EaseUp]EaseUp[/URL] to learn why adding "urgent" to your subject line and/or posts can dramatically slow down or halt responses to your question altogether.

-Ben
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by jayaram namburaj:
In my application i have a button . when i press , it will generate list which is a long process. What i want is even if i close my application it has to generate the in background. Until the full generation is completed.
Thanks in Advance


Which part of this are you stuck on?
 
Tony McClay
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a little confused about the question, but if I understand it correctly, you need a process to complete independnantly of the user's connection/interaction?

If this is the case, it is a classic sceanario for a Mesage Driven Architecture or MOM. I assume you are in a full J2EE environment not just a servlet container like Tomcat. Message Topics/Queues are a part of all modern J2EE environmentents. Message Driven Beans (MDB) are a natual fit for this problem, pening the version of EJB/J2EE supports MDB. Most all do, I just say ity because someone corrected me on this issue.

I hope this helps.. If not, please clarify your question.

Tony
Sun Certified Web Business Component Developer
Sun Certified Web Components Developer
Sun Certified Programmer for the Java 2 Platform
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Tony McClay:
I assume you are in a full J2EE environment not just a servlet container like Tomcat.


Why would you make that assumption?

We have a forum called "EJB and other JEE technologies" where it would be safer to assume that but in the Servlets forum we only assume that the user is running a servlet container.

There are ways to do what the original poster wants to do with the Servlet API. I'd like to hear more about what he's done already before suggesting anything though.
[ August 08, 2007: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!