Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6216273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:12:29+00:00 2026-05-24T07:12:29+00:00

I am preparing for the EJB certification and I am going thro the EJB

  • 0

I am preparing for the EJB certification and I am going thro the EJB 3.1 book (O’Reilly)

One of the chapters discusses about JNDI, ENC and the EJB connections

Can some of you give me a real life scenario of these so that I can get a better understandin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:12:30+00:00Added an answer on May 24, 2026 at 7:12 am

    JNDI in this scenario is used as a central location through which ‘names’ (a kind of URL) are routed to an EJB bean. Think of it how a Servlet is mapped to a URL.

    If EJB beans are local to an application (e.g. they reside within the web module or within the EJB module of the same EAR), then you don’t necessarily need to come into contact with JNDI. Namely, you’d probably use injection to get instances of your bean and no JNDI is needed then.

    However, if you need to address an EJB bean in a remote server or if you want to lookup (a proxy to) a bean programmatically, you’d use its JNDI name and JNDI to get hold of it.

    See this for some more info, including ENC: Declaring @Resource and @EJB at the class level in Java EE6

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm preparing for interviews..I wanna do some research before going to one..When I was
I'm currently preparing the S(O)CJP, with the Sierra & Bates book. About inner classes
While preparing for the SCJP-6 exam I faced with a difficult issue. I can’t
I'm preparing to the SQL Server exam (70-431). I have the book from Sybex
I am preparing paint app, here u can draw any thing, after completing draw,
I am preparing for MCTS exam 70-536 and reading the book MCTS self paced
I am preparing for an exam and studying questions. However I have one question
I'm preparing to Microsoft Certificate exam (70-515), reading Microsoft book for this exam, practicing
Currently I am preparing exercises about networks and mobile communications for students. I was
I'm preparing to switch to Linux. I want to learn more about what Linux

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.