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.
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.
perhaps JBoss Portal can set a specific request property that would give the instance id ?
Would be nice.
can you create a jira task for it and assign it wtih 2.2 and 2.0 ?
I also need to access the portlet instance id. Has this been fixed?