Results 1 to 5 of 5
  1. #1
    xbhanu is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default Java application inside tomcat ???

    I have a standalone java application which uses java based TCP NIO to collect some information from various clients (not on web/HTTP but through some indigenously developed middleware). Now I have to develop a front-end for the users to perform a lot of querying through HTTP. So is there a way to put this application inside tomcat, so that servlets can invoke required functions on this application ???
    The thing is it has to listen on that middleware outside tomcat too and at the same time service servlets inside tomcat. How to do this ??

    Putting this application outside tomcat and using RMI is an option but I donít want to do that.
    Can embedding tomcat inside my application is an option ???

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Sure you can use of your app inside tomcat, You create need servlets and invoke need your classes in its.
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    xbhanu is offline Member
    Join Date
    Feb 2011
    Posts
    3
    Rep Power
    0

    Default

    But the application will have its own memory space.
    From what i've heard is that once you deploy a war in tomcat it becomes a process, and my app is also a process. So even though i may use the same classes but they will be two different processes and all the data that i want to query on lies in the applications address space. !!!
    Feel free to correct me if i am wrong.

  4. #4
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,856
    Rep Power
    19

    Default

    Make it a web service in your tomcat that the other apps can make calls to?

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,856
    Rep Power
    19

Similar Threads

  1. JAAS implementaion for web application with tomcat
    By singharun in forum Enterprise JavaBeans (EJB)
    Replies: 0
    Last Post: 08-30-2010, 12:16 PM
  2. How to invoke out side web root files inside application?
    By damodar in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 06-03-2010, 12:06 PM
  3. Replies: 3
    Last Post: 12-24-2009, 07:04 AM
  4. Application restart in tomcat.....
    By jithan in forum New To Java
    Replies: 1
    Last Post: 09-10-2008, 03:31 PM
  5. Replies: 0
    Last Post: 06-11-2008, 04:31 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •