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 The class must not define the finalize() method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "The class must not define the finalize() method" Watch "The class must not define the finalize() method" New topic
Author

The class must not define the finalize() method

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
EJB Core Specification 4.6.2:
The class must not define the finalize() method

Works fine. What is the spec trying to convey?


SCJP, SCWCD, SCBCD
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Can someone please take time and respond this question.
Meherdad Bomanbehram
Ranch Hand

Joined: May 28, 2007
Posts: 132

Hello Deepak ,
what Java EE server are you using ? I have found that using the RI glassfish server will wreck your code while on weblogic or otheres it may work ok .
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Thanks for your reply.
I am using JBOSS 4.2.3.GA for all my EJB.
If you would have my other posts you would have noticed that I have found similar issues where the session beans are clearly violating the rules of Session Beans. For Session Beans rules i have read EJB In Action 3.0
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
I had finalize() for MDB and it was invoked after the PreDestroy method. The spec said MDB must not have PreDestroy method.
Can someone please clarify finalize() with MDB and session beans
Piotr Uryga
Ranch Hand

Joined: May 25, 2006
Posts: 68
Dude the very same thing as in Your another post about method naming conventions.

Stick to the spec.


SCJP 1.4, SCWCD 1.4, SCBCD 5, SCEA
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637

Dude the very same thing as in Your another post about method naming conventions.


I don't know what post your talking but even if it is, I am expecting an resolution for which am convinced.
Experts/Ranchers, Please take time and reply.
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 402
This is one of situation that jboss go away form spec. I have posted this problem (no 100 spec compliant server) ealiar.

If you try even final ejb class also can be deployed in jboss.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The class must not define the finalize() method