Hi Didn't get if both question were related.
If not about 2): is tomee/datasources/myDataSource defined? About 1 not sure that's the best place to ask. Hibernate forum would surely help more - or provide a light sample reproducing the issue. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-08-06 18:53 GMT+02:00 nagesh1988 <[email protected]>: > Hi, > > First of all Thanks for the TOMEE support. > > Environment: TOMEE + & Postgresql > > Upto now i have done, tomee configuration with jass security and i have > successfully deployed my ear. > > Currently i am facing two problems: > > 1) I have tried the Infinispan configuration in our EJB project. > > Without infinispan configuration, my ear is working > successfully. But i have configured infinispan, hibernate default schema is > not working. So externally i have created the orm.xml, there itself i have > given schema name in the table tag.After that the i am getting the response > from the service. But its not storing in the cache. Each and every time > service hitting database. > > If possible Kindly provide the infinispan > configuration example. > > persistence.xml: > --------------- > > <?xml version="1.0" encoding="UTF-8"?> > > <persistence xmlns="http://java.sun.com/xml/ns/persistence" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence > http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" version="2.0"> > > > <persistence-unit name="net.treetechnologies.dev" > transaction-type="JTA"> > > <provider>org.hibernate.ejb.HibernatePersistence</provider> > > <validation-mode>AUTO</validation-mode> > > <jta-data-source>tomee/datasources/postgres</jta-data-source> > > > <jar-file>../lib/finance-entities-0.0.5-R5-SNAPSHOT.jar</jar-file> > <jar-file>../lib/master-entities-0.0.21-R5-SNAPSHOT.jar</jar-file> > > > > <properties> > > > > <property name="hibernate.search.default.indexBase" > value="/home/appuser/treeapp/lucene/index/" /> > > <property name="hibernate.search.autoregister_listeners" > value="true"></property> > > <property name="hibernate.search.default.locking_strategy" > value="none"></property> > > <property name="hibernate.search.lucene_version" > value="LUCENE_35"></property> > > > <property name="hibernate.default_schema" value="snd"></property> > > <property name="hibernate.c3p0.acquire_increment">1</property> > > <property name="hibernate.c3p0.idle_test_period">0</property> > > <property name="hibernate.c3p0.min_size">1</property> > > <property name="hibernate.c3p0.max_size">15</property> > > <property name="hibernate.c3p0.timeout">0</property> > > <property name="hibernate.show_sql">true</property> > > <property > name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> > > <property name="query.substitutions">true 1, false 0, yes 'Y', no > 'N'</property> > > > <property > name="org.hibernate.envers.default_schema">snd_audit</property> > > > > <property > name="hibernate.cache.infinispan.entity.eviction.strategy">LRU</property> > > <property > name="hibernate.cache.infinispan.entity.expiration.wake_up_interval">2000</property> > > <property > name="hibernate.cache.infinispan.entity.eviction.max_entries">500000</property> > > <property > name="hibernate.cache.infinispan.entity.expiration.max_idle">180000</property> > > > > <property name="hibernate.max_fetch_depth" >0</property> > > <property name="hibernate.cache.use_second_level_cache" >>true</property> > > <property name="hibernate.cache.use_query_cache" >true</property> > > <property name="hibernate.transaction.manager_lookup_class" >>org.apache.openejb.hibernate.TransactionManagerLookup</property> > > <property name="hibernate.cache.infinispan.statistics" >>true</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.TransactionType" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Currency" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.ChargeGroup" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.ChargeGroup.charges" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Charge" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.NumberingPlan" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.BankDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Account" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.CreditDebitRequisition" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.CreditDebitRequisition.requisitionRelatedCharges" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.CreditDebitRequisitionDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.CreditNote" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.CreditNote.creditNoteRelatedCharges" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.CreditNoteDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DebitNote" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.DebitNote.debitNoteRelatedCharges" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DebitNoteDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.AccountReceivables" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.AccountReceivables.receivableRelatedCharges" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.AccountReceivablesDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Adjustments" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Channel" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.Channel.channelRelatedPaymentModes" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.PaymentMode" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.ChannelPaymentMode" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.Receipt" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.Receipt.receiptDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.ReceiptDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.ChequeInfo" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.ChequeClearence" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.PromiseToPay" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.PromiseToPayTrend" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningSmsTemplates" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningEmailTemplates" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningAction" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.DunningAction.dunningActionDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningActionDetails" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.DunningActionDetails.dunningPlanActionMaps" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningPlan" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.DunningPlan.dunningPlanDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningPlanDetails" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.com.enhancesys.entities.finance.DunningPlanDetails.dunningPlanActionMaps" >>transactional</property> > <property > name="hibernate.ejb.classcache.com.enhancesys.entities.finance.DunningPlanActionMap" >>transactional</property> > > > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.ServiceLogConfiguration" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.InterfaceRequestResponse" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Tenant" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Status" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Currency" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.EntityType" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LifecycleMaster" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LifecycleOperations" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LifecycleStateTransition" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Language" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.TagType" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.TagType.tagMasters" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Tag" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.Tag.tags" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.Tag.tagValues" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Tags" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.EnumerationType" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.EnumerationType.enumerations" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Enumeration" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LineType" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Application" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.EntityMapping" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Country" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.Country.states" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.State" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.State.cities" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.City" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Bank" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.Bank.bankCities" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.BankCity" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.BankCity.branchLocations" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.BankBranchLocation" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LookUp" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Gender" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.Gender.titles" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Title" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.ValueType" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.UnitType" >>transactional</property> > <property > name="hibernate.ejb.collectioncache.net.treetechnologies.entities.masters.UnitType.unitOfMeasures" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.UnitOfMeasure" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.DocumentInformation" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LookupType" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.LookupMapping" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.TagValue" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.Calendar" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.CalendarDetails" >>transactional</property> > <property > name="hibernate.ejb.classcache.net.treetechnologies.entities.masters.HolidayList" >>transactional</property> > > </properties> > > </persistence-unit> > > </persistence> > > orm.xml: > -------- > <?xml version="1.0" encoding="UTF-8" ?> > <entity-mappings xmlns="http://java.sun.com/xml/ns/persistence/orm" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm > http://java.sun.com/xml/ns/persistence/orm_1_0.xsd" > version="1.0"> > > <entity class="com.enhancesys.entities.finance.Charge" > > > > </entity> > <entity class="com.enhancesys.entities.finance.ChargeGroup" > > > > </entity> > </entity-mappings> > > > 2) I have configured Activemq (embedded) in the tomee plus. I want to make > is persistent. > > My configuration in tomee.xml: > ----------------------------- > <Resource id="Default JMS Resource Adapter" type="ActiveMQResourceAdapter"> > BrokerXmlConfig = broker:(tcp://localhost:61616)?persistence=true > ServerUrl = tcp://localhost:61616 > DataSource = tomee/datasources/myDataSource > </Resource> > > <Resource id="MyJmsConnectionFactory" > type="javax.jms.ConnectionFactory"> > ResourceAdapter = Default JMS Resource Adapter > </Resource> > > <Container id="MyJmsMdbContainer" ctype="MESSAGE"> > ResourceAdapter = Default JMS Resource Adapter > </Container> > > <Resource id="FooQueue" type="javax.jms.Queue"> > destination = new://Resource?type=javax.jms.Queue > </Resource> > > If possible kindly provide the guidelines to overcome this > problem. > > ..... > Regards, > > Nagesh. > > > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/TOMEE-Infinispan-configuration-with-hibernate-and-Open-EJB-tp4670871.html > Sent from the TomEE Users mailing list archive at Nabble.com.
