I am retrofitting Spring transactions to a legacy system. I would like to write some tests to check that transactions are rolled back when an exception is thrown in a service.
I have setup a test...
Type: Posts; User: benhalton; Keyword(s):
I am retrofitting Spring transactions to a legacy system. I would like to write some tests to check that transactions are rolled back when an exception is thrown in a service.
I have setup a test...
We solved this using the following steps. It seems to work well for our use case - any comments welcome.
- We set a custom header on the outbound message e.g. "username"
- We have a pollable...
Hi Iwein,
Thanks for your reply. We now have the POC working as planned and want to move onto a fully asynchronous model as discussed.
We were wondering if there is a best practice for...
Hi Iwein,
thanks for your reply, it makes total sense. In the longer term the plan is to get the client to poll for responses but in the short term we wanted to do this for POC.
I still think...
OK - I got it working like so...
I removed the <stream:stdout-channel-adapter id="deliveries"/> configuration, and removed the output-channel="deliveries" attribute from the aggregator config.
...
I am trying to get a proof of concept up and running with the cafe demo in a web application. What I need is to make the Http request, send off the requests to the Barista, wait for the aggregator...
Hi,
I have recently taken over a codebase that uses a lot of spring. One of the things I have noticed is that multiple application contexts are declared as follows:
<bean id="Service1"...
I agree with this pretty much - both the IF approach and DTO approach are achieving similar results. We use IF approach at the moment but it has its own limitations, and we use DTOs in certain...