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 ]
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
My intention is to understand EJB 3.0 by developing, deploying and remotely testing.
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.