Hi,
I've been using the ContextSourceAndDataSourceTransactionManager to take care of the ldap and DB transactions.
<bean id="transactionManager"...
Type: Posts; User: dencamel; Keyword(s):
Hi,
I've been using the ContextSourceAndDataSourceTransactionManager to take care of the ldap and DB transactions.
<bean id="transactionManager"...
Hi,
I'm using the ServletContextPropertyPlaceholderConfigurer in my ApplicationContext to allow to read context parameters which are set in the web descriptor, this works very good.
Now I'm...
Hello,
I'm using the OpenSessionInViewFilter to handle the hibernate session in a webApp.
This works fine in the web environment but there's a case where a JMS message has to be created and when...
Hello Ulsa and Rasky
Ok in my case it will not be the JdbcTemplate but hibernate's SessionFactory.
Yes but when I did the implementation last year I worked with LdapTemplate-1.0.2 so...
Thanks again for your information, it really helps me out.
I have just some last remarks :
So I could also create some sort of a bean factory (DaoFactoryBean) that lets you switch between...
Hello,
that's just my problem, I have at the moment a service layer which has 1 DAO injected.
I thought I'd had to work with one DAO and in the DAO itself switch to the other datasource.
So...
Yes Rasky thanks for your reply that's correct, I have a contextSource(ldap) and a Datasource(oracle).
The question I have is how can I switch from one to the other so I can use 1 DAO for both,...
I was wondering if it is possible using the HotSwappableTargetSource together with a datasource (oracle) and a contextSource or is this only used for two or more datasources ?
The problem is I...
Thanks for the info...
But I don't think I can use the ThreadPoolTaskExecutor when working with JDK 1.4, is this correct ?
And concerning threading issues in the EJB spec, does this also apply for...
I have a question concerning on how to deal with threads...
Situation: a webbapplication (Struts-Spring). The business layer consists of spring beans and struts is used for the front-end handling....
So if I understand correctly it is not possible to roll back a transaction because there is no notion of a transaction in the Ldap world ?
Not even when using a JTA transaction manager like the...
Yes I've set setCacheAble to true :
criteria = this.getHibernateTemplate().createCriteria(this.getSession(), RootCode.class).setCacheable(true);
I even set the CacheQueries to true on the...
Hi,
I've searched this forum to include a caching for Hibernate transactions. But when implementing these myself it just doesn't seem to work.
In a test I make 10 times a call and in the logging...
Thanks for helping me out on this....
just for testing sakes I've changed this bean so that it doesn't rely on the transaction template :
<bean id="caseEvidenceBusinessService"...
Here's the applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC
"-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
I also implement it like that :
/** @overriden.
*/
protected String[] getConfigLocations() {
return new String[]{"applicationContext.xml"};
}
Hello,
I decided to use the AbstractTransactionalDataSourceSpringContextTests to test my DAO layer. I did what the documentation told me to do i.e. override the protected String[]...
Instead of using the "WebLogicNativeJdbcExtractor" I've tried to work with the "SimpleNativeJdbcExtractor" :
<bean id="nativeJdbcExtractor"...
Thanks for your reply Brendan.
If it wouldn't work I would have looked into your solution right away :)
But as I stated it works when I deploy it on the server but it doesn't work
when running...
Apparently I only have this Exception when running my JUnit test locally and not when it's deployed as a .war file on the WebLogic server then everything seems to work out fine...
So it might have...
Hello,
This forum has been a great help to use Spring on top of Hibernate but now I am stuck :(
The problem is that when I'm trying to save (via Junit test) a BLOB object into a column I get...
We have a project that uses Struts as the front-end and Spring in the business layer which takes care of Hibernate. We could have multiple clients (browsers) executing at the same time or is this...
I've checked out the increment Generator in the Hibernate documentation and it says:
Seems to be what I need but I'm not sure what they mean with the following :
Thanks for the reply...
Yes I've set the dialect to oracleDialect but I didn't setup the sequence.
Where and how do you specify this, in the *hbm files ?
Kristof
Hi,
I'm using the HibernateTemplate for my Hibernate transactions and at a certain stage I save new data in a certain table where records already existed.
...