Hi guys,
I'm also testing Hibernate 3.3.1 and JBoss Cache 3.0.2 from a standalone application,
but it seems my app can't get the TransactionManager reference from JNDI.
This is the hibernate config file I'm using as stated in hibernate-jbosscache doc:
<hibernate-configuration>
| <session-factory>
| <property
name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
| <property
name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
|
| <property name="hbm2ddl.auto">update</property>
|
| <property
name="hibernate.cache.region.factory_class">org.hibernate.cache.jbc2.SharedJBossCacheRegionFactory</property>
| <property
name="cache.use_second_level_cache">true</property>
| <property name="cache.use_query_cache">true</property>
|
| </session-factory>
| </hibernate-configuration>
and this are the java options in my app:
| -Djbosscache.config.validate=false
-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
-Djava.naming.provider.url=jnp://localhost:1097
-Djava.naming.factoy.url.pkgs=org.jnp.interfaces
The exception
Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
These are my questions (take into account I'm not familiar with JTA)
1.- I'm starting JBoss AS 5.0.0 to have a java:/TransactionManager bound (it is not
that my application needs the AS). JBoss AS NS is configured in port 1097 (instead of
default 1099). Is there the need to start the AS though ?
2.- JBossTransactionManagerLookup looks for java:/TransactionManager (according to the
source code) but it cannot find it. What is the part I'm missing ??
Thanks a lot !!
Ignacio.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4226756#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...