Re: Inbound / Outbound communication in JCA 1.5

David Jencks <[email protected]> Wed, 22 Jan 2003 14:01:47 -0500
Newsgroups gmane.comp.java.sun.connector
Message-ID <[email protected]>
On Wednesday, January 22, 2003, at 01:48 PM, Gyhra, Norman wrote:

> Hello!
>
> I am a bit confused after reading several contradicting
> statements about the kind of communication that JCA 1.5
> will support.
>
> I hope that someone on the list can tell me something
> about:
>
> * Asynchronous outbound:
>   How can I initiate asynchronous communication
>   with an EIS using the Connector Architecture?

This is not explicitly supported.  You could make the asynchronous
input to the EIS appear to be a message queue and write a jca 1.0
adapter that exposes this queue.

>
> * Synchronous inbound:
>   How can my J2EE application be synchronously called
>   by an EIS through the Connector Architecture?

Work interface/contracts.  Once your adapter is deployed, it can use
all the jca contracts.  Your Work implementation can return the results
directly or you can use the WorkListener to notify some other part of
the adapter that return results are ready.  If you are happy with one
invocation at a time, you can just have one thread in your adapter that
directly calls ejbs or whatever in the app server.  Even in this case
you should get the listening thread from the WorkManager.

david jencks

>
> The specification does not explicitly mention these forms
> of communication so I assume they are not supported by
> the standard.

Hmm, I thought the Work contracts were discussed.
>
> Thanks for any help.
>
> Regards,
> Norman Gyhra
>
> =======================================================================
> ====
> To unsubscribe, send email to [email protected] and include in the
> body
> of the message "signoff CONNECTOR-INTEREST".  For general help, send
> email to
> [email protected] and include in the body of the message "help".
>

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff CONNECTOR-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".