How to share or send objects from one war to another war using JSP and Wildfly 10?

1

I currently have a User object which I believe in War1 and I want that when I call War2 I can get that same object in War2.

The applications must be in different EARs for this reason I can not pass the object per session. How else can I pass objects between different wars deployed in the same application server?

I am currently developing in JSP and I use Wildfly 10 as an application server. Thanks

1- We consult the USER and keep it in SESSION.

2- By having everything in the same EAR, I can have the SHARED SESSION so I can use it in all the wars that need it.

The idea is to separate the components. All the transactional part in an EAR and the Login and other independent wars in order to make a change when only the modified component is deployed and not the whole application.

To solve that I need to configure single sign on (SSO) on my Wildfly 10 server

    
asked by Leonardo Solano 16.06.2016 в 05:37
source

1 answer

1

You can not pass objects between wars, you do not really spend anything between wars, a war is simply a packaged web application to be executed on a server.

To share data between applications, simply use a common database in the 2 applications and store the objects you need there.

What you have to do is a typical example of CAS or SSO or common login for several applications, you only create the user once and as you have to access more applications you just have to give permission.

APP1           APP2
  |\          /  |
  | \        /   |
  |  \      /    |
  |   \    /     |
  v    v  v      v
BBDD1  BBDD    BBDD2
     USUARIOS
        ^
        |
        |
       APP3 ----> BBDD3
    
answered by 16.06.2016 в 09:22