]
Tom Ross commented on HIBERNATE-124:
------------------------------------
Created bug on Hibernate project web site. Bug number HHH-5865.
Superfluous event listener in Hibernate code
--------------------------------------------
Key: HIBERNATE-124
URL:
https://issues.jboss.org/browse/HIBERNATE-124
Project: Hibernate Integration
Issue Type: Bug
Environment: JBoss EAP 5.1
Reporter: Tom Ross
Assignee: Steve Ebersole
Priority: Minor
When Hibernate initialises it prints a warning message "InitialContext did not
implement EventContext". This is a result of a cast in the
SessionFactoryObjectFactory.addInstance() method which is trying to cast
javax.naming.InitialContext object to EventContext while trying to add an event listener
to it. javax.naming does not implement the interface EventContext so the cast fails and
the listener is never register. As it stands this code is completely superfluous at the
moment since it is never used.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: