• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Deployment of WebApp and EjbApp on different servers

 
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 ;-)
 
author & internet detective
Posts: 40283
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ear files get deployed to app servers, not web containers.
 
Ranch Hand
Posts: 40
Eclipse IDE Tomcat Server Java
  • 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 Tomcat Server Java
  • 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...
 
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 :-)
 
Yes, my master! Here is the tiny ad you asked for:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic