Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@PreDestroy not found in javaee.jar ( Sun JavaEE 5 SDK update 1)

 
Malan Subramanian
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ppl,
I tried compiling a session bean with a @PreDestroy annotation. It gave me a 'cannot find symbol' for class PreDestroy. I checked the javaee.jar and found that only PrePassivate and PostActivate are present. Can anyone help me out? I have given the code below:



Thanks in advance,
Malan
[ November 05, 2006: Message edited by: Malan Subramanian ]
 
Malan Subramanian
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
I got it working :-)

changed the following import statement

to
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic