Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Invoking a currently running application from a servlet

 
ahmad namini
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The specs of my app specify that an application which is conversing with a dedicated connection is running. This app lives in the JVM and is constantly bridging information from, in my case, Jabber to a database. However, there may be times when the application can be invoked via a servlet.

The application has ten threads whose mission is to write back to Jabber, and one thread which listens messages being sent by Jabber. Is it possible for a servlet to invoke a method of a class which is currently being run. All synchronization issues will handled correctly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic