Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Annotation  RSS feed

 
sachin chemate
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
Please Help regarding below issue.
i have started learning EJB 3.0 and trying to practice of some programme using annotation like below example

@Remote
public interface SimpleBean{
public String sayHello(String name);
}

when i am compiling this code it is giving Error like can not find symbol @Remote
i am using glashfish server for EJB 3.0
so please tell me what are the required s/w or jars i need for EJB 3.0
 
Devaka Cooray
Marshal
Posts: 5322
575
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sachin cdk", please check your private messages regarding an important administrative matter.

@Remote annotation is in javax.ejb package - javax.ejb.Remote.
If the compiler cannot find it, you might have not imported that class, or, probably the classpath was not properly given.
 
sachin chemate
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks for replying to my issue.
But can provide me some more information like in which jar file i will get that package.
for your reference i am using glashfish for EJB 3.0
 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javaee.jar
It's in Glassfish lib/ directory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!