D
david wolf
I am trying a ejb turorial on ejb 3.0 on jboss.
When i tried to compile my java code using ant, I got an compile error
as follows:
........
terBean.java:15: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
----------------my java code---------
@Stateless
@Remote(TempConverter.class)
public class TempConverterBean implements TempConverter {
public double convertToC(int a){
return (double)a/2;
}
public double convertToF(int a){
return a * 2.0;
}
}
In order to use annotation, do I need to explicitly include some jar
file to my classpath?
I never used annotation before, where these symbols from?
Thanks,
David
When i tried to compile my java code using ant, I got an compile error
as follows:
........
terBean.java:15: cannot find symbol
[javac] symbol: class Stateless
[javac] @Stateless
[javac] ^
----------------my java code---------
@Stateless
@Remote(TempConverter.class)
public class TempConverterBean implements TempConverter {
public double convertToC(int a){
return (double)a/2;
}
public double convertToF(int a){
return a * 2.0;
}
}
In order to use annotation, do I need to explicitly include some jar
file to my classpath?
I never used annotation before, where these symbols from?
Thanks,
David