This content has been marked as final.
Show 3 replies
-
1. Re: First application in EJB 3.0 and JBoss 4.0.5GA
jaikiran Oct 28, 2006 8:43 AM (in response to zielonyplot)You will have to include the jar containing the org.jboss.annotation.ejb.LocalBinding class, in your classpath. I dont exactly remember the name of that jar but i guess it is something like jboss-annotations.jar.
-
2. Re: First application in EJB 3.0 and JBoss 4.0.5GA
jaikiran Oct 28, 2006 8:46 AM (in response to zielonyplot)import org.jboss.annotation.ejb.LocalBinding; import javax.ejb.*; @Stateless public class StatelessTekst1 implements tekst1 { public String podajTekst(int numer) { if(numer==1) return "Hej, udalo sie!"; } }
On second thoughts, i dont see the need of the following import statement in your code:import org.jboss.annotation.ejb.LocalBinding;
Remove this import statement and your code should compile fine. -
3. Re: First application in EJB 3.0 and JBoss 4.0.5GA
zielonyplot Oct 29, 2006 12:03 AM (in response to zielonyplot)Yes, You are right! I remowe this import and everything goes OK.
Thanks!