This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Questions on Local EJB

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

I'm new to EJB and I have few questions regarding local EJB.
1. Is that true that standalone (not inside enterprise app) web or client apps can't access local EJB? If no, then how to do the JNDI lookup? As far as I know, there's no way to provide the EJB JNDI for local EJB. Please correct me if I'm wrong.

2. If for example, the web module and EJB module are inside the enterprise application, how is it possible for the web module to access the local EJB inside the EJB module. I know we need to provide <ejb-local-ref> in web.xml, but once again, how to do the JNDI lookup? Or it's not necessary anymore to do JNDI lookup?

3. Is the EJB JNDI vendor-specific? In Sun Java System App Server, it's something like


Hope my questions are clear enough. Thanks a lot.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi


See we also need to do a jndi lookup for local EJB also.The only thing is we dont want to narrow the object which we have recieved.Correct me if I am wrong.
 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First you cannot access local interfaces by standalone client.local interfaces are accesses by container only.
if you want to access local interfaces use session bean.
What i maean to say that call local interfaces through session bean(session facade design pattern).
i.e standalone client will access session bean using jndi.
session bean will access local interfaces.
 
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic