Can the web container and EJB container be in different Java EE servers for the same web application?
Like the web container is Tomcat and the EJB Container is JBoss?
Is this possible if the Web server and App server are on different machines?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Yes they can.
EJBs was initially a distributed architecture based on CORBA. Later (in EJB 2.0) local interfaces were introduced to avoid the expensive cost of distributed communication, but still you can provide remote interfaces to your EJBs to enable access from a remote Java VM.
From the JavaEE CORBA overview: