Interesting, there is a configuration property that lets you decide how the
URL is selected, i.e. how it fails over. But it is not properly configured or documented.
http://jira.jboss.com/jira/browse/JBAS-4490
Absent this configuration it uses the default
org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory$URLSelector
which does NOT the hook you are looking for.
I guess you could override this strategy
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/trunk/connector/src/ma...
to emit some form of notification when a new url is chosen.
But where you would emit that notification to is a different question?
ManagedConnectionFactorys are just "stateless" javabeans.
They don't have references into the JMX system or any other part of JBoss.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055258#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...