• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

How to deploy EJB 3.0 beans in JBoss 4.0.4RC1 ?

 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi EJB 3.0 and JBoss fans,

my JBoss is running, now how to deploy my HelloWorld.jar to it?

The preliminary documentation in
docs.jboss.org/ejb3/app-server/tutorial/stateless/stateless.html
just states


This marks the class as a stateless bean and the deployer will deploy that class ...


- But how to trigger that deployment?
- Where to copy the jar so it will be autodeployed?
- Or what?
- How can I "make sure that [I] have ejb3.deployer installed in JBoss 4.0.x"? Just by seeing the file ejb3.deployer somewhere?


I understand that the result of ant should be a HelloWorld.jar, but:

- In which directory can the build.xml be found that is needed for ant?
- Or do I still have to write a build.xml from scratch? Which example?
- Where to copy this build.xml?
- What initializing / configuring steps does ant need before?

I really would like to start trying EJB 3.0 one day. I have read usage has been so simplified ...

Thomas
[ March 20, 2006: Message edited by: Thomas Taeger ]
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.jboss.com/docs/demos
Look at the ejb3 trailblazer. It will help ;o)

hth
Bernhard
 
Thomas Taeger
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Bernhard Neuhauser:
http://www.jboss.com/docs/demos
Look at the ejb3 trailblazer. It will help ;o)



Hi Bernhard,

that was exactly what I was looking for, many thanks!
Just copying to %JBAOSS_HOME%\server\default\deploy for deployment ..., ok.

After each deployment one needs to restart JBoss, still ok.
Unpacked the EJB3Trail.zip to my project src and lib directories
==> compiled well.
On deployment the server reacted - but then displyed:
WARN [ServiceController] Problem starting service jboss.j2ee:
service=EJB3,module=TrailBlazerServer.jar
java.lang.RuntimeException: Field protected javax.persistence.EntityManager
trail.apptrans.ApptransCalculator.em @PersistenceUnit in error:
EMPTY STRING unitName but there is no deployments in scope
(whatever this means ...)

So I go back to the client lookup problem, I thought, but:
- Search Files for "lookup" => 0 found
- Search Files for "client" => 1 found in
InterceptorCalculator: "//TODO: Fix the client"

So no working example again ...

But all the same: Many thanks to you and "Herzlichen Dank" and
Thomas
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We just copy the jar or ear file into the server/default/deploy directory.

Mark
 
Thomas Taeger
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
We just copy the jar or ear file into the server/default/deploy directory.


Mark,

I can not imagine what you want to say with that repitition - see my last posting.

I don't think you mean the ease of using readyly available jars. My intention is to understand EJB 3.0 by developing, deploying and remotely testing.

Thomas
 
Mark Spritzler
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Thomas Taeger:

My intention is to understand EJB 3.0 by developing, deploying and remotely testing.

Thomas



And that is what I was posting. I understand you might want more information at a deeper level. but your thread title says how to deploy EJB 3.0 beans in JBoss, and all that we do is jar them up and copy them into the deploy directory.

Mark
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic