• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we make RMI transport additional implicit objects?  RSS feed

Kojcho Koev
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!