Runtime « Web Service « Spring Q&A





1. How do I get the value of the jdbc.batch_size property at runtime for a Web application using Spring MVC and Hibernate?    stackoverflow.com

According to what I have found so far, I can use the following code:

    LocalSessionFactoryBean sessionFactory = (LocalSessionFactoryBean)super.getApplicationContext().getBean("&sessionFactory");
    System.out.println(sessionFactory.getConfiguration().buildSettings().getJdbcBatchSize());
but then I get a Hibernate Exception: org.hibernate.HibernateException: ...

2. Spring Application Context Switch at Runtime    stackoverflow.com

I'm wondering if it is possible to change which application context your app is using at run time. The use case would be: I have a GUI that allows you create ...

3. How to schedule a new method in a Spring enabled web app at runtime?    stackoverflow.com

Right now I have one bean with a @Scheduled method working fine; it's declared in my applicationContext.xml.

<!-- some JPA stuff -->

<bean id="aWorkingBean" class="some.package.WorkingBean">
    <property name="someDAO" ref="someDAO" ...

4. Configuration file changes at runtime for a tomcat webapp?    forum.springsource.org

Hello, Say I have a tomcat/Spring web application. I am wondering whether Spring does detect runtime changes to its configuration file such as this one (assuming the file is on the ...

5. Runtime Exception While using Spring Webservice Template    forum.springsource.org

Jul 19th, 2011, 02:41 AM #1 Venkata554 View Profile View Forum Posts Private Message Junior Member Join Date Apr 2011 Posts 7 Runtime Exception While using Spring Webservice Template Hi, I ...

6. Create proxy / stub web services based on WSDL on runtime    forum.springsource.org

Create proxy / stub web services based on WSDL on runtime I'm quite new to Spring Web Services and wonder, if the following is possible with this library: During runtime my ...

7. Wiring in RequestBody type at runtime to rest controller    forum.springsource.org

Wiring in RequestBody type at runtime to rest controller I have a controller with the following format: @RequestMapping(value = "/{id}", method = RequestMethod.PUT) @ResponseBody public AnimalDTO updateAnimal( HttpServletRequest request, @PathVariable("id") Long ...

8. Generate wsdl as part of build process instead of runtime    forum.springsource.org

Sounds perfectly reasonable to me. Before SWS introduced runtime generation of WSDL, Arjen recommended using an XSLT stylesheet to generate the WSDL at build time. I'm not sure how much the ...

9. Runtime error with spring-ws 1.5.2 and java 1.4    forum.springsource.org

Runtime error with spring-ws 1.5.2 and java 1.4 Hi, I have already worked around a number of problem when trying to run a spring-ws based client with java 1.4. Now I'm ...





10. Handling runtime sql exceptions and soap fault    forum.springsource.org

Handling runtime sql exceptions and soap fault Hi, I am using endpoint interceptor to handle all runtime exceptions to translate into soap fault. I want to capture sql exceptions for failures ...

11. Stop Endpoint listeners - runtime (autostart=false)    forum.springsource.org

Stop Endpoint listeners - runtime (autostart=false) Hi all, Well that subject line doesn't explain everything :-) All, I was looking for is to see the possibility to intercept a running spring ...