wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Can we make RMI transport additional implicit objects? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Can we make RMI transport additional implicit objects?" Watch "Can we make RMI transport additional implicit objects?" New topic
Author

Can we make RMI transport additional implicit objects?

Kojcho Koev
Greenhorn

Joined: Nov 13, 2006
Posts: 1
I have the following case.. I have an EJB 3.0 application, consisting of EJB layer (jboss) and web layer (tomcat, the bundled in jboss). So I have hundreds of business methods, exposed from several stateless session beans. What I want to do is sending an additional object with each and every business method call. I would 'attach' this object in a common place - let's say in a servlet Filter. Is there some way to save myself adding this object as a new param in all the methods?

I can guess an easy way to achieve this when I use local interfaces (let's say with ThreadLocal), but I would like to use remote (RMI) calls between the ejb container and the web container, distributed on two different VMs.

So I need an easy way to put somewhere an object and the RMI compiler to use it when marshaling the parameters of the method and attach it to the serialized stream when such an object is present...

Any ideas if it is possible to do something like that?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can we make RMI transport additional implicit objects?
 
Similar Threads
Can I in invoke ejb RMI - IIOP business service from corba?
EJB based Architectural problem ! pls help with suggestions
J2EE 1.4
Transaction Management
Transaction EJB session bean