Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!