you would think so ;-)
perhaps you could answer two (hopefully easy) questions for me??
1) in the docs it says to set the 'hibernate.transaction.manager_lookup_class'.
From the example treecache.xml files (in the jcache demo zip) i set :
Code:
<attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>
in my jboss-service.xml
Code:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateGMMH">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=cjdbc-gmmhDS</depends>
<attribute name="MapResources">com/yahoo/gmmh/hibernate/PackageType.hbm.xml,com/yahoo/gmmh/hibernate/MobileDevice.hbm.xml,com/yahoo/gmmh/hibernate/Country.hbm.xml,com/yahoo/gmmh/hibernate/Credit.hbm.xml,com/yahoo/gmmh/hibernate/SubscriptionPurse.hbm.xml,com/yahoo/gmmh/hibernate/PaymentAccount.hbm.xml,com/yahoo/gmmh/hibernate/OperatorMap.hbm.xml,com/yahoo/gmmh/hibernate/RegistrationAudit.hbm.xml,com/yahoo/gmmh/hibernate/NotificationPending.hbm.xml,com/yahoo/gmmh/hibernate/ConsumptionRule.hbm.xml,com/yahoo/gmmh/hibernate/SubscriptionType.hbm.xml,com/yahoo/gmmh/hibernate/Service.hbm.xml,com/yahoo/gmmh/hibernate/SchedulerEvent.hbm.xml,com/yahoo/gmmh/hibernate/MobileOperator.hbm.xml,com/yahoo/gmmh/hibernate/PaymentPending.hbm.xml,com/yahoo/gmmh/hibernate/UsageRule.hbm.xml,com/yahoo/gmmh/hibernate/Rate.hbm.xml,com/yahoo/gmmh/hibernate/InvoicePending.hbm.xml,com/yahoo/gmmh/hibernate/MessageDispatch.hbm.xml,com/yahoo/gmmh/hibernate/SubscriptionAudit.hbm.xml,com/yahoo/gmmh/hibernate/PackageRuleAudit.hbm.xml,com/yahoo/gmmh/hibernate/PurchaseRule.hbm.xml,com/yahoo/gmmh/hibernate/PackageTypeAudit.hbm.xml,com/yahoo/gmmh/hibernate/AuthenticationPending.hbm.xml,com/yahoo/gmmh/hibernate/Subscription.hbm.xml,com/yahoo/gmmh/hibernate/ServiceRequest.hbm.xml,com/yahoo/gmmh/hibernate/Invoice.hbm.xml,com/yahoo/gmmh/hibernate/AvailabilityRule.hbm.xml,com/yahoo/gmmh/hibernate/RuleFrequency.hbm.xml,com/yahoo/gmmh/hibernate/MessageType.hbm.xml,com/yahoo/gmmh/hibernate/ReplyPending.hbm.xml,com/yahoo/gmmh/hibernate/UserProfile.hbm.xml,com/yahoo/gmmh/hibernate/SubscriptionTypeAudit.hbm.xml,com/yahoo/gmmh/hibernate/DeliveryNotification.hbm.xml,com/yahoo/gmmh/hibernate/CommandType.hbm.xml,com/yahoo/gmmh/hibernate/DeviceRuleAudit.hbm.xml,com/yahoo/gmmh/hibernate/MessageReply.hbm.xml,com/yahoo/gmmh/hibernate/SessionMap.hbm.xml,com/yahoo/gmmh/hibernate/SubscribeRule.hbm.xml,com/yahoo/gmmh/hibernate/DispatchCredit.hbm.xml,com/yahoo/gmmh/hibernate/Promotion.hbm.xml,com/yahoo/gmmh/hibernate/SubscriptionRuleAudit.hbm.xml,com/yahoo/gmmh/hibernate/PurchaseAudit.hbm.xml,com/yahoo/gmmh/hibernate/RuleSchedule.hbm.xml,com/yahoo/gmmh/hibernate/Package.hbm.xml,com/yahoo/gmmh/hibernate/RateCategory.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/gmmh</attribute>
<attribute name="Datasource">java:/cjdbc-gmmhDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="CacheProvider">net.sf.hibernate.cache.TreeCacheProvider</attribute>
<attribute name="TransactionManagerLookup">org.jboss.cache.DummyTransactionManagerLookup</attribute>
</mbean>
</server>
but when i deploy my hibernate sar this gives me an exception :
org.jboss.deployment.DeploymentException: No Attribute found with name: TransactionManagerLookup
i've also tried setting the attribute name to 'hibernate.transaction.manager_lookup_class' but that didn't work (obviously).
question is, what is the exact attribute name to use???
2) in the example treecache.xml files they set the TransactionManagerLookup class to org.jboss.cache.DummyTransactionManagerLookup.
I assume this is just an example and shouldn't be used in a production system.??
what should the value be set to??
is it : 'JBossTransactionManagerLookup'
thanks for your quick responses,
colum.