You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to integrate the spring session into an existed projects that runs on tomcat 6 (servlet 2.5) and are configured using XML spring configuration files.
As the servlet 2.5 does not work with WebApplicationInitializer and the documentation does not show how to configure the spring-session with Spring XML configuration files (usefull for old apps) this integration will be harder than expected.
It will be very helpfull more documentation about how integrate spring-session with legacy spring application
To this issue. I was going to show some XML config for <websocket:broker>, but noticed that WebSocketHandlerDecoratorFactory requires ApplicationEventPublisher as ctor arg. Would be better to implement ApplicationEventPublisherAware there.
Thanks
@rwinch thanks a lot.
I am an Spring's caveman and It has been easier configure my legacy projects with XML: applicationContext-session.xml
Once time it runs, due that I use Servlet 2.5 throws the next exception:
HttpRequest interface has the getServletContext() since 3.0 ;o(
This challenge allow me to know more about Servlet 3.0, Spring Boot and JavaConfig and take in consideration for use into near future.
@pdorgambide Thanks for following up. Does this mean you were able to get your application configured using XML and JavaConfig?
The NoSuchMethodError sounds like a bug. Spring Session should work with Servlet 2.5, but based on your description it sounds as though it is not. Can you create a new issue with a complete stacktrace?
@rwinch I am able to get the application configured only with XML.
I will create the new issue with the complete stracktrace to let you located and fix.
Awesome work.
Activity
[-]Servlet 2.3 and xml spring configuration files compatibility[/-][+]Servlet 2.3 with XML Spring Configuration[/+][-]Servlet 2.3 with XML Spring Configuration[/-][+]Servlet 2.5 with XML Spring Configuration[/+]artembilan commentedon Jan 14, 2015
Related SO question http://stackoverflow.com/questions/27934251/spring-messaging-xml-config-with-stomp-and-spring-sessions
artembilan commentedon Jan 14, 2015
To this issue. I was going to show some XML config for
<websocket:broker>, but noticed thatWebSocketHandlerDecoratorFactoryrequiresApplicationEventPublisheras ctor arg. Would be better to implementApplicationEventPublisherAwarethere.Thanks
rwinch commentedon Jan 14, 2015
@pdorgambide Thanks for creating a ticket. I agree that this is something that should be documented.
In the meantime, are you aware you can used mixed Spring XML configuration with Spring Java Configuration? I've added a complete sample at httpsession-xml. You can find a summary of how to do it at #105
pdorgambide commentedon Jan 15, 2015
@rwinch thanks a lot.
I am an Spring's caveman and It has been easier configure my legacy projects with XML: applicationContext-session.xml
Once time it runs, due that I use Servlet 2.5 throws the next exception:
HttpRequest interface has the getServletContext() since 3.0 ;o(
This challenge allow me to know more about Servlet 3.0, Spring Boot and JavaConfig and take in consideration for use into near future.
rwinch commentedon Jan 15, 2015
@pdorgambide Thanks for following up. Does this mean you were able to get your application configured using XML and JavaConfig?
The
NoSuchMethodErrorsounds like a bug. Spring Session should work with Servlet 2.5, but based on your description it sounds as though it is not. Can you create a new issue with a complete stacktrace?pdorgambide commentedon Jan 15, 2015
@rwinch I am able to get the application configured only with XML.
I will create the new issue with the complete stracktrace to let you located and fix.
Awesome work.
rwinch commentedon Apr 15, 2015
Closing this issue since it is now superseded by additional tickets (many of which are fixed)
[spring-projects#101] adds XML Schema for RedisHttpSession configuration
[spring-projects#101] adds XML Schema for RedisHttpSession configuration
[spring-projects#101] adds XML Schema for RedisHttpSession configuration
[spring-projects#101] adds XML Schema for configuring GemFireHttpSession
[spring-projects#101] adds XML Schema for configuring JdbcHttpSession
[spring-projects#101] adds XML Schema for configuring MongoHttpSession
[spring-projects#101] adds XML Schema for configuring HazelcastHttpSe…
Upgrade to Spring Framework 5.2.0.RELEASE.