wood burning stoves 2.0*
The moose likes JBoss/WildFly and the fly likes Learn to deploy EJBs on JBOSS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Learn to deploy EJBs on JBOSS" Watch "Learn to deploy EJBs on JBOSS" New topic
Author

Learn to deploy EJBs on JBOSS

mick allens
Greenhorn

Joined: Aug 18, 2006
Posts: 1
Hi all

Am pretty much new to JBOSS & EJBs, would appreciate if someone could help me with some intresting pointers on developing/deploying EJBs on JBOSS.

I have installed JBOSS 4.0.3 sp1 n have started off with servlets , went well till now.

I want to deploy a complete J2EE application with EJBs as a EAR.

kindly help...
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Create an .ear file, lets say myApp.ear. The contents might look like the following:



The application.xml will contain:



Also, have a look at:
ExplodedDeployment in JBoss


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

Forgot to mention, you will have to place the .ear file in the %JBOSS_HOME%/server/default/deploy directory
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9930
    
159

If you just have to deploy EJBs, then there is no need for creating ear file. You can just create an jar containing the EJBs and deploy it. Have a look at this thread for more information.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Learn to deploy EJBs on JBOSS
 
Similar Threads
Deploy EAR file in JBOSS
Which server to use for fast development
Web services on jboss
Help Connecting SQL Server 7 to Jboss 3
Websphere to JBOSS migration