Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The class must not define the finalize() method

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJB Core Specification 4.6.2:
The class must not define the finalize() method

Works fine. What is the spec trying to convey?
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone please take time and respond this question.
 
Meherdad Bomanbehram
Ranch Hand
Posts: 142
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude the very same thing as in Your another post about method naming conventions.

Stick to the spec.
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic