We have tested all possible transactions using the test configuration.[Commit & roll back] and they are working fine.
Also I tried using "DataSourceTransactionManager" as the transaction manager...
Type: Posts; User: nadhimoolam; Keyword(s):
We have tested all possible transactions using the test configuration.[Commit & roll back] and they are working fine.
Also I tried using "DataSourceTransactionManager" as the transaction manager...
For Testing, I am using following configuration and that works great.
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property...
Hi,
We have websphere v6 hosted application with service tier designed using spring. The db connection [Non XA Oracle Data Source] is provided by WAS connection pool and the GLOBAL transaction is...
Guyz,
Just wanted to share the approach we have considered for this scenario
1.Domain has validate() method
2.Service calls validate() method of Domain and upon on isValid()=true, it allows...
I have been researching much of articles/blogs on this topic.. there are so many similar questions but no answers.
Just wondering...why Spring ignores validation at service tier, especially when...
I hope, things have improved a lot on Validation @ Service layer. Could anyone throw some good example of how to validate domain object in Spring service layer?
Thanks,
Nambi
Friends,
I am working on a design of Enterprise application. The basic architecture is Struts - MVC, Spring- Service and Data Access
Need guidance on how to devise the validation framework for...
Thanks!
The issue is with complex mapper.
Also, I am using plain select query without any bindings
select * from user order by user_id
hence I dont think there are issues with any indexing
The metrics are derived just before converting the resultset to object. Even to populate the List, the JdbcTemplate takes so much time.
System.out.println(new Date()+"-Before creating JdbcTemplate instance");
JdbcTemplate jt = new JdbcTemplate(getDataSource());
System.out.println(new Date()+"-After creating JdbcTemplate instance...
Guyz,
We are facing extremely slow performance with jdbctemplate.query whereas the usual plain jdbc statements brings the records at once.
Blow is our code which tries execute simple select...
Refer for more details
http://forum.springframework.org/showthread.php?t=10221
PS: It seems the problem still exists in 10.2.0.2 version of Oracle thin driver. any idea?
We resolved the issue by setting Cache Statement size to 0 in websphere 6.0
Basically, I am getting exception while using following JdbcTemplate method
List query(String sql, Object[] args, RowMapper rowMapper)
Example,
String user_query= "select...
Guyz,
I'm getting below exception when I use JbdcTemplate.query with prepared statement.
org.springframework.jdbc.UncategorizedSQLException: PreparedStatementCallback; uncategorized...
Is there a way to hide the suffixed URL-appended method names [like hidden variables] while calling multiaction controller methods?
yep. I have done that..Not sure if that's the correct approach, hence posted to the forum.
Thanks!
Here,the session scope is actually a HTTP session and it is available only in Controller but not in DAO/EJB/ or any POJO layers.
Is there a way to create/persist spring beans in custom scope?
...
I have a requirement to keep all custom exceptions/errors that occurs in any layers [DAO,EJB,SERVICE,Spring CONTROLLER] in a user session
We are planning to keep a map with error(log) code as key...
I figured out the solution. the ApplicationContext object is availablewithin the controller, so I get my bean as below
getWebApplicationContext().getBean("myBean");
Thanks for your help!
I am able to create a AOP-proxied session bean.
The blog outlines to access the bean with ApplicationContext. How can I get the application Context object when I use DispatcherServlet .
Is...
I have declared a session scoped instance variable at the controller bean
How can I access the variable in other business POJOs?
Thanks,
Nambi
Could anyone help me to understand the lifecycle of instance variables of the Controller bean?
I want to create business object [unique] for each user session. Can I keep this object as instance...