-
1. Re: WSRP Issue- Liferay and GateIn
claprun Apr 15, 2010 10:18 AM (in response to gateinuser)It looks like Liferay only provides a WSRP 2 endpoint and GateIn currently doesn't support WSRP 2.
-
2. Accessing the WSRP portlet
gateinuser Apr 16, 2010 9:29 AM (in response to claprun)Thanks for the reply Chris.
Now i am trying to access a remote portlet deployed in another GateIn server thro WSRP in my local GateIn server.
I have deployed a HelloWorld portlet in GateIn Server1 and made it remotable(jus by adding <remotable>true</remotable> in portlet.xml) and configured the WSRP producer for registration.
In GateIn server2, i used the WSRP configuration portlet and did the consumer configuration and it showed successful and i activated it aslo.
But now i want to add this configured remote portlet to one of my pages. Here i am stuck. I am not clear where i can find this configured portlet?
Also at what location can we find the WSDL of the remotable portlet in Server1?
-
3. Re: WSRP Issue
gateinuser Apr 19, 2010 2:03 AM (in response to claprun)Hi Chris,
Could you let know where we can find the WSRP configured portlet on the consumer side.
Thanks in Advance
-
4. Re: WSRP Issue
mvanco Apr 27, 2010 3:53 AM (in response to gateinuser)Hi,
for GateIn on producer side, you have to specify remotable portlet in portlet.xml like that:
<portlet>
<portlet-name>BasicPortlet</portlet-name>...<container-runtime-option><name>org.gatein.pc.remotable</name><value>true</value></container-runtime-option></portlet>WSDL for producer can be found at http://hostname:8080/wsrp-producer/MarkupService?wsdl
After you create consumer, you can see remote portlets in Application registry:
- click Portlets, on left side click Remote menu
- or click Categories and do Auto import - category with remote portlet is created.
Then you can simply add remote portlets on page as any other portlets.
Regards,Michal
-
5. Re: WSRP Issue
gateinuser Apr 27, 2010 5:30 AM (in response to mvanco)Michal,
Thanks for your detailed response....it helps lot!