-
1. Re: liferay portlet using fuse esb
bsnyder Feb 13, 2008 12:44 PM (in response to vrao)Can someone point me to an example consuming a soap service using the ESB? I am using the liferay portal
I can only assume that you are referring to consuming a SOAP service that is external to the FUSE ESB. Is that correct? If so, then you can use the servicemix-cxf-bc consumer and provider roles together to achieve this. Below is an example:
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0" xmlns:ns1="http://example.com"> <cxfbc:consumer wsdl="http://www.example.com/path/to/wsdl" targetService="ns1:StockQuotes" targetEndpoint="StockQuotesSoap" targetInterface="ns1:StockQuotesSoap"> </cxfbc:consumer> <cxfbc:provider wsdl="http://www.example.com/path/to/wsdl" locationURI="http://www.example.com/path/to/external/web/service/" service="ns1:StockQuotes" endpoint="StockQuotesSoap" interfaceName="ns1:StockQuotesSoap"> </cxfbc:provider> </beans>
The example above forwards calls to the cxfbc:consumer to the cxfbc:provider which proxies those calls to the external web service. Hopefully this is what you need.
Also, I am running the ESB on the same server as the Portal. Is this good practice?
That all depends on how much resources you have on that machine and how much of those resources the ESB and the portal are each going to consume, etc. Chances are you'll need to work around some port conflicts, but that's a minor exercise in configuration that I'm sure you've already overcome.
Bruce
Edited by: bsnyder on Feb 13, 2008 10:44 AM
-
2. Re: liferay portlet using fuse esb
vrao Feb 13, 2008 8:15 AM (in response to bsnyder)Bruce.
Yes, I am trying to consume an external service using a Liferay portlet. If possible, can you take a step back? Am I doing this with a java server faces portlet?
The ESB install (on the liferay server) proceeded without errors..so I assume there were no port conflicts
These are my java ports, which one is for the ESB?:
tcp 0 0 :::50500 :::* LISTEN 4283/java
tcp 0 0 :::8009 :::* LISTEN 4283/java
tcp 0 0 :::1098 :::* LISTEN 4283/java
tcp 0 0 :::139 :::* LISTEN 4283/java
tcp 0 0 :::1099 :::* LISTEN 4283/java
tcp 0 0 :::8080 :::* LISTEN 4283/java
tcp 0 0 :::8083 :::* LISTEN 4283/java
tcp 0 0 :::21 :::* LISTEN 4283/java
tcp 0 0 :::32821 :::* LISTEN 4283/java
tcp 0 0 :::4444 :::* LISTEN 4283/java
tcp 0 0 :::445 :::* LISTEN 4283/java
tcp 0 0 :::8093 :::* LISTEN 4283/java
tcp 0 0 :::4445 :::* LISTEN 4283/java
-
3. Re: liferay portlet using fuse esb
bsnyder Feb 13, 2008 1:43 PM (in response to vrao)The ESB install (on the liferay server) proceeded without errors..so I assume there were no port conflicts
Then don't worry about it. If there are port conflicts you will know because you'll get errors.
These are my java ports, which one is for the ESB?:
tcp 0 0 :::50500 :::* LISTEN 4283/java
tcp 0 0 :::8009 :::* LISTEN 4283/java
tcp 0 0 :::1098 :::* LISTEN 4283/java
tcp 0 0 :::139 :::* LISTEN 4283/java
tcp 0 0 :::1099 :::* LISTEN 4283/java
tcp 0 0 :::8080 :::* LISTEN 4283/java
tcp 0 0 :::8083 :::* LISTEN 4283/java
tcp 0 0 :::21 :::* LISTEN 4283/java
tcp 0 0 :::32821 :::* LISTEN 4283/java
tcp 0 0 :::4444 :::* LISTEN 4283/java
tcp 0 0 :::445 :::* LISTEN 4283/java
tcp 0 0 :::8093 :::* LISTEN 4283/java
tcp 0 0 :::4445 :::* LISTEN 4283/java
By default, the FUSE ESB uses port 1099 to run a RMI registry. But like I said, don't worry about port conflicts if you're not getting errors.
Bruce
-
4. Re: liferay portlet using fuse esb
vrao Feb 14, 2008 9:30 AM (in response to bsnyder)Thanks Bruce
I am still not 100% sure what kind of portlet would be ideal for this, but I will figure it out
-
5. Re: liferay portlet using fuse esb
bsnyder Feb 14, 2008 10:57 AM (in response to vrao)I am still not 100% sure what kind of portlet would be ideal for this, but I will figure it out
I'm not sure what you mean by what kind of portlet? Isn't there only one kind of portlet? And you just write whatever code you need in it according to the portlet spec?
Bruce
-
6. Re: liferay portlet using fuse esb
vrao Feb 15, 2008 10:52 AM (in response to bsnyder)liferay ships with sample portlets for JSF, Struts etc..I was hoping to modify a sample one with my requirements
I actually found something that probably will give me more info :
http://downloads.sourceforge.net/lportal/liferay-portal-servicemix-web-4.4.1.war