cancel
Showing results for 
Search instead for 
Did you mean: 

What is the lifecycle of Portal Service

Former Member
0 Kudos

Hi,

I am thinking in building a Protal Service as a bridge to Stateful Session EBJ.

so i have two question:

1. what is the lifecycle of Portal Service?

When the PRT destroy the Portal service

2. what is the relation between Portal components and Portal Service and User.

For example i have to two user

that used the same Portal Component whitch used Portal Service to creat Stateful Session EJB.

are two users useing the same ejb client?

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Raja,

a service is started with the portal startup, if the "startup" property is set to true, or, if not, a service is started on request. It can be restarted manually via the portal interface (System Administration -- System Configuration -- Service Configuration). So a service is destroyed when the portal stops or if the service is restarted manually (then the old instance gets destroyed and a new one gets created).

A service behaves like a singleton, so you access the same instance, independent of users and components they come from; if you want to differentiate, you have to implement the differentiation by yourself.

Hope it helps

Detlev

Answers (0)