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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:06:50+00:00 2026-06-13T12:06:50+00:00

I developed very simple Hello World EJB (3.x) which I deployed on JBoss 7.1.

  • 0

I developed very simple Hello World EJB (3.x) which I deployed on JBoss 7.1.

I can successfully call this EJB from within a standalone application.
When trying to call it from a servlet I find the EJB.

I have package the EJB in a JAR and the servlet in a WAR.
It seems that this is the reason for the servlet not able to access the EJB.
Might that be true?

Once I package both, the EJB JAR and the servlet WAR into the same EAR it works.

As that the supposed behavior or can I make this work even without using EARs?

Maybe someone can shed some light into this.

I am pretty sure that I did not need to do these things on earlier JBoss version.

  • 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-06-13T12:06:50+00:00Added an answer on June 13, 2026 at 12:06 pm

    According to Java EE spec, deployed applications should be isolated, unless they are in the same EAR archive. So the behaviour you see is correct.

    This is different from JBoss 4 or JBoss 5 default configuration, which did not have archives isolation (that was essentially a bad thing, but often quite convinient…).

    EAR packaging is sort of annoying, but can be done automatically by IDE or Maven.

    In addition, in case of Java EE v. 6, you might pack EJB components with local interface into WAR archive, which simplifies deployment.

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

Sidebar

Related Questions

I've developed a very simple host and client which I wanted to use to
I have developed a simple location aware iPhone application which is functionally working very
Can Xcode 4.0 compile and run very simple C++ programs? I am talking Hello
i developed a very simple vb.net application and i need a way for every
I've developed a very simple ASP.NET (jQuery) application. The RDBMS is MS Sql Server
I have a very simple windows Service that is developed in vb.net 2008. When
Recently, I have a developed a very simple web app for a survey. I
I have developed a very simple Android native app to launch my HTML5 webapp.
I just developed a very simple ActiveX control(using the VS.NET wizard, not even change
I have developed a very simple C++ based cocoa touch static library and a

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.