EJB3 JBOSS 4.2 depolyment
843830May 10 2008 — edited May 22 2008Hi
I'm following the example in : http://www.laliluna.de/ejb-3-tutorial-jboss.html
to create my first EJB3 project but when trying to deploy It doesn't seem to add the jar file to the server
I looked under JNDI view in the server JMX-console page but there was no mentioning my new bean
what I did was create the following deploy.bat file that packs all the *.class files and all the files in META-INF
and the copied the jar to the deploy area in the JBOSS
@echo off
set JAVA_HOME=D:\Sun\SDK\jdk
set JBossHome=D:\jboss-4.2.2.GA
"%JAVA_HOME%\bin\jar.exe" cf FirstEjb3Tutorial.ejb3 de\laliluna\library\*.class META-INF\*.*
copy FirstEjb3Tutorial.ejb3 "%JBossHome%\server\default\deploy"
pause
1) Was my packaging ok the jar OK? are there more files that need to be in the jar?
2) besides adding the jar to the deploy folder is there anything else i need to define?
3) do I need to add something to the following files: MANIFEST.MF (What is this file anyway), ejb-jar.xml' persistance.xml (all 3 files located under META-INF folder)