No, i m using JBOSS eap 4.0. So, here the code of ha datasource is working but i need to restart the jboss server for switching onto secondary datasource if primary fails. If I don't restart the server then the connection gets closed when 1st datasource fails. It gives the error of Connection not open.
Please help me out if you have worked on the failover condition. Thanks a lot for ur reply.