Update
Sorry for not being clear in my question, I am developing a Spring project with the next dependencies
Spring Boot
Spring Data
Mysql
wsdl
In the project I exposed soap Web services with Spring Data for persistence, I have to use RMI for support of application desktop.
I tried the following :
Integrate in the same project Spring and RMI (using RMI Register ) successfully but when I tried use Spring annotations obviously not working.
I'm searching when I found that Spring have support for RMI using XML configuration but I need the configuration in annotations.
My question How to would implement RMI in my project?
I'm using latest version in all dependencies
I am trying to expose a simple web resource on JBOSS AS using Spring.
Is it mandatory to configure RESTEasy with Spring in order to the server to serve the requests correctly?
I have already deployed my war file without no configuration in the web.xml and I don't know if the configuration has something to do with RESTEasy integration.
All the documentation found indicates so but I need to be sure if it can't be done without RESTEasy.
If you want to access Spring beans in your REST endpoint classes, then you have to integrate Spring with RestEasy, so that RestEasy is able to find your Spring beans. If you don't have this requirement, then it's not necessary.
How can I work with Spring and Guice beans in a single web application such that a Spring bean needs Guice to inject some dependency into it?
I am currently working on a task that involves migrating a standalone app to our companies in house framework. The in house framework uses Guice for dependency injection. The standalone app that needs to be migrated to this framework uses Spring and Spring - JMS. Also, the standlone app needs to be converted to a web app and deployed in an app/web server.
The catch here is that the standalone app classes are Spring beans whereas the framework classes primarily contain a lot of Guice injections all over the framework.
Edit :
Based on the comments on this question, I have taken a look at SpringIntegration and I understand that I will need to bind all my Spring beans in a Guice module. I have the following questions :
Will all the Spring beans bound to Guice using SpringIntegration remain as singleton or will I need to explicitly define them as Singleton using #Singleton from Guice?
What would be the right place to create an injector out of my Guice module and thus initialize the Guice module? Note that my app is going to be a web app that does not use any web related stuff.
I've created a "framework/toolkit" for a specific type of database search. This was done with Spring-Data JPA using hibernate. This framework is usable by standalone desktop app or as a web application.
This framework ships with entity classes, Spring-Data Repositories and a transactional Service layer with optional method level security (spring-security annotations).
now I would like to create a web application using this framework. Since grails is from spring to and also uses hibernate I thought this might work but I'm open to other suggestions.
The entities in the web application will extend such provided by my framework and should use spring-data repositories extending repositories provided by the framework and services extending provided services for data access.
Or said otherwise I'm mainly interested in the scaffolding part (controller and CRUD web pages) and not the data access part. I'm open to any other tools that can achieve this.
Is this possible with grails? Other suggestions? Spring Roo?
I need to start developing applications using the Spring framework, and am wondering what tools I need to download to have me up and running.
On the SpringSource website I am seeing all these applications to download and I am wondering, do I really need all this? And what versions should I use, especially for Spring Framework?
Spring Framework
SpringSource dm Server Samples
Spring Security
Spring Web Flow
Spring Web Services
Spring Dynamic Modules
Spring Integration
Spring Batch
Spring.NET
Spring JavaConfig
Spring LDAP
Spring Extensions
Spring IDE
Spring BlazeDS Integration
SpringSource Bundlor
Spring ROO
What other applications do I need to download (eg. Struts, Glassfish, Apache, etc.)?
This depends on what you want to use Spring for. Typically that's Web applications. If so you only need two things:
Spring framework (with minimal dependencies); and
A servlet container (eg Tomcat) or a full-blown application server (eg Glassfish, JBoss).
Everything else is optional. I believe the only required dependency is Apache Commons logging. Depending on what features you use, you may well need more.
If so, here is a [tutorial][1] that creates a barebones Spring MVC project. There are countless others around for that and other topics.
It's entirely possible to use Spring in, say, a Swing application in which case you obviously don't need a servlet container.
All you need from SpringSource is the Spring Framework.
Spring 3.0 is on the way, but for now, use 2.5.6.SEC01, the current production release.
You can get started with a simple servlet container (ie: Tomcat) rather than a full blown application server (eg: JBoss, Glassfish).
The Spring Framework comes bundled with jars for web development - ie: spring-web and spring-webmvc.
See #117535 for a simple example of using Spring MVC.
It mainly dependent on what you need Spring for. Each and every piece of Spring can, actually, be used in separation from the rest. You may use it only for IOC, in this case you don't need, for example, MVC and Servlets, etc...
The easiest way to start is to dowload the main package from http://www.springsource.com/download/community?project=Spring%20Framework
You can use Spring from any IDE
The best way is to use Maven with your project. Basically all you have to do is edit your pom.xml file and tell it that you want to use Spring. Then when you compile your code, Maven will go out and automatically download the Spring libraries you need from their public repository.
Here's an example:
http://pookey.co.uk/blog/archives/63-Getting-started-with-Maven-and-Spring.html