Thong Le wrote:
> Dear members,
>
> I hope you can provide me a solution to my question. We are
> using XML to support client conversation with EJB (via IIOP).
> The client would pass an XML string containing the class name and
> method invocation parameters. A singleton Session Bean (Factory
> bean) will parse the XML string and extract the class name and
> invocation parameters and call the appropriate EJBean(the EJBean
> does whatever and returns the result back to the Factory Bean as
> an XML string which then passes to the client). There are many
> EJBeans register in the same container. My question is how to
> invoke the appropriate EJBean dynamically. An example will
> explain what I mean:
>
> Client will pass the following XML to the Factory Bean:
>
> <QUERY>
> <APPHOME>Jndi_CheckingAcct</APPHOME>
> <USERINPUT>
> <account_id>1002</account_id>
> </USERINPUT>
> </QUERY>
<snip>
This is a VERY good idea!
I would like to cast a vote in favour of a Java/XML standard for doing invoking
EJBs via XML, so that all EJB containers/servers would provide the capability in
a compatible way. I would envisage that security, transaction and session
context information would all be encoded in the XML so that the XML request is
truely transport-independent.
Ian McCallion
CICS Business Unit
IBM Hursley
[EMAIL PROTECTED]
Tel: ++44-1962-818065
Fax: ++44-1962-818069
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".