You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsrp4j-dev@portals.apache.org by Tali Garsiel <tg...@mercury.com> on 2006/02/21 16:26:06 UTC

consumer registration

Hi,

 

I'm new to WSRP (and portal technology)

 

I have the following problem:

 

My portal is a producer using wsrp4j.

 

I set registration requirement to false.

 

The consumer sends me empty registration context.

 

When I get a performBlockingInteraction request I get an exception because:

 

The portlet instance is ProducerOfferedPortlet

 

 

function handlePortletStateChange (WSRPEngine class) calls clonePortlet 

 

 

clonePortlet fails because I have no registrationContext    (line 1174   -
"String regHandle =
request.getRegistrationContext().getRegistrationHandle();)

 

 

I want to know

 

Is it a bug ? or should I require registration ?

 

 

Thanks, Tali

 



______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

Re: consumer registration

Posted by Julie MacNaught <jm...@apache.org>.
This is a bug because a clone should be allowed even when registration 
is not required.  The clone should be scoped by a "null" registration.

Julie MacNaught wrote:
> A clone can't happen without a registration context.  The question is 
> why is the portlet getting cloned?
> 
> I looked at the code, and there is some handling in 
> performBlockingInteraction which checks the portletStateChange flag. 
> Oddly, if the portletStateChange flag is readOnly, then it tries to 
> clone the portlet.  This doesn't seem to make sense, but there is a 
> comment which suggests that this is necessary because of JSR168 
> portlets.  This is going to take more research, but it looks like a bug.
> 
> However, looking at the code, if you set the portletStateChange flag to 
> readWrite, it will make it through PBI without getting cloned.  I guess 
> you could try this.
> 
> Tali Garsiel wrote:
>> Hi,
>>
>>  
>>
>> I'm new to WSRP (and portal technology)
>>
>>  
>>
>> I have the following problem:
>>
>>  
>>
>> My portal is a producer using wsrp4j.
>>
>>  
>>
>> I set registration requirement to false.
>>
>>  
>>
>> The consumer sends me empty registration context.
>>
>>  
>>
>> When I get a performBlockingInteraction request I get an exception 
>> because:
>>
>>  
>>
>> The portlet instance is ProducerOfferedPortlet
>>
>>  
>>
>>  
>>
>> function handlePortletStateChange (WSRPEngine class) calls clonePortlet
>>
>>  
>>
>>  
>>
>> clonePortlet fails because I have no registrationContext    (line 1174 
>>   -   "String regHandle = 
>> request.getRegistrationContext().getRegistrationHandle();)
>>
>>  
>>
>>  
>>
>> I want to know
>>
>>  
>>
>> Is it a bug ? or should I require registration ?
>>
>>  
>>
>>  
>>
>> Thanks, Tali
>>
>>  
>>
>>
>> ______________________________________________________________________
>> This email has been scanned by the MessageLabs Email Security System.
>> For more information please visit http://www.messagelabs.com/email
>> ______________________________________________________________________
> 

-- 
Julie MacNaught
IBM Research
jmacna@apache.org
jmacna@us.ibm.com
DADB E3B5 8CB7 6B9B F4A0  8BF7 E830 1848 16A8 D3AB


Re: consumer registration

Posted by Julie MacNaught <jm...@apache.org>.
A clone can't happen without a registration context.  The question is 
why is the portlet getting cloned?

I looked at the code, and there is some handling in 
performBlockingInteraction which checks the portletStateChange flag. 
Oddly, if the portletStateChange flag is readOnly, then it tries to 
clone the portlet.  This doesn't seem to make sense, but there is a 
comment which suggests that this is necessary because of JSR168 
portlets.  This is going to take more research, but it looks like a bug.

However, looking at the code, if you set the portletStateChange flag to 
readWrite, it will make it through PBI without getting cloned.  I guess 
you could try this.

Tali Garsiel wrote:
> Hi,
> 
>  
> 
> I'm new to WSRP (and portal technology)
> 
>  
> 
> I have the following problem:
> 
>  
> 
> My portal is a producer using wsrp4j.
> 
>  
> 
> I set registration requirement to false.
> 
>  
> 
> The consumer sends me empty registration context.
> 
>  
> 
> When I get a performBlockingInteraction request I get an exception because:
> 
>  
> 
> The portlet instance is ProducerOfferedPortlet
> 
>  
> 
>  
> 
> function handlePortletStateChange (WSRPEngine class) calls clonePortlet
> 
>  
> 
>  
> 
> clonePortlet fails because I have no registrationContext    (line 1174 
>   -   "String regHandle = 
> request.getRegistrationContext().getRegistrationHandle();)
> 
>  
> 
>  
> 
> I want to know
> 
>  
> 
> Is it a bug ? or should I require registration ?
> 
>  
> 
>  
> 
> Thanks, Tali
> 
>  
> 
> 
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________

-- 
Julie MacNaught
IBM Research
jmacna@apache.org
jmacna@us.ibm.com
DADB E3B5 8CB7 6B9B F4A0  8BF7 E830 1848 16A8 D3AB