You can use @Transactional at the business service layer.
It will not create any problem if you will have it on the DAO layer as well, cause then it will reuse the existing transaction , and if ...
Type: Posts; User: csergiu77; Keyword(s):
You can use @Transactional at the business service layer.
It will not create any problem if you will have it on the DAO layer as well, cause then it will reuse the existing transaction , and if ...
0
I am doing some Junits test for a persitence layer that use Spring + Hibernate .
By mistake i forgot to declare a new transaction manager and the one from pesritence.xml was used which is a...
Any idea ?
Noticed that if I want to read some data and if I do not have a transaction context I will not be able to do so because
"org.hibernate.HibernateException: No Session found for current thread"
...
####<Jan 12, 2012 4:44:18 PM CET> <Debug> <DomainLogHandler> <D02DI1005860> <AdminServer> <[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <>...
Same problem here !
####<Jan 12, 2012 4:44:18 PM CET> <Debug> <DomainLogHandler> <D02DI1005860> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS...
I have the following scenario:
Read a message from a Weblogic queue and I have to write this to an ActiveMQ queue (transaction wise)
(i can't use JMS Bridge,Foreign JNDI for various reason that...
Apparently the problem was solved by adding autowire="autodetect"
<bean id="transactionManager" autowire="autodetect"
...
Apparently the problem was solved by adding autowire="autodetect"
<bean id="transactionManager" autowire="autodetect"
...
Same problem here ....
No solutions to this ?
I have the same problem
Did anybody solved this issue ?
I use WLS 10.3
I had this transaction manager configured
<bean id="transactionManager" autowire="byName"
class="org.springframework.orm.hibernate3.HibernateTransactionManager" >
...
I use WLS 10.3
I had this transaction manager configured
<bean id="transactionManager" autowire="byName"
class="org.springframework.orm.hibernate3.HibernateTransactionManager" >
...
I have an existing data model generated from some WSDL.
Is possible to generate the persistence layer (JPA) using Roo starting from some existing data classes.
Example I already have...
<bean id="jndiTemplate"
class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">...
Now that i re read your post:
Yes i have a queue only and security is on the queue alone.
To understand better ...why is this cae different then yours ?
and how can i achive this using ...
Thx you for the detailed response !!!
How can i do that ?
I extend UserCredentialsConnectionFactoryAdapter ? and then ?
Thx
http://jira.springframework.org/browse/SPR-5869
Thx honeybunny
The problem i faced is that i was unable to read (consume) messages from a secured queue.
What i did was the solution you did with the Decorator but that one you also said in...
I have the same problem ?
Does anyone know a solution for this ?
My mistake as i initialy said.
Your last example was more then obvious.
My respect for patience you had !
Thx
I am sure my very young spring knowleges are the fault for this.
BUT you confirm that those singleton DAO's ( CustomerDao) will be shared among many users,threads ?
So those singleton object...
Marten
I use GWT + Spring+ Hibernate
Now a RPC call is in fact a servelt call so :
"The datasource/database connection is determined per thread it isn't set on the singleton:
Each client...
<bean id="simpleTaskDao" class="com.mmp.gateway.persistence.dao.SimpleTaskD aoImpl"
parent="genericDao" />
</beans>
This is a singleton that will end up having a session factory.
Now i am...