File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Accessing running  application from servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing running  application from servlet" Watch "Accessing running  application from servlet" New topic

Accessing running application from servlet

Suresh Kunnath

Joined: Feb 24, 2009
Posts: 2
hello brothers,

i want to know whether we can access already running application from servlet ?

that is one application (my own java program) will be running on the server. can i access that application through servlet ?

actually my application is that one chat server application will be running on the lan (my servlet and server chat program are on the same machine). i want to get the details from server-chat program whenever i invoke my servlet. is this possible ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60050

There are numerous ways that Java programs can talk to each other. Is the application already instrumented for such in any way?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Suresh Kunnath

Joined: Feb 24, 2009
Posts: 2
hello, thank you for your reply..

what i need is get a reference to the currently running object of my server-chat program. so that i can get the current users logined

but i don't know how to get that...
i tried the following code from the servlet

ServerChat sc=new ServerFrame(); //my server chat program
sc.getClientList(); //to get the current users

but i know it wont work...?

is there any other way to get it....

I agree. Here's the link:
subject: Accessing running application from servlet
Similar Threads
Mixing script with applets to communicate with sockets application
New to servlets - a few random easy questions
Running two Containers on one ServletEngine
live website chat application!
Servlet-Application communication