My application working fine if i am not getting session factory from Jndi.
Using hibernate.cfg.xml and loading configuration,if i do then there is no problem.
But now i have jndi bounded hibernate session factory and placed that configuration file and all .hbm.xml and java objects in har archive and that is palced in ear which contains my application war.
Structure of my ear:
.har(hibernate jndi bind config.xml,.hbm.xml and business objects)
.war(application war file)
.jar(common libraries-it contains all the jars and my applications classes)
It has been deployed successfully and my web application's first login page is opened.
No session close is done explicitly....