I am new to EJB3. I am using Eclipse Europa(Java 5 compiler). I am trying to create HelloWorld program using EJB3. Can you please tell me that how can I resolve annotations ?
I am trying to use annotation like @Stateless..@Remote..
Also I downloaded JBOSS 5.0 unzipped it. Set JAVA_HOME ..JBOSS_HOME but server is till not started after clicking on run.bat. I tried JBOSS 4.0.5 GA but it does not support EJB3.
when you start with run.bat do you have try to connect locahost:8080 or 8084 ? you have clicking on run.bat? if true try to run JBOSS in console/terminal to see the logs why server not started.
For annotations, you can use xDoclet in Eclipse no ? you can also add the JBOSS lib for annotations or of an another implementations of EJB3 (lib Glassfish for exemple javaee.jar / or include in your project jboss-j2ee.jar, jboss-ejb3x.jar, ejb3-persistence.jar). You can use jboss 4.2.3 GA and check JBOSS have the good libs
for EJB3 in /jboss-4.2.3.GA/server/all/lib it's all the libs embedded in JBOSS
Thank you for your response. I have added j2ee.jar. Infact I tried with other 3 libraries that you suggested but annotations are still not resolvable. I wonder how people are working on this as I have already wasted one day on this and still not able to resolve one annotation.
One more problem that I faced while configuring JBOSS in eclipse. It says that classpath entry for mail.jar is missing even though I made an entry in classpath. Then I changed the classpath in jboss.serverdef from "defaut" to "myserver" and it worked. But the problem is it worked with JBOSS 4.0.5(do have support for ejb3)