0

I am looking for split an application into modules using spring framework and java config.

For example:

  • Module1 - Admin console
  • Module2 - User console
  • Module3 - Public Site

It's possible share the same context and obtain that the 3 modules have same Session, ThreadPool etc.

Thanks

user3399743
  • 123
  • 1
  • 1
  • 5

1 Answers1

0

You should probably take a look at Spring Session project: http://projects.spring.io/spring-session/ . You can use Redis as a session storage and all modules can access those shared objects.

Basel Darvish
  • 64
  • 2
  • 11
  • Thanks for the reply. Do you also know how to share the ThreadPool and PesistenceSession? – user3399743 Oct 07 '15 at 08:17
  • I didn't really get what you ment by sharing a TheadPool. As for the PersistenceSession, I suppose you care about having a shared transaction among nodes, but that is not really a good idea. The reasons are discussed well here: http://stackoverflow.com/questions/128377/what-is-the-best-way-to-do-distributed-transactions-across-multiple-databases – Basel Darvish Oct 07 '15 at 08:27