hi there,
I have faced the same issue as you do.
The quick solution:
Look into the Jboss Portal Reference Guide 2.6
(
http://docs.jboss.com/jbportal/v2.6/reference-guide/en/html_single/#ipc). There you find
the correct link to the HelloWorldIPC sample:
http://anonsvn.jboss.org/repos/portletswap/portlets/2_4/bundles/HelloWorl...
I've tested the included SAR-File helloworldipcportlet.sar with Jboss-Portal-2.4.0 and
it works immediately, no exceptions show up in the log file. In fact, this is really a
nice feature to have.
Issues I've found:
Regarding Jboss Portal 2.2.1:
The provided HelloWorldIPC sample mentioned in the Reference Doc
(
http://labs.jboss.com/file-access/default/members/portletswap/downloads/p...)
does not work with Jboss Portal 2.2.1 SP3.
You get the following exception:
java.lang.NoSuchMethodError:
org.jboss.portlet.event.node.WindowActionEvent.getParameters()Lorg/jboss/portal/server/util/Parameters;
org.jboss.portlet.hello.HelloWorldPortletB$Listener.onEvent(Unknown Source)
It seems that the sample requires a method which has not been implemented in
Jboss-Portal-2.2.1.
I've inspected the source and found that WindowActionEvent derives from WindowEvent,
which supports HashMap getParameters(), but not Parameters getParameter(). This is
probably the reason, but I don't know how to fix.
Regarding Jboss Portal 2.4-documentation:
However, the IPC chapter has been (apparently accidentally) completely removed from the
Jboss Portal 2.4-documentation
(
http://docs.jboss.com/jbportal/v2.4/reference-guide/en/html_single/#ipc), althougth IPC
is mentioned in the feature list at the beginning.
Regarding Jboss Portal 2.6DR:
The sample of HelloWorldIPC for 2.4 works, but only after deployed HOT. If you deploy it
before startup, there are definitely lots of classloading-related exceptions.
best regards,
johannes
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3990790#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...