wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Deployment of WebApp and EjbApp on different servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Deployment of WebApp and EjbApp on different servers" Watch "Deployment of WebApp and EjbApp on different servers" New topic
Author

Deployment of WebApp and EjbApp on different servers

Charles Ohene
Greenhorn

Joined: Dec 27, 2005
Posts: 12
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

Joined: Dec 27, 2005
Posts: 12
Please any help, need to submit my assignment in 2 days, thank you in advance ;-)
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30123
    
150

ear files get deployed to app servers, not web containers.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Yogesh Tyagi
Ranch Hand

Joined: Apr 30, 2004
Posts: 39

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
SCJP1.5, SCWCD5.0, SCBCD5.0
Yogesh Tyagi
Ranch Hand

Joined: Apr 30, 2004
Posts: 39

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

Joined: Dec 16, 2011
Posts: 38
Need stub classes for remote EJB invocations.
Just generated stub classes needs to be packaged in war.
Charles Ohene
Greenhorn

Joined: Dec 27, 2005
Posts: 12
Hey guys, thanks a lot for your help :-)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deployment of WebApp and EjbApp on different servers
 
Similar Threads
Protecting EJBs for public use
Deserialization problem - InvalidClass w/ negative serialVersionUid for local class
How to deploy ejb application on two jvms?
j2ee
performance increase - move to ear - suggestions