Application Integration
- Application Integration
- All Products
public interface org.activebpel.wsio.receive.IAeMessageQueue { /**) * Delivers the message to the BPEL engine's message queue. * * @param aData * @param aContext * @return IAeWebServiceResponse * @throws RemoteException * @throws AeRequestException */ queueReceiveData (org.activebpel.wsio.IAeWebServiceMessageData aData, org.activebpel.wsio.receive.IAeMessageContext aContext) throws RemoteException, org.activebpel.wsio.receive.AeRequestException;
InitialContext ctx = new InitialContext(); object home = ctx.lookup("ejb/AeMessageQueueBean"); Home = (AeMessageQueueHome) portableRemoteObject.narrow(home,AeMessageQueueHome.class); eMessageQueueRemote msgQueueBean = mHome.create();
AeMessageContext Parameters
| Description
|
---|---|
setProcessName
| Process
Qname . The
Qname includes the namespace plus the local part of the process name. In a BPEL source file, this is the target namespace.
Note : You can specify a service name instead of a process/partnerlink name. For a discussion of service name, see
Standard for Java-based Service Endpoints for Process Consumer (My Role) Partner Links.
|
setPartnerLinkName
| Partner link name from the BPEL process
|
setServiceName
| Optional. As an alternative to setting the process and partner link name, you may specify the My Role (Process Consumer) service name. This name is in the Process Deployment Descriptor Editor on the Partner Links page and is also on the Service Definitions page in the Process Console.
This property is mutually exclusive with the process name and only one or the other may be set on the context.
|
setOperation
| Operation from the
portType of the partner link type defined for My Role
|
setProcessVersion
| Optional . Messages are sent to the current process if a process version is not specified.
|
setPrincipal
| Optional . This value is used by the engine for performing lookups on deployed partner definitions when using the "Principal" endpoint type. Identifies the principal name value for inbound messages. Processes that include human tasks also use this value to identify the process initiator.
|
// Create the message context object for the request / containing the routing information for the process eMessageContext context = new AeMessageContext(); context.setProcessName(new QName(aProcessNamespace,aProcessName)); context.setPartnerLink(aPartnerLink); context.setOperation(aOperation);
AeWebServiceMessageData Parameters
| Description
|
---|---|
Constructor QName
| The
QName specified in the constructor corresponds to the
QName of the WSDL message associated with the input message
|
setData
| Each message part is defined in this parameter. Message parts must be primitive types like strings, integers, or XML passed as DOM Document object. Complex types get passed as documents. The XML document must conform to the schema definition of the complex type. If a message has correlated properties in it, the engine extracts these properties using the property aliases and routes the message to the correct process instance.
|
<wsdl:message name="creditInformationMessage"> <wsdl:part name="part1" element="tns:LoanProcessRequest" /> <wsdl:part name="part2" element="tns:LoanProcessAddress" /> </wsdl:message>
AeWebServiceMessageData data = new AeWebServiceMessageData (new QName("http://tempuri.org/services/loandefinitions","creditInformationMessage")); data.setData("part1", domOfLoanProcessRequest); data.setData("part2", domOfLoanProcessAddress);
IAeWebServiceResponse response = msgQueueBean.queueReceiveData(data,context);
IAeWebServiceResponse Paramete r
| Description
|
---|---|
getMessageData()
| Message data returned from the invoke. See the description of
AeWebServiceMessageData for details.
|
isFaultResponse()
| Return true if the response wraps a fault
|
getErrorCode()
| Accessor for the error code
QName
|
getErrorString()
| Returns an error message associated with the fault or null if there is none
|
getErrorDetail()
| Returns a stack trace or other detailed information associated with the fault or null if there was none
|
getRootCause()
| Returns a Throwable that is the root cause of the error code
|
getBusinessProcessProperties()
| Return a Map of (string) name/value pairs from the business process
|