This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

using spring batch admin

May 26th, 2011, 12:34 PM

Hi
I am trying to customize spring batch admin and following the steps listed http://static.springsource.org/sprin...g-started.html have connected to my backend postgres database which is hosting my batch job data.
However i am having trouble getting the view to work . All my spring dependencies in the pom are set to 3.0.5 release and using the specific dependency as in the spring-batch-admin-manager (template) project is as

So i checked the freemarker-servlet.xml located in spring-batch-admin-resources-1.0.0.M1.jar in the spring-batch-admin-example and the namespace contains a reference to the spring 2.5 xsd's. is that the problem ?
If i try to override that particular bean "defaultAnnotationHandlerMapping" in my own config i see that in the 3.0.5 release the DefaultAnnotationHandlerMapping class from o.s.web.servlet.mvc does not have interceptor property.

Comment

Thanks. Atleast that got me started and by now i have been able to integrate successfully with spring integration and launch jobs as well using stringtojoblaunchrequest adapter and joblaunchmessaging handler.
Also I can lauch jobs from spring batch-admin ui. Great tool ! thanks !

Comment

Could you plz guide me fr how batch admin is to be connected to database? coz I m trying the same by following the steps given in ref doc..but no go..
I have deployed the spirng batch admin war on tomcat and hv configured the xml by overriding few elements as given in the doc.
Wat else we need to do to make it work?

Could you plz guide me fr how batch admin is to be connected to database? coz I m trying the same by following the steps given in ref doc..but no go..
I have deployed the spirng batch admin war on tomcat and hv configured the xml by overriding few elements as given in the doc.
Wat else we need to do to make it work?

thx in adv...

Comment

1. What is the need of using PropertyPlaceholderConfigurer ? Cant we configure datasource with direct values? [ I had tried putting direct values to datasource instead of putting them thru properties file but it was showing no respose and no error too ]
2. Even if the configuration of boostrap components and overriden components is same , then why do we again have to write it in context.xml file?
3. After pointing to database UI is showing only few jobs out of 30 jobs which i already have run. But all exeution details are being shown?

Please reply and suggest on these points..

Comment

1. What is the need of using PropertyPlaceholderConfigurer ? Cant we configure datasource with direct values? [ I had tried putting direct values to datasource instead of putting them thru properties file but it was showing no respose and no error too ]