• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Caching of reference

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
In our project, we are accessing few EJBs that are outside our firewall.The class, which does the lookup and returns me remote reference, is static class and checks whether reference is already created or not.If yes, then same reference is returned.
When i make second method call on same bean using the cached reference, I get security violation exception.
Any solution?
Thanks.
Sandeep.
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say Remote Reference do you mean Remote EJBHome or Remote EJBObject? If you are cached the EJBHome stubs then that should be fine, and in fact good practice. However, you should NOT be caching Remote EJBObjects.
 
Honk if you love justice! And honk twice for tiny ads!
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic