• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

JBoss-TOmcat Bundle-

 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Guys,
I have a web app calling my ejbs in tomcat-Jboss bundle. My questions concerning this�set-up� are:
- Assuming that these EJBs are only accessed by this web-app. Is there a benefit to package both of the EJB jar file and the web application WAR file into an EAR file?
- Does JBoss optimize the calls, and there is no need to state that the EJBs are local and not remote, or one should explicitly make the local interfaces and use them?
- Do you guys have any performance comparison of calling POJOs from Tomcat Vs. calling EJBs from the tomcat �Jboss bundle?
- Could you please give your reasons for choosing to have EJBs instead of simple Java Objects? And why did you chose to have Tomcat-JBoss bundle instead of having standalone Tomcat and JBoss?
Any help /experience you had will be appreciated,
Thanks a lot.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
-Packaging in one EAR is only a matter of deployment organization, besides it gives you the opportunity to define multuple web apps under different URLs. Packaging is a matter of design you choose what is best for your environment.
-Optmize the calls? No JBoss doesn't in the context you are talking about. You have to explicitly specify the remote or local interface(s) you'd like to use.
-Tomcat vs POJO is much faster than EJBs however, you should read in depth the J2EE design patters and J2EE tutorials.
POJO is good for small applications, however EJBs are used for scalability, clusterable environment and for security. So the question you're asking is just another design consideration.
Tomcat-JBoss bundle Vs Tomcat and JBoss? Well somebody did the integration of the servlet container and the application server. I don't see any point in asking this question, can you define the purpose?
 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply Fady
Well, I asked about local/remote interface because I can not really think of having a remote interface if JBoss sits in the same JVM as Tomcat.
As of the Pojos question, I just want to hear more about when EJBs are a good choice, as according to this discussion: Not to EJB, EJBs are good only when JMS or transactions should be used.
In the same discussion, someone talked about having a better performance with having Tomcat and JBoss sit in different machines. SO I wanted to know more about that specific case, is it when the Presentation logic is heavy?
Any help will be very much appreciated.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic