Could some body give me some suggestions?
Type: Posts; User: zjnbshifox; Keyword(s):
Could some body give me some suggestions?
Here is my persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence>
<persistence-unit name="ebEntityManager" transaction-type="RESOURCE_LOCAL">
...
If I want to use an transaction with jpa & jms ,the following config have any problems? I have not try it out yet
<bean id="jotm" class="org.springframework.transaction.jta.JotmFactoryBean"/>...
I use Spring 2.0M3,now can use hibernate entitymanager.
But I maybe need use JTA in the future, is there any suggestions?
my app server is TOMCAT 5.5.x
I find message below in my log:
Candidate advisor [org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor@12bf892] rejected for class...
I did not use the Test class of spring ,I use the TestCase of JUnit
and I add the config (below) in to web.xml
<filter>
<filter-name>sessionFilter</filter-name>
<filter-class>...
and here is my dao and logic code
dao
package com.jl.eb.dao;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import...
I used the Spring2.0M3 and Hibernate EntityManager3.1.6 beta
Here is my configuration:
persistence.xml,(NO hibernate.cfg.xml)
<?xml version="1.0" encoding="UTF-8"?>
<persistence>
...
I have try this,but it didn't work
<bean id="ebOpenEMinView" class="org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor">
<property name="entityManagerFactory"...
Spring 2.0m2,hibernate 3.1beta6
@Entity
@Table(name = "category", schema = "eb", uniqueConstraints = {})
public class Category implements java.io.Serializable {
// Fields
private String...
Thank you very much.It does works :)
I use spring 2.0M2 and hibernate entitymanager
my persistence.xml file
<?xml version="1.0" encoding="UTF-8"?>
<persistence>
<persistence-unit name="TestEntityManager"...
I have read the article on the page of http://www.jroller.com/page/sbeigel?entry=using_the_new_java_persistence
and also have one question,if I have to connect two data sources,I must write...
In our case we have a large system,and we split it as some subsystem.
each subsystem may have different datasource, in other word,there may have many datasource .
every subsystem use hibernate3...
Is there any timelines?
I tried the org.springframework.transaction.support.TransactionTemplate to receive Message in transaction
my code:
TransactionTemplate tt =...
When I set the ClientAcknowlege in JMS, According to JMS Spec,No. 15th message will redelivered,I must receive NO.15th Message in next receive operation.
But when I use the code below,it would...
I would use JOTM as the transaction container in Spring annotation transaction?
Is there any examples?
Is there any one has an example?
Entitymanager would manage the transaction in Hibernate EntityManager.
Is there any way to use Spring to manage it?
I use ActiveMQ v3.2 as my JMS server and JmsTemplate send MESSAGE to a queue. ActiveMQ use the default configuration.When I send nearly 20 MESSAGEs to the queue(1MB per Message),It will get "Queue is...
If I want make some Database operation in the same XA transaction,I must give these codes in the tt.execute{......} . Is that right??
Thank you Andy.
I have tried your program.it is no problem.The problem is :
Is your code a XA Transaction?
I tried my codes just from:...
HELP!!! I'v Got an Error!HELP!!
My config file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">...
here is my config file[bean.xml]:
<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
...