You can download sample portlets from portletswap.
For 2.2 it's this:
For 2.4 it's this:
Have a look at the different jboss-service.xml files and you can figure out the packaging by opening the .sar file. I packaged my sar in an ear to avoid problems when restarting the portal.
Please let me know how you get on - I've been having problems redirecting an event.
For portal 2.6.3 bundle there's no IPC documentation.
The link http://docs.jboss.com/jbportal/v2.6/reference-guide/en/html/ipc.html does not exist any more.
The sample code at http://labs.jboss.com/portal/portletswap/portlets_tutorial.html does not work since the next snippet of portletA does no work:
PortalNode thisNode = req.getPortalNode().getParent(); // will return this Page as a node. PortalNode linkToNode = thisNode.resolve("../default"); PortalNodeURL pageURL = resp.createRenderURL(linkToNode);
The nodes 'default' and 'IPC' don't exist, only the instance 'HelloWorldPortletAWindow' is resolved.
The portlet is made for 2.4 as stated:
"Preconfigured for JBoss Portal 2.4+"
What do you mean? There's no IPC support for portal 2.6.3? Any plans to update the documentation and tutorials?
I just meant that the example you r are talkaing about is made for 24.x.
For 2.6.x look at the samples and look at the reference documentation (Portal API)
Thanks for your response, but on my first message I tried to make clear that no tutorials and examples exist for Portal 2.6.3's IPC.
Please let me know where 2.6.3 IPC doc. could be found.
12.8.2. Achieving Inter Portlet Communication with the events mechanism