-
1. Re: Portlet instantiated twice
leolo Feb 25, 2010 3:16 AM (in response to leolo)I've created a test-war. Can someone confirm the issue?
My system: GateIn 3.0.0 CR1 with JBoss AS 5.1.0 JDK6 (zip) on Windows XP.
-
DoubleAction.war 2.7 KB
-
-
2. Re: Portlet instantiated twice
theute Feb 25, 2010 3:30 AM (in response to leolo)Excellent, thanks.
If you have some time, can you try after you delete server/default/gatein-sample* ? And see if you have the same behaviour
-
3. Re: Portlet instantiated twice
leolo Feb 25, 2010 3:44 AM (in response to theute)Hi,
I've deleted
\GateIn-3.0.0-CR01\server\default\deploy\gatein-sample-extension.ear
and
\GateIn-3.0.0-CR01\server\default\deploy\gatein-sample-portal.ear
It's okay now!
-
4. Re: Portlet instantiated twice
theute Feb 25, 2010 3:58 AM (in response to leolo)I didn't think of it first, but that's expected.
gatein-sample-portal is a completely disconnected context for portals.
By default it's accessible through http://localhost:8080/sample-portal
-
5. Re: Portlet instantiated twice
leolo Feb 26, 2010 3:20 AM (in response to theute)Is this sample-portal-context just a testing-thingi or is the "gatein-standard-technology" used for it, to manage multiple portal-contexts in parallel? (like virtual hosts/portals)
If the latter is the case, all deployed war-files will get deployed in all available portal-contexts? I can't say warfile1 goes only to context 1?
-
6. Re: Portlet instantiated twice
theute Feb 26, 2010 3:32 AM (in response to leolo)It's a new feature, not a test.
It's 1 app server so the app is deployed in the app server and can be available to all portal contexts.
Now, there is 1 application registry per portal context, so the admin can decide which portlets are made available for people who create the pages. It gives you that flexibility. That said you cannot (yet) limit per portal context what applications the admin can add to the application registry.
To summarize:
All portlets are deployed and mae available in all portal contexts --> Admins filter what they want to make available to page editors for their portal context -> Page editors see a limited set of applications and can build a page with those.
(Yes this needs to be documented, if someone wants to help we have unauthored/unpublished doc to translate into docbook please ping me (requires to filter out info about internal details, to make a developer friendly doc))
I hope this answers your question.
-
7. Re: Portlet instantiated twice
leolo Feb 26, 2010 3:59 AM (in response to theute)Yes, that answers my question. Thanks!