The role of spring-instrument-tomcat module - spring

What's the role of the Spring module : spring-instrument-tomcat ?How does it work?I can't find anything about it on the web and in various books.
Thanks

i just stumbled across this documentation for it
http://docs.spring.io/spring/docs/4.0.4.RELEASE/spring-framework-reference/htmlsingle/#aop-aj-ltw-environments
oh and to provide some context, it basically has to do with getting eclipselink to work with spring on tomcat. here's another stack overflow thread about the subject for reference, but i got more out of the spring documentation
How to configure EclipseLink 2.0 and Spring 3.0.5 and Tomcat 6?

Related

Where is keycloak starter for Spring Boot?

I'd need to use keycloak in my Spring Boot project. I can see from the many tutorials that it should be available in the Spring Boot Initializr:
However I cannot find it (anymore?) neither with the Cloud app, nor with "spring init". Has it been removed as starter?
Thanks
Yes it has been removed, see this issue for more details. In general going to https://github.com/spring-io/start.spring.io and searching in issues could be an effective way to get some information about the evolution of the service in general.

Spring boot documentation Update

Recently I have encountered a performance problem with spring-boot embedded tomcat. Later I found APR libraries improved the performance and execution problem.
I have update my comments in below link;
Spring Boot Embedded Tomcat Performance
Is it possible to update this step in official documentation ?
Regards,
Peter Jerald.
I am not sure what you want us to update in the official documentation but please create a request in the Spring Boot issue tracker and we'll have a look. Thanks!

Documentation or tutorial for spring-boot-starter-jta-atomikos

Has anyone used Spring boot's spring-boot-starter-jta-atomikos feature? I could not find any tutorials or documentation on the web. I am aware of the Spring Boot + Spring Data JPA + Atomikos + multiple database article. I want to know if it is easier to configure the same with spring-boot-starter-jta-atomikos.
Any pointers to documentation or a tutorial is greatly appreciated!
I checked the Spring.io forums and found the relevant Spring Data forum have been deactivated with new address pointing to Stack Overflow. Spring does not have any other forum where I can ask this question.
That feature is brand new so I doubt it has much coverage on the interweb yet. There's a sample: https://github.com/spring-projects/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-jta-atomikos, and documentation here: http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-jta. You should just be able to add Atomikos to your classpath, and create DataSource #Beans.

Multitenant using Spring LDAP

I am developing Spring Based multitenant application. I was refering to an article # http://www.ibm.com/developerworks/library/j-saas/index.html
It shows how to implement Multitenant application using Spring Security + LDAP. But it seems that article is written in 2008 and is applicable to Spring Security 2.0.1. whereas I am using latest version of Spring Security (3.1.3).
In latest Version, I am not able to locate SpringSecurityContextSource class.
Any suggestion on how to achieve same functionality?
I have just removed references of SpringSecurityContextSource. Still application is working as expected.

Spring Framework, Spring Security - possible to use Spring Security without Spring Framework?

Ive been working now with the Spring Framework 3.0.5 and Spring Security 3.0.5 for several time. I know that Spring Framework uses DI and AOP. I also know that Spring Security uses DI, for example when writing custom handlers or filters. Im not sure whether Spring Security also uses AOP - so my first question is: does it?
Well, Id also like to know how Spring Security can be used for non-spring-based applications. Its written in their documentation that this is possible. Well, I wonder how - it seems like it uses DI, so how should it work in a simple java web application? I guess at least a web container which supports dependency injection is needed, correct? (Which one could that be?)
Thank you for answering :-)
[EDIT]
documentation says:
"documentation says: "Spring Security provides comprehensive security services for J2EE-based enterprise software applications. There is a particular emphasis on supporting projects built using The Spring Framework, which is the leading J2EE solution for enterprise software development. If you're not using Spring for developing enterprise applications, we warmly encourage you to take a closer look at it. Some familiarity with Spring - and in particular dependency injection principles - will help you get up to speed with Spring Security more easily.""
j2ee-based enterprise software applications......... emphasis on supporting projects using spring framework...... well this means it should be possible to work with it without Spring Framework itself!
?
AND:
Even though we use Spring to configure Spring Seurity, your application doesn't have to be Spring-based. Many people use Spring Security with web frameworks such as Struts, for example.
This is from the spring security homepage. well....
Does it use AOP ?
Yes spring-security uses AOP for its method security (you'd have to search the page to find it).
Can you use spring-security without spring ?
Generally no.
As you need to define spring beans for several spring-security elements.
But! You can use Acegi security without spring as far as I know. Which should give you close to the same functionality.
Can you secure a non-J2EE application
Definitely.
Anything that can run in a servlet container can be secured with spring-security. You just need Spring's IoC/DI.
This answer can help you on the minimal spring-security dependencies.

Resources