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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:46:17+00:00 2026-05-28T14:46:17+00:00

Since: the @EJB doesn’t work on desktop apps, because there’s no container, Weblogic doesn’t

  • 0

Since:

  • the @EJB doesn’t work on desktop apps, because there’s no container,
  • Weblogic doesn’t expose through JNDI the names of the EJB’s (3.0),
  • I didn’t find anything about it in the official documentation for a few days now,

does anyone know how I could consume an EJB from a desktop app?

I got hints that i have to modify web.xml… but then what web.xml, there’s more of them and at least some of them break my app.

Clarification:
I have a WebLogic server running, NOT exposing some EJB’s inside an EAR hosted on that server. Specifically, the server is not exposing the names of EJB3.0 Session beans, while it DOES expose the names of some other EJB2.1 names.
How do i get a reference to the EJB3.0 objects, hosted on my server, from my desktop app?

FURTHER Clarification:
Weblogic Specifically does not expose the names of EJB3.0 within the JNDI, because the specifications of EJB3.0 don’t require it.

  • 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-28T14:46:19+00:00Added an answer on May 28, 2026 at 2:46 pm

    To answer my own question (got it after some effort), to expose an EJB3.0 object through a remote interface, in the Weblogic 11g server, these steps must be taken:

    This is what my ejb-jar.xml says about the bean RolyBean:

    <enterprise-beans>       
        <session id="Session_Roly">
          <display-name>Roly</display-name>
          <ejb-name>Roly</ejb-name>
          <remote>com.medicon.server.RolyRemote</remote>
          <ejb-class>com.medicon.server.RolyBean</ejb-class>
          <session-type>Stateless</session-type>
        </session>
      </enterprise-beans>
    

    This is what the weblogic-ejb-jar.xml (in the same dir) says:

    <wls:weblogic-enterprise-bean>
        <wls:ejb-name>Roly</wls:ejb-name>
    <wls:jndi-name>Roly</wls:jndi-name>
    </wls:weblogic-enterprise-bean>
    

    These 2 deployment descriptors seem to be the only 2 places where it’s required to specify exposure of the EJB through JNDI.

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

Sidebar

Related Questions

Since CS3 doesn't have a web service component, as previous versions had, is there
Since the only operations required for a container to be used in a stack
Quick question about EJB 3 stateless bean jndi lookup from context. Does context.lookup(myBean) return
Is anybody out there using iBATIS 3 as their persistence framework inside an EJB
Since Spring is able to use transactions just like EJB . For me, Spring
I have an EJB that needs to be a singleton and stateful since it's
Since I started studying object-oriented programming, I frequently read articles/blogs saying functions are better,
Since both a Table Scan and a Clustered Index Scan essentially scan all records
Since Graduating from a very small school in 2006 with a badly shaped &
Since the WMI class Win32_OperatingSystem only includes OSArchitecture in Windows Vista, I quickly wrote

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.