Hi,
Is there a reason why the following does not work :
I'm using TransactionTemplate and JdbcTemplate :
public void doTest() {
transactTemplate.execute(new TransactionCallback() {...
Type: Posts; User: henk; Keyword(s):
Hi,
Is there a reason why the following does not work :
I'm using TransactionTemplate and JdbcTemplate :
public void doTest() {
transactTemplate.execute(new TransactionCallback() {...
Well, I only read from the database and the data is not being changed outside my app. So I think transactions should not be necessary. And indeed no stacktraces. JBoss just locks up and only a...
I see. So, in a servlet environment this code will always be threadsafe.
The thing is that I am experiencing strange lockups of JBoss using spring and hibernate. I guess I'll have to search for...
Hi,
I'm learning how to use hibernate in a spring web app.
I have a hibernate sessionfactory, a dao extending HibernateDAOSupport and a controller extending AbstractController.
My beans :
...
Hi,
I am using org.apache.commons.dbcp.BasicDataSource for connection to the database from a standalone spring application using JdbcTemplate.
What I want to achieve is when the connection is...
Hi,
I am using the TimerFactoryBean to start a method on a class. This is the config :
<bean id="scheduledTask"
class="org.springframework.scheduling.timer.ScheduledTimerTask">...
Hi,
I have a few problems with urlmapping and I don't see what I'm doing wrong.
I want two things :
- http://server/url/admin/listall points to listAllProducts method in a delegate
- if...
Hi,
I am trying to use jsp and freemarker together. The freemarker part works, but the jsp part does not because freemarker tries to find the corresponding template.
Configuration :
<bean...
Please don't forget to eat ! Very important for the future of Spring !
:D
Well, I'm aware of the fact the application is rather strange :wink:
And in practice the classname is not passed, it's a name that gets mapped to a classname.
But the thing is, we have lots of...
Ofcourse you are absolutely right.
But could you suggest how I would reach the following goal :
- I have a bunch of classes that make a certain output
- I want to run a method from that class...
This works :
In your spring config file, you have the controller :
<bean id="myController" class="MyController">
<property name="viewResolver"><ref bean="templateResolver"/></property>...
Thanks, I provided my controller with a reference to the viewresolver and now I can set the mime-type myself (no need to do this in the beans config file).
Henk
Hi,
I'm using the VelocityViewResolver to show some pages. What I want to do now is to change the mime-type of the resulting pages from within the controller. But it does not seem to work. In...
I'm having the same problem.
Were you able to solve it ?
I'm using the JBoss jms, but this is not fixed. I will take a look at activemq. Where can I find the Spring sandbox ?
Note that I would like to use it in Tomcat (a webcontainer), not standalone.
Hi,
I was thinking of implementing something like this :
a controller servlet listens to different jms queues. Depending on the message, an action is performed by a certain class. This class...
Thanks ! It works now.
Henk
Hi,
when I try this :
<bean id="connFactory" class="oracle.jms.AQjmsFactory"
factory-method="getQueueConnectionFactory" >
<constructor-arg>
<value>host</value>
</constructor-arg>...
Hi,
if I put verbose logging on I see the following messages for every sql call to the database :
org.springframework.jdbc.object.SqlFunction - SQL operation not compiled before execution -...
Hi,
I am new to Spring, but I am very much charmed by its design. What I would like to do is test a migration of an existing (but not too good performing) j2ee application on JBoss to something...
[/quote]
Do you think Mule is ready for production ?
Henk
Hi,
I now have a system with a session bean of which a method is invoked from a message-driven bean. I would like to try to convert this to a system without enterprise beans. I think the session...