on 01-17-2005 12:50 PM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.