Weblogic doesn't override the equals() method on either the Local or Clustered Timerhandle implementation.
(Doc ID 1177633.1)
Last updated on OCTOBER 13, 2020
Applies to:Oracle WebLogic Server - Version 10.3 and later
Information in this document applies to any platform.
When using WebLogic 10.3 you will notice that WebLogic doesn't implements equals() and hashCode() methods and you would like to know if there is any other manner in which to check that the retrieved 'TimerHandle' object is the same one as timer.getHandle()?
Explanation on this scenario:
By creating EJB Timer, you may have saved the 'TimerHandle' object for later use in Database along with specific name as a key for retrieving the object.
Then when the object is needed you need to check if the saved 'TimerHandle' is the same as passed 'Timer' object as per the below code.
In the above code the focus always passes to the else block.
This works perfectly fine on WAS7 and JBoss4xx.
Seems like the issue happens on WebLogic as it doesn't seem to implement equals and hashCode methods. If this is true is there any other way to check that the retrieved TimerHandle is the same one as timer.getHandle()?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document