This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes EJB deployment as JAR and EAR Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB deployment as JAR and EAR" Watch "EJB deployment as JAR and EAR" New topic
Author

EJB deployment as JAR and EAR

Vasanth Raju
Greenhorn

Joined: Mar 01, 2008
Posts: 4
While deploying an EJB(Session beans) in an Enterprise application project as an EAR with other webcomponents, we pack all the stuff(web+EJB) into one single EAR.
This being the case what is the advantage of using EJB(Session beans) here
as the power of ejb(Resuable component) comes into picture only when deployed seperately as a JAR in a remote client.
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3749
    
  10

Can you clarify your question, I'm not sure I follow what you're asking.


[OCA 8 Book] [Blog]
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
You can deploy an EJB separately also. I mean you can deploy EJB as a jar file as well.
[ May 28, 2008: Message edited by: Amit M Tank ]

Amit Tank
Linked In
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32633
    
215

Originally posted by Amit M Tank:
You can deploy an EJB separately also. I mean you can deploy EJB as a jar file as well.

Do you know of a server that supports this. I didn't know you could do this.

EJBs can be reused regardless. And ejb-jar can be deployed in another ear. Or it can be called remotely.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Nikos Pougounias
Ranch Hand

Joined: Jan 16, 2008
Posts: 110
Originally posted by Jeanne Boyarsky:

Do you know of a server that supports this.


JBoss.


Nikos' Java blog
prashant k. gupta
Ranch Hand

Joined: May 15, 2008
Posts: 62
Originally posted by Jeanne Boyarsky:

Do you know of a server that supports this.




IBM WebSphere
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
Even Weblogic
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB deployment as JAR and EAR
 
It's not a secret anymore!