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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:26:29+00:00 2026-05-14T06:26:29+00:00

We are using Seam 2.2.0 Java 1.6.14 Weblogic 10.3.1.0 (named 11g Doh!) I have

  • 0

We are using

  • Seam 2.2.0
  • Java 1.6.14
  • Weblogic 10.3.1.0 (named 11g Doh!)

I have looked at

  • Seam reference
  • Seam in action
  • These web pages

However I still do not understand how to inject an EJB3 bean into a JSF backing bean. It seems to me that I have to (correct me if I am wrong)

  1. Annotate with @Name my backing bean
  2. Annotate with @Name my EJB3 bean
  3. Use the @In annotation in the backing bean
  4. Put an empty seam.properties file in the WAR that contains the backing bean
  5. Put an empty seam.properties file in the JAR that contains the EJB
  6. Set up a Seam interceptor in ejb-jar.xml of the EJB

Don’t I need to setup some JNDI URL somewhere? How exactly does Seam will find the EJB?
The interceptor is enough?

Also this means that I have to add a seam dependency in my EJB archive (because of the @Name annotation). So the web layer (Seam) “spills” into my business logic (EJB). Is this the recommended approach?

Am I missing something here?

Answer:
Apparently you can set the JNDI pattern in

  1. The EJB itself with the @JndiName annotation or
  2. The web.xml file or
  3. The components.xml file or
  4. The seam.properties file as Nathan suggested (This is what I did)
  • 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-14T06:26:29+00:00Added an answer on May 14, 2026 at 6:26 am

    Three things:

    1) There is no backing bean separate from the EJB session bean anymore.

    2) There is a JNDI url, the pattern is set in seam.properties (the example for JBoss in Java Persistence with Hibernate looks like

    org.jboss.seam.core.init.jndiPattern=caveatEmptor/#{ejbName}/local
    

    Seam extends the expression language evaluator with a version that knows about its new scopes and knows to where to look for the EJBs.

    3) Seam isn’t a web framework, it is more like an application stack that makes JSF, EJB3 and Hibernate all play better together, so it shouldn’t hurt that you have Seam annotations in your EJBs.

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

Sidebar

Related Questions

I'm making a program using Seam and Java. On my web page I have
I have a Java web app that I'm developing, using JBoss Seam as the
I am using Jetty 7 with JBoss Seam and have 2 Java Mail Sessions
I am developing a web application on JAVA EE 6 with SEAM 3, using
I have a website developed using Java EE and the Seam Framework. We are
We're about to deploy a Java web application built using JBoss Seam as the
I have a Seam 2.2 based Java EE 5 web application with a bunch
I've been using Seam 2 (also started looking into Java EE 6) in my
We're developing a data heavy modular web application stack with java but have little
We're developing a Java web app that utilizes JSF (Richfaces through Seam) for its

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.