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 4626378
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:24:41+00:00 2026-05-22T03:24:41+00:00

I develop enterprise project in NetBeans on GlassFish (J2EE_1.4). There are some entity beans,

  • 0

I develop enterprise project in NetBeans on GlassFish (J2EE_1.4).
There are some entity beans, a couple of session beans and message driven bean in my project.
I use entity beans from servlet (in same project, from web-component) in way like this:

InitialContext ic;
ic = new InitialContext();
UserLocalHome userHome = (UserLocalHome) ic.lookup("java:comp/env/ejb/User");

Everything works just fine.
But when I try to do lookup from session bean or MDB I get naming error. No bean can lookup any other bean.
There are some references in web deployment descriptors, but AFAIK there’s no need to define references for EJB.
Also all entity beans have only local interface.

  • 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-22T03:24:42+00:00Added an answer on May 22, 2026 at 3:24 am

    Each EJB has its own java:comp namespace, so in J2EE 1.4, each <entity/> or <message-driven/> must have its own <ejb-ref/> (or <ejb-local-ref/>).

    In JavaEE 6, a single EJB (or the servlet), can declare an ejb-ref with a java:module (or java:app) prefix to allow any component in that scope to be able to share the reference.

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

Sidebar

Related Questions

We are preparing to develop an enterprise Human Resources Project using ASP.NET and our
I develop some C# Add-Ins for the Sparx Systems Enterprise Architect UML modelling product.
I develop part of some JBoss+EJB based enterprise application. My module needs to process
I want to develop an enterprise app that includes a WindowsForms presentation layer, middle-tier
what is the importance of the IDE(Integrated development environment) when we develop enterprise applications.
We're investigating the iPhone Enterprise Developer Program as a way to develop and distribute
I have Standard version of eclipse Galileo. Now I want to develop enterprise applications
I am trying to develop an enterprise application which needs to list all the
My question is for programmers planning to develop future enterprise web apps in HTML5
Suppose you're working on an enterprise project in which you have to get management

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.