One very important addition.
On serverside
InitialContext ctx=new InitialContext();
| Object obj=ctx.lookup("java:/hibernate/SessionFactory");
this code works fine!
Issue on client side when I am trying to use it from my swing application.
So in order to be more precise client side can not us
My hibernate-service.xml
|
|
| jboss:service=Naming
| jboss:service=TransactionManager
| java:/reqDS
| org.hibernate.dialect.MySQL5InnoDBDialect
| true
| hibernate/SessionFactory
|
|
|
req.har successfully loaded.
In my swing client I am trying to lookup "SessionFactor