Re: AW: Inbound / Outbound communication in JCA 1.5
David Jencks <[email protected]> Wed, 22 Jan 2003 15:00:35 -0500
| Newsgroups | gmane.comp.java.sun.connector |
|---|---|
| Message-ID | <[email protected]> |
On Wednesday, January 22, 2003, at 02:47 PM, Gyhra, Norman wrote: > Hi David! > >>> * Synchronous inbound: >>> How can my J2EE application be synchronously called >>> by an EIS through the Connector Architecture? >> >> Work interface/contracts. [...] > > As far as I have understood the purpose of the > Work Management Contract, it emulates multi-threading > for the resource adapter, which cannot spawn threads > by itself. The specification does not mention anything > about communication with the EIS. True enough, but I sure don't know how to write something that listens for e.g. socket messages and interprets them as ejb method invocations them without having at least one thread for the listener and a thread pool or factory for the execution threads, should you want concurrent execution of requests. If your EIS already knows how to look up the desired ejb in jndi and use the remote and home interfaces, obviously you don't need an adapter for it to call ejbs. Otherwise I think there are obvious advantages to running whatever does the translation from EIS-speak to ejb invocation in the app server jvm. In this case the Work/WorkManager interfaces seem like the only spec-compatible choice to me. For a rather primitive and unfinished example of this (not in an adapter per se) look at the JBoss TrunkInvoker in cvs head (JBoss 4). david jencks > > It says on page 125: > "Goals: > * Provide a flexible work execution model to handle the > thread needs of a resource adapter. > * Provide a mechanism for an application server to pool > and reuse threads, and to exercise more control over thread > behavior in a managed environment." > > > Regards, > Norman > > ======================================================================= > ==== > 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".