SCJP, SCWCD, SCJD : in the making.
(SessionFactory) new InitialContext().lookup("java:/comp/env/jdbc/MyUniConnection");
but how to get SessionFactory object from datasource object ,i dont know how to proceed
iam trying get SessionFactory from datasource ...but how??? Iam getting the datasource object , but how to cast it to SessionFactory
21:35:09,078 INFO [STDOUT] 21:35:09,078 ERROR [InsuranceHome] Could not locate SessionFactory in JNDI
The changes which i did in hibernate.xml is not been affected in the server
when i deploy.
Wheather i must include hibernate.properties file,because when i provide wrong information in hibernate.xml its showing the same old error which i except
can you provide me some sample
How come the error will be same when delete the cfg file also i must throw hibernate.xml not found but its showing dialect exception
one more thing if i specify dialect also same error .. why so??? i deleted all temp file in jboss and redeployed with a new war file...
Object ds =(Object)jndiContext.lookup("java:/hibernate/SessionFactory");
Object ds =(Object)jndiContext.lookup("hibernate/SessionFactory");
Don't get me started about those stupid light bulbs. |