• 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

Access remote EJB 3 with tomcat

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm struggling a bit with something...I'd like to access an ejb that is deployed in glassfish from a servlet that I have deployed in tomcat.
The only way I manage to access it is to have both of them deployed in glassfish.What is the correct way to make the ejb available to Tomcat?

I followed the tutorial at http://technology.amis.nl/blog/1368/connecting-to-an-ejb-30-remote-sessionbean-from-tomcat but the example was for Tomcat 5.5 and EJB2.x.I couldn't even find any lib OR shared/lib in my netbeans bundled install of tomcat.When I try to run it I get a javax.naming.NoInitialContextException.The exact same code(with and without lookup) works when I deploy both the servlet and the bean in glassfish.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alternate approach would be to use Apache TomEE, which is a version of Tomcat with EJB support already added.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic