File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes pass data/object from servlet to running java app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "pass data/object from servlet to running java app" Watch "pass data/object from servlet to running java app" New topic
Author

pass data/object from servlet to running java app

Mike Nightsky
Ranch Hand

Joined: Aug 18, 2001
Posts: 48
Hi!
I need to pass data/objects from a serlvet to a java application.
I found some solutions for this task.
BUT this application is running all the time, and there should be only one instance for many concurrent requests.
I would like to implement a chat server with this.
I wrote a http-server with the chatfunctionality but it is buggy and lacks the abillity to handle servlet requests.
Thanks in advance
Mike
------------------
Win the opportunity to make money on the Internet
http://sweeps.sitesell.com/minirich.html

[This message has been edited by Mike Nightsky (edited August 18, 2001).]


Win the opportunity to make money on the Internet<br /><a href="http://sweeps.sitesell.com/minirich.html" target="_blank" rel="nofollow">http://sweeps.sitesell.com/minirich.html</a>
Mike Nightsky
Ranch Hand

Joined: Aug 18, 2001
Posts: 48
Next thing i will try is to communicate between the servlet and the application with RMI, i hope the overhead dont get to big.
------------------
Win the opportunity to make money on the Internet
http://sweeps.sitesell.com/minirich.html
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
Actually, a chat server using RMI to talk to servlets is in chapter 9 of my servlets book, so yes, it is feasible. RMI overhead is unavoidable but not too bad. J2EE uses RMI for all communication between applications.
Bill
------------------
author of:
Mike Nightsky
Ranch Hand

Joined: Aug 18, 2001
Posts: 48
Thank you for your response,
i will try to get your book, and i will post again if it worked.
Thanks
Mike
------------------
Win the opportunity to make money on the Internet
http://sweeps.sitesell.com/minirich.html
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pass data/object from servlet to running java app
 
Similar Threads
Doubts regarding servers
Java application talking to web server
Black Hole between Java and Tandem
Capturing selected check boxes
Sending HTML pages to client