• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can we make RMI transport additional implicit objects?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic