You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by "Wimmer, Matthias" <ma...@scr.siemens.com> on 2002/08/06 17:41:01 UTC

Portlet Instances

Hello,

I am just figuring out the difference between "Portlet", "Concrete Portlet",
"Concrete Portlet Instance" and "User Portlet Instance". This is how IBM
calls these different aspects of portlets. How do you call it in the
Jetspeed world? 

When a page is aggregated in Jetspeed each portlet is instantiated and the
getContent method is being called. After that everything is thrown away. Why
don't you create the portlets when a user logs in and keep this tree for
further use.

Is there any issue that I am not aware of? Is it the memory occupancy? Is it
a good way to deal with missing log off operations of the users?


I am very obliged to your kind response.

Matthias Wimmer

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: DB Psml Manager Service problem

Posted by Mark Orciuch <ma...@ngsltd.com>.
I think I just figured it out by looking at the JetspeedRoleProfilePeer. My
fix seems to work so I'm submitting a patch.

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


-----Original Message-----
From: David Sean Taylor [mailto:david@bluesunrise.com]
Sent: Tuesday, August 06, 2002 5:37 PM
To: Jetspeed Developers List; mark_orciuch@ngsltd.com
Subject: RE: DB Psml Manager Service problem


Are you working from the cvs head?
I rewrote a lot of db psml after the release.
I am using it here (not with Hypersonic) -- no problems with updates

> -----Original Message-----
> From: Mark Orciuch [mailto:mark_orciuch@ngsltd.com]
> Sent: Tuesday, August 06, 2002 2:39 PM
> To: Jetspeed Developers List
> Subject: DB Psml Manager Service problem
>
>
> I am having helluva time with DatabasePsmlManagerService (see
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11480).
> Browsing thru some
> past messages in the archives it appears that there are others
> successfully
> using this service. The profile updates just don't work and I'm puzzled by
> the following code in JetspeedUserProfilePeer.doUpdate():
>
> <snip>
>         else if (operation == UPDATE)
>         {
>             Criteria values = buildCriteria(userProfile);
>             Criteria select = buildCriteria(userProfile);
>             select.remove(PROFILE);
> </snip>
>
> I even changed it as follows:
>
> <snip>
>         else if (operation == UPDATE)
>         {
>             super.doUpdate(userProfile);
> </snip>
>
> ... but still no joy. Is there anyone out there using Jetspeed with
> DatabasePsmlManagerService and Hypersonic?
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: DB Psml Manager Service problem

Posted by David Sean Taylor <da...@bluesunrise.com>.
Are you working from the cvs head?
I rewrote a lot of db psml after the release.
I am using it here (not with Hypersonic) -- no problems with updates

> -----Original Message-----
> From: Mark Orciuch [mailto:mark_orciuch@ngsltd.com]
> Sent: Tuesday, August 06, 2002 2:39 PM
> To: Jetspeed Developers List
> Subject: DB Psml Manager Service problem
>
>
> I am having helluva time with DatabasePsmlManagerService (see
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11480).
> Browsing thru some
> past messages in the archives it appears that there are others
> successfully
> using this service. The profile updates just don't work and I'm puzzled by
> the following code in JetspeedUserProfilePeer.doUpdate():
>
> <snip>
>         else if (operation == UPDATE)
>         {
>             Criteria values = buildCriteria(userProfile);
>             Criteria select = buildCriteria(userProfile);
>             select.remove(PROFILE);
> </snip>
>
> I even changed it as follows:
>
> <snip>
>         else if (operation == UPDATE)
>         {
>             super.doUpdate(userProfile);
> </snip>
>
> ... but still no joy. Is there anyone out there using Jetspeed with
> DatabasePsmlManagerService and Hypersonic?
>
> Best regards,
>
> Mark C. Orciuch
> Next Generation Solutions, Ltd.
> e-Mail: mark_orciuch@ngsltd.com
> web: http://www.ngsltd.com
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


DB Psml Manager Service problem

Posted by Mark Orciuch <ma...@ngsltd.com>.
I am having helluva time with DatabasePsmlManagerService (see
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11480). Browsing thru some
past messages in the archives it appears that there are others successfully
using this service. The profile updates just don't work and I'm puzzled by
the following code in JetspeedUserProfilePeer.doUpdate():

<snip>
        else if (operation == UPDATE)
        {
            Criteria values = buildCriteria(userProfile);
            Criteria select = buildCriteria(userProfile);
            select.remove(PROFILE);
</snip>

I even changed it as follows:

<snip>
        else if (operation == UPDATE)
        {
            super.doUpdate(userProfile);
</snip>

... but still no joy. Is there anyone out there using Jetspeed with
DatabasePsmlManagerService and Hypersonic?

Best regards,

Mark C. Orciuch
Next Generation Solutions, Ltd.
e-Mail: mark_orciuch@ngsltd.com
web: http://www.ngsltd.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Portlet Instances

Posted by David Sean Taylor <da...@bluesunrise.com>.
Portlets are not thrown away after aggregation.
Portlets remain in memory for as long as they are configured to.
The part that could be optimized is the creation of the transient portlet
sets (and now wrappers) with every request....

A portlet instance is the runtime view of a portlet with its set of
configuration and customization attributes. This runtime pair (the portlet
object and attributes - from the psml page and configuration) define an
instance.


> -----Original Message-----
> From: Wimmer, Matthias [mailto:matthias.wimmer@scr.siemens.com]
> Sent: Tuesday, August 06, 2002 8:41 AM
> To: 'Jetspeed Developers List'
> Subject: Portlet Instances
>
>
> Hello,
>
> I am just figuring out the difference between "Portlet",
> "Concrete Portlet",
> "Concrete Portlet Instance" and "User Portlet Instance". This is how IBM
> calls these different aspects of portlets. How do you call it in the
> Jetspeed world?
>
> When a page is aggregated in Jetspeed each portlet is instantiated and the
> getContent method is being called. After that everything is
> thrown away. Why
> don't you create the portlets when a user logs in and keep this tree for
> further use.
>
> Is there any issue that I am not aware of? Is it the memory
> occupancy? Is it
> a good way to deal with missing log off operations of the users?
>
>
> I am very obliged to your kind response.
>
> Matthias Wimmer
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>