Questions tagged [spring-3]

Version 3.x of the Spring Framework, use [tag:spring] for general Spring related questions.

The Spring Framework is an open source application framework for the Java platform. Use for general Spring related questions. This tag is for questions that are specific to versions 3.x only.

It provides services and functionality across the application domain, including a core Inversion of Control container, technology-agnostic data-access and MVC layers, extensive AOP support, task scheduling, and various integration patterns designed to make distributed system development simpler and clearer. While some spring modules are simple wrappers and helpers over the Java EE specifications, the majority of them go far beyond the Java EE specification.

The latest Spring Framework Reference Documentation can be found here.

Frequently Asked Questions

People often ask about the following Spring topics:

###Guides:

Video tutorial on Spring Framework

###Blog:

Related tags

###More information:

762 questions
0
votes
3 answers

Spring+Hibernate: No session found in the thread

I have made a project which is built on Maven+Spring 3.1+Spring MVC 3.1+Hibernate 4.1 In the transaction if I use the code: Session session=sessionFactory.getCurrentSession(); session.save(user); It gives the exception at the…
yyy
  • 437
  • 2
  • 9
  • 23
0
votes
1 answer

spring 3 bean configuration files

I've got a small question, just to be sure... Do I have to store different beans in different files? For example: Does the bean, which handles servlet-mapping, have to be in an different file than the one which is dealing with database access?
bethlis
  • 55
  • 1
  • 3
  • 15
0
votes
2 answers

Why is Entity Manager clear() required? - Spring3 @Transactional, JPA2/Hibernate3

I have a JSF2 application that is using JPA2/Hibernate with Spring @Transactional. There are no @Transactional statements in the UI (backing beans), only in the service layer. (I am using @Transactional(propagation=Propagation.MANDATORY) in the…
John
  • 101
  • 1
  • 7
0
votes
1 answer

Package scanning Spring 3 context:component-scan

in the
OJVM
  • 1,403
  • 1
  • 25
  • 37
0
votes
1 answer

PagedListHolder search by keyword without using DAO

I am actually using Spring 3 MVC and listing data with pagination using PagedListHolder passing the method from my service layer to get all rows from a DB table like this: PagedListHolder myList = new PagedListHolder(myService.getAll()); And this…
Oscar Jara
  • 14,129
  • 10
  • 62
  • 94
0
votes
1 answer

ClasspathXmlApplicationContext with parent of the current ApplicationContext?

Due to another library's requirements, I must define an ApplicationContext in my main ApplicationContext with a name of default.context:
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
0
votes
1 answer

spring 3 scheduling: collection of tasks?

IS it possible to return list of tasks (Runnable?) to spring, so spring execute them in serial order regardless exceptions thrown by each item? I want spring to call 10 tasks in order: 1, 2, 3 and so on, and simply log exception if it occures Looks…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
0 answers

How to do internationalization in Spring 3 using annotations?

Can somebody give me reference/sample code of Spring 3.0 internationalization (annotation based, without XML)?
AJ01
  • 235
  • 1
  • 3
  • 16
0
votes
2 answers

How to create "Singleton" Bean which will hold static hashmap

I need to share static hashmaps which will be init on run-time using Spring 3.1. I need to create a real singleton bean (not necessarily singleton scope) which will hold all my static hashmaps. The hashmap will be modifiable also in run-time and it…
rayman
  • 20,786
  • 45
  • 148
  • 246
0
votes
1 answer

AJAX POST Request returning 404 on Spring MVC

I'm working on a project where I need to submit a JSOn object using AJAX to Spring controller. But I'm getting 404 on submission. Please, can somebody tell me what the problem is: My AJAX Request : $.ajax({ url:…
0
votes
1 answer

JAR Hell Issue? Weblogic 10.3.4 Spring 3.1.0.RELEASE Spring Modules Validation 0.8

I'm developing Java Spring 3.1.0.RELEASE using Maven and have been running it on Jettry server since. It works fine on Jetty. Until we move to Weblogic 10.3.4, the trouble came. We are using Spring Modules Validation 0.8 which needs Spring 2.0.3 to…
Salingga
  • 109
  • 1
  • 2
  • 12
0
votes
1 answer

Spring Autowire within Method

My application has a interface as below. public interface MainInterface { void someMethod(); } Then, i have number of implementations of this interface. @Service public class ImplClass1 implements MainInterface { @Override public…
Ankur Raiyani
  • 1,509
  • 5
  • 21
  • 49
0
votes
3 answers

Stable Spring version release

Right now I am trying to research on how stable Spring release are right now. I'm having problems determining whether the most current Spring release (3.1.1) is the best choice for a base architecture. Are there any differences between 3.0 and 3.1?…
user1137912
0
votes
1 answer

Is spring 3/tomcat 7 a viable duo for this webapp?

I guess I'm kind of biased. I first became interested in Java web frameworks just over two years ago after I learned about servlets. When I decided to form my company and begin developing a webapp I knew I was going to use a Java web technology. I…
Sam Levin
  • 3,326
  • 7
  • 30
  • 44
0
votes
1 answer

Spring 3 - How to separate the business layer from the app layer (services)?

From what I've seen, many people prefer to put the "business logic" in a separate module project. How is this done with a Spring 3 application? From what I have seen, the Controllers and Services are pretty spring-specific. Is that the point? If I…
Sam Levin
  • 3,326
  • 7
  • 30
  • 44