cancel
Showing results for 
Search instead for 
Did you mean: 

How to establish communication between webapplications on the j2ee

former_member292569
Participant
0 Kudos

Hello,

we have two applications on the j2ee.

Is there any possibility to exchange informations that are saved in the session between those two applications?

Can you use the session id of one application to access the session data from the second app?

Thanks and best regards,

Jens

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The sessions are managed by the Server and hence any manipulation of data would hamper the working of the server itself,..

I dont think any API is exposed to the level you have asked for. so the second question doesnt raise at all.

This is up to my knowledge, WebAS experts can throw more light.

Regards,

S.Divakar

former_member292569
Participant
0 Kudos

Hi,

are there any suggestions to solve this without having to persist data on the database?

We have to exchange data between Portal and ISA.

Thanks and best regards,

Jens

Former Member
0 Kudos

Hi, have you thought of exposing web services between the two to exchange the comms? That would be manageable within the standard WebAS tools and standards compliant.

Cheers,

Jonathan

Former Member
0 Kudos

Hello Jens,

There are many ways to communicate between two J2EE applications. It depends on what you are trying to achieve. Johathan has mentioned already web service. Two other options recommended by sun are JCA (used mainly for synchronous invocations of EIS) and JMS (used for asynchronous invocations and loose coupling between your two applications).

Here is a link that perhaps can be useful to you :

http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/eis-tier/eis-tier4.ht...

Since both JMS and JCA are part of the J2EE specification, they are available and come with the WebAS server. There are many tutorials and examples on the net as well.

Best Regards

Peter

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I have similar issue.

How did you resolve it?

Regards,

Apurva

former_member184385
Active Participant
0 Kudos

Hello,

you might consider using the remoting facilities of the spring framework. There, especially the Hessian and Burlap APIs are of interest, hence they provide you with lightweight, http based java rpc protocols.

The url is http://www.springframework.org/docs/reference/remoting.html

Regards

Gregor