Hallo Team,
I am here with attaching the sample portlet application(maven
project). We are trying to get this project run on Liferay4.3.3 environment.
The required SQL scripts and the additional jars which are not available in
maven repo are as well included.
On deploying the project in Liferay configuration with Tomcat, please
remove the portlet-api.jar from the web-inf/lib folder. This file is already
available with liferay-tomcat bundle and hence can be removed, else
HotDeployException/ClassCastException is thrown on starting tomcat.
Hope this sample project helps in figuring out the exact problem in
configuring Orchestra in Portlet environment.
Regards,
Rashmi
Scott O'Bryan wrote:
>
> Threading is identified in the Portlet Spec when it talks about the
> action and render request lifecycles. I believe JSR-286 puts some
> additional clairifications on this. In general, people who rely on
> things that need to be initialized for the FULL lifecycle in both
> servlet and portlet environments, I suggest they use request
> attributes. They are a bit slower then ThreadLocal but they will work
> and in the Portal environment, they have some additional flexibility.
>
> Things that are safe to put on threadlocal are self-contained items that
> can be recreated lazily from a factory. You just need to know that this
> MAY be more then once for a given request.
>
> Scott
>
> Mario Ivankovits wrote:
>> Hi!
>>
>>> The short answer to your question is no, the bridge won't help you
>>> here. Portlet 1.0 didn't define support for filters or wrapping
>>> request/response objects. Hence initialization done in filters in the
>>> servlet environment should be rewritten/migrated to FacesContextFactory.
>>>
>> This document does not talk about when to release the configured
>> resources again, does it?
>> Is there something in the spec which talks about when to release a
>> ThreadLocal again?
>>
>>
>> Ciao,
>> Mario
>>
>>
>
>
>
http://www.nabble.com/file/p15339091/orchestraPortlet.zip
orchestraPortlet.zip
--
View this message in context:
http://www.nabble.com/Portlet-Environment-and-Orchestra-tp15270215p15339091.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.