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

  • SEARCH
  • Home
  • 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 3433878
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:37:48+00:00 2026-05-18T07:37:48+00:00

How do I use a deployed EJB app from a separate JSF application? I’m

  • 0

How do I use a deployed EJB app from a separate JSF application?

I’m attempting to separate the two applications and access the EJB through the remote interface. To do this I have two eclipse projects – one contains the EJB and persistence logic, tested independently and works. I then created a JSF project that references the EJB project (so I gain access to the remote interface), however this fails when attempting to either inject the EJB instance or lookup the JNDI name (I’ve tried several variants to no avail). This is what my JSF backing bean contains:

@EJB(lookup=”java:global/LocEJB/LocalityEJB!com.ame.business.LocalityEJBRemote”)
private LocalityEJBRemote locality;

This is on Glassfish, and I am only referencing the EJB project and not packaging it with the JSF project. When I do the latter, I receive error initializing EJB container problems on the JSF project. So, how do I access the remote EJB and does the way I’m approaching this make any sense?

Thanks in advance!

  • 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-18T07:37:49+00:00Added an answer on May 18, 2026 at 7:37 am

    Your JSF application has to know about the EJB interfaces (at least they did on EJB 2.0). You’re using the Proxy pattern to hide the fact that this is a remote component from your JSF client.

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

Sidebar

Related Questions

I have an application that we use internally that is deployed through ClickOnce. We
We are trying to use Log4Net to log from our IIS 6-deployed WCF Application.
I have deployed my app and it's in use. Every month or so I
Is there anyway I can use to destroy my deployed application at specific date?.
I've had some problems with a Django application after I deployed it. I use
My application is deployed to a web farm that does not use sticky sessions
I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1
I'm trying to use Spring to configure a web app deployed in JBoss. I've
I use 3rd party library in my asp.net application. Then application will be deployed
I have deployed my pylons app on the server~ I use nginx end flup,

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.