SOA Suite 11g: How to invoke composite services

another undocumented sample end2end-108-InvokingCompositeServices.zip shows how to invoke composite services via Event, REST, JAX-WS, and Direct Binding.

In a nutshell - you can only invoke what you declare to be invocable via a certain binding. In the sample you will see

<binding.direct> which is the direct, transactional java based binding
<binding.ws> which exposes a service via SOAP/http & rest enables it and
<business-events> which enables an event subscription.

enjoy - and let me know if you run into issues

Comments:

Hi clemens, I have posted this issue on OTN under WebLogic Server - Upgrade / Install / Environment / Migration section as i am migrating a resource adapter from OC4J to weblogic server and also in weblogic-ejb,and in SOA Suite, i did not get any response. I am hitting the below issue when performing inbound transaction. I use the message endpoint api provided by JCA and Oracle(oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl) to pass the messages from the adapter to the invoking BPEL Process. I have created a partner-link service in BPEL similar to File Adapter(Read operation). Also defined the message types and other configurations in wsdl and .jca bindings. When the adapter calls MessageEndpointImpl.onMessage(rec) the control is passed to oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB and i get the below error. Jan 11, 2010 4:05:56 PM com.collaxa.cube.CubeLogger error SEVERE: Error occured while handling a post operation javax.naming.NameNotFoundException: remaining name: env/ejb/local/bpel/CubeDeliveryBean at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:35) at weblogic.j2eeclient.SimpleContext.resolve(SimpleContext.java:39) at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59) at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:59) at weblogic.j2eeclient.SimpleContext.lookup(SimpleContext.java:64) at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45) at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.oracle.bpel.client.util.BeanRegistry.lookupDeliveryLocalBean(BeanRegistry.java:210) at com.oracle.bpel.client.util.BeanCache.getDeliveryLocalBean(BeanCache.java:41) at oracle.fabric.CubeServiceEngine.post(CubeServiceEngine.java:476) at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:142) at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:194) at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:204) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:59) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy195.post(Unknown Source) at oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB.onMessage(AdapterServiceMDB.java:511) at oracle.integration.platform.blocks.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:376) at com.abc.asc.oracle.fusion.adapter.ra.SPIManagedConnectionFactory.integrateMessage(SPIManagedConnectionFactory.java:80) Do i need to create a new Message Driven Bean so that this bean is called instead of oracle.integration.platform.blocks.adapter.fw.jca.mdb.AdapterServiceMDB or this is an internal flow. Any inputs will be really helpful in resolving the issue. I am using SOA 11g. The resource adapter is working fine in OC4J (both outbound and inbound). Thanks, Amith

Posted by Amith on January 20, 2010 at 11:32 PM PST #

Sorry for the late reply - if not resolved yet - please contact me offline, and I'll help you through

Posted by clemens.utschig on March 06, 2010 at 06:58 PM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Tips and tricks straight from the SOA / BPM development team at Oracle HQ

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today