-
1. Re: Portlet Instance
mholzner Sep 20, 2005 2:57 PM (in response to patrickdalla)you don't and you shouldn't. The portlet spec actually requires that there is only one instance of the portlet per VM (analogous to a Servlet that doesn't implement SingleThreadModel)
What can be instance related are the preferences. That's all I can think of. -
2. Re: Portlet Instance
patrickdalla Sep 20, 2005 10:10 PM (in response to patrickdalla)I'm developing and portlet class that extends MyFacesPortlet and controls an Hibernate Session.
The hibernate session should be saved in an per portlet-instance basis.
So I need to know which portlet instance is running to get the respective session.
There is no standard way?
The walkthrought i'm choosing is create a portlet preference that represents the name of the portlet instance.
But I think this is not the best choice. -
3. Re: Portlet Instance
julien1 Sep 21, 2005 4:48 AM (in response to patrickdalla)perhaps JBoss Portal can set a specific request property that would give the instance id ?
-
4. Re: Portlet Instance
patrickdalla Sep 21, 2005 7:58 AM (in response to patrickdalla)Would be nice.
-
5. Re: Portlet Instance
julien1 Sep 21, 2005 8:02 AM (in response to patrickdalla)can you create a jira task for it and assign it wtih 2.2 and 2.0 ?
-
6. Re: Portlet Instance
ghyoju Aug 27, 2008 2:39 PM (in response to patrickdalla)Hi,
I also need to access the portlet instance id. Has this been fixed?
Thanks