File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @PreDestroy not found in javaee.jar ( Sun JavaEE 5 SDK update 1) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@PreDestroy not found in javaee.jar ( Sun JavaEE 5 SDK update 1)" Watch "@PreDestroy not found in javaee.jar ( Sun JavaEE 5 SDK update 1)" New topic
Author

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

Malan Subramanian
Greenhorn

Joined: Jul 09, 2005
Posts: 13
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

Joined: Jul 09, 2005
Posts: 13
Hi guys,
I got it working :-)

changed the following import statement

to
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @PreDestroy not found in javaee.jar ( Sun JavaEE 5 SDK update 1)