Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JBoss/WildFly
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
OCP Oracle Certified Professional Java SE 21 Developer Study Guide: Exam 1Z0-830
this week in the
Programmer Certification
forum!
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
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
JBoss/WildFly
Learn to deploy EJBs on JBOSS
mick allens
Greenhorn
Posts: 1
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 10445
227
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Create an .ear file, lets say myApp.ear. The contents might look like the following:
myApp.ear | |--------- META-INF | | | |---------- application.xml | |--------- myEJB.jar | | | |--------- META-INF | | | | | |-------- jboss.xml | | | | | |-------- ejb-jar.xml | | | |------ org | | |----- myApp | | |------- ejb | |-------- *.class | |---------- myWeb.war | | | |----- WEB-INF | |------ web.xml | | | |------ jsp | |---- *.jsp | |---------- commonUtil.jar | |--------- org |----- myApp |------ common |----- *.class
The application.xml will contain:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE application PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN" "http://java.sun.com/dtd/application_1_3.dtd"> <application> <display-name>helloworld</display-name> <module> <java>commonUtil.jar</java> </module> <module> <web> <web-uri>myWeb.war</web-uri> <context-root>/myWeb</context-root> </web> </module> <module> <ejb>myEJB.jar</ejb> </module> </application>
Also, have a look at:
ExplodedDeployment in JBoss
[
My Blog
] [
JavaRanch Journal
]
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Forgot to mention, you will have to place the .ear file in the %JBOSS_HOME%/server/default/deploy directory
[
My Blog
] [
JavaRanch Journal
]
Jaikiran Pai
Sheriff
Posts: 10445
227
I like...
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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.
[
My Blog
] [
JavaRanch Journal
]
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Websphere to JBOSS migration
Which server to use for fast development
Web services on jboss
Deploy EAR file in JBOSS
Help Connecting SQL Server 7 to Jboss 3
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...