|
| Accessing SCA standalone reference from another EAR |
 |
Fri, 11 Apr 2008 11:19:46 EDT |
Hi,<br />
I have a BPEL module with standalone reference. I have another EAR with a web
project, which has a jsp. How do i access the standalone reference from the
jsp.<br />
The projects have individual EAR's.<br />
<p />
|
| Post Reply
|
| Re: Accessing SCA standalone reference from another EAR |
 |
Sun, 13 Apr 2008 19:24:13 EDT |
|
| Post Reply
|
| Re: Accessing SCA standalone reference from another EAR |
 |
Mon, 14 Apr 2008 01:46:43 EDT |
|
| Post Reply
|
| Re: Accessing SCA standalone reference from another EAR |
 |
Mon, 14 Apr 2008 05:24:06 EDT |
Hi,
Your question is a good question. I don't know how to do this. My workaround is
using other bindings (JMS or Webservice),export your component and creating a
simple java client.
Regards,
|
| Post Reply
|
| Re: Accessing SCA standalone reference from another EAR |
 |
Mon, 14 Apr 2008 16:59:23 +010 |
Code in one EAR can't see an SCA stand-alone reference definition in another
EAR (module).
If your central EAR (web app / jsps) is non-WPS then it can't use the SCA
programming model. As already suggested it must use some other protocol (eg
WebService client with SOAP/HTTP, or send a message via JMS) to invoke the
remote service (with the WPS modules exporting a service with the
corresponding binding).
I haven't tried this myself but I believe the alternative is to make your
central EAR into a WPS Module. The SCA assembly for that module could just
be a stand-alone reference component (with one or more references) and one
or more imports. The JSP can use the prescribed APIs (BOFactory,
ServiceManager etc) with a stand-alone reference to invoke the SCA services
in other modules through the imports and their bindings as if the JSP is an
SCA component. That way you still maintain the separation between the
central EAR and the various services.
--
Stephen Cocks
WESB/WPS Administration
<dwforums@us.ibm.com> wrote in message
news:1135379517.1208152034097.JavaMail.wassrvr@ltsgwas010.sby.ibm.com...
> Appreciate your response. This seems strange. Lets say i have a central
> EAR (non WPS) with a webapp driving many WPS modules packaged in different
> EAR's, what do i do ?
|
| Post Reply
|
|
|
|
|
|
|
|
|
|