• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interesting situation!!!

 
Gaurav Pawar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
The situation i am in is a struts application running on a Linux box(Tomcat) and the business logic for it (a C++ dll) is on the Windows machine.

I am using RMI for communication between the two remote hosts (The linux and the windows machine). This serves all the requests serially. One after another since there is just one instance of the object in the registry.

I want to implement RMI like functionality for multiple clients so that for every incoming request a new bean is instantiated and the requests get served simultaneously maintaining a session for each client.

Is this possible??
if so how.

Regards,
Gaurav
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could make a new Remote interface "in front" of your existing interface that creates a new Remote bean on each call and returns the existing Remote object's stub - your web interface could save the stub in the session. Or instead of RMI you could use EJBs and use stateful session beans.

One problem I see here no matter what the approach is whether or not the DLL you're wrapping "understands" how to handle multiple sessions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!