Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Learn to deploy EJBs on JBOSS

 
mick allens
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Forgot to mention, you will have to place the .ear file in the %JBOSS_HOME%/server/default/deploy directory
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic