the whole question come of,the two line of hibernate cost too much time!
Code:
Configuration objConfig = new Configuration();
SessionFactory objSessionFactory = objConfig.configure().buildSessionFactory();
so i use the mbean of jboss,but in the whole way,
i nerver type the two line(Configuration objConfig = new Configuration();
SessionFactory objSessionFactory = objConfig.configure().buildSessionFactory();)!
1.then the connection to database is manged by mbean of jboss????
2.the connection to database is manged by mbean of jboss,then if the conneciton to database are broken,the jboss need connect the database again.yes my question comes here!
but the connection is manged by mbean of jboss,i can't use the my owner code to control the connection to database.
if the thing really happened,then reboot the jboss is the only way to resolve the problem???o my god,dose it means that i will often reboot the jboss,and reboot the jboss is the only way to resolve the problem??
thanks a lot!