Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deployment of WebApp and EjbApp on different servers

 
Charles Ohene
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello out there,
I am planing to deploy my Facelet WebApplication to WebContainer A in physical WebServer A, and my EJB-Application in an EjbContainer on a different physical server B to put a firewall between both servers.
Thus my Facelet-ManagedBeans have to communicate to the ejbs via the local network using the ejb-remote interfaces. I will deploy an *.ear file incl. all ejbs to the ejb-Container to run the EjbApplication, BUT

Question: Is it enough to deploy a *.war archive incl. all transfer objects and the ejb-remote interfaces to the WebContainer, or do I need to deploy another *.ear archive to the WebContainer (containing the *.war archive incl. all transfer objects and the ejb-remote interfaces) to run the WebApplication?


Thanks for any support ;-)
 
Charles Ohene
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please any help, need to submit my assignment in 2 days, thank you in advance ;-)
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34681
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ear files get deployed to app servers, not web containers.
 
Yogesh Tyagi
Ranch Hand
Posts: 40
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can deploy the web related stuff on WebContainer and EJB related stuff in EJBContainer...You can have transfer objects & utils at both places like in .war & .jar in ear...
 
Yogesh Tyagi
Ranch Hand
Posts: 40
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can deploy the web related stuff on WebContainer and EJB related stuff in EJBContainer...You can have transfer objects & utils at both places like in .war & .jar in ear...
 
Murali Ranga
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need stub classes for remote EJB invocations.
Just generated stub classes needs to be packaged in war.
 
Charles Ohene
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys, thanks a lot for your help :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic