Bill Gorder

Bartender
+ Follow
since Mar 07, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bill Gorder

Spring wraps it there are a number of flavors (including one for Hibernate3, Hibernate4 or JPA). Look at all the subclasses here
http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/transaction/support/AbstractPlatformTransactionManager.html

Spring transaction management allows you to use the declarative transactions (using @Trasactional) removing the need to write boiler plate transaction code.
10 years ago
Unfortunately this was a pain in the ass to do before 3.1. You are on the right track you need to configure the object mapper to not include nulls and then set that object mapper on the HttpMessageConverter. The unfortunate thing about how things were in Spring 3.0 is that the easiest way to do this would have been to supply your own AnnotationMethodHandlerAdapter and set the object mapper on it. However in order for that to work you can not use <mvc:annotation-driven /> or its ignored. This means you would have to manually do everything that <mvc:annotation-driven /> did for you (which is a lot)



You can see in the ticket below the workaround suggested was to right a bean post processor (yuck)
https://jira.spring.io/browse/SPR-7504

Anyways is there a reason you cannot upgrade Spring? There is a pretty well documented upgrade path, and would definitely be worth it to upgrade.
10 years ago
You will want to configure your connection factory appropriately.
http://activemq.apache.org/redelivery-policy.html


You can use transactions that fail to cause the rollback/retry. There are a number of different strategies here, and of course the best way to handle this comes down to your requirements. I still think this article is an awesome read regarding that:
http://www.javaworld.com/article/2077963/open-source-tools/distributed-transactions-in-spring--with-and-without-xa.html

Lastly if Spring JMS support is not cutting it you will find more advanced integration techniques supported in the Spring Integration project.
http://docs.spring.io/spring-integration/reference/pdf/spring-integration-reference.pdf
10 years ago

Maria Stevany wrote:Spring Boot. I reccomend it most. No need to write classes of configuration. All needed just a two rows script to run the app and a properties / yml file (your choose) which is where you define the basic conf of your app such as driver of the database, path url, user, password.



Actually now you only need one



http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/api/org/springframework/boot/autoconfigure/SpringBootApplication.html
10 years ago
Welcome. I know this book has been a long time in the making, but I am glad you updated it for 2.x!
10 years ago
Are you at work? Is there a proxy?
Mohit,

It is always better to post new questions in a new topic. That is most likely why your last post was not noticed. I think the answers I see on SO address your issue though. Be sure to add the dependencies specified there.
10 years ago
Tony,

The message sticky on their forum said it was closed due to inactivity. They tell you to post on SO with the tags given. However SO often is not necessarily newcomer friendly for that I would recommend this forum
10 years ago
Craig said here:

https://coderanch.com/t/641288/Spring/Updates-Spring-Action

That Spring 4 is covered. You are missing some of the latest features from 4.1 but that is a far cry from being out dated I doubt that the absence of these invalidates much (if any) of the contents of the book. It takes a long time to write a book, it would never make it to press if it had to be updated for every point release
10 years ago
Ill add one more more to the pile. I just love being able to set breakpoints within my @Bean configuration without combing through the XML parsing code to find out where I need to set it
10 years ago
I thought the same thing as they seemingly overlap some. However at SpringOne there was a presentation on this very thing and it turns out they are not mutually exclusive. You can use XD as a Source and Spark as a processor. There is also more in the works for adding support for Spark in XD.

I have not watched the presentation yet as I was in a different session at the time, however the slide deck is already available.

https://github.com/SpringOne2GX-2014/SparkForSpring
http://www.slideshare.net/sdeeg/spark-forspringdevs-springonefinal
10 years ago
Gunnar and David both recently blogged about security related things with Angular and Spring. Gunnar I know likes angular a lot, and I have not had any specific issues with it either. The Jhipster stuff is a little to busy for my liking. Here are some distilled angular security examples

https://github.com/ghillert/botanic-ng
https://github.com/SpringOne2GX-2014/microservice-security
10 years ago
Glad you got it working! Thanks for posting back with what worked.
10 years ago