axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eranga Jayasundera (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-1998) EJB provider is not available for Axis2
Date Thu, 18 Jan 2007 13:21:30 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-1998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eranga Jayasundera resolved AXIS2-1998.
---------------------------------------

    Resolution: Fixed

I have ported the Axis 1 EJB provider to Axis2. I introduced the following message receivers
to work with EJBs. These message receivers extend the corresponding RPC message receivers.

org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver
org.apache.axis2.rpc.receivers.ejb.EJBInOutAsyncMessageReceiver
org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver

Here is an example for the structure of a valid aar file.

SampleEJBService.aar
  |
  +--META-INF
  |    +--services.xml
  |    +--SampleEJBService.wsdl
  |
  +--lib
  |    +--[jars used by the ejb client eg.initial context factory classes]
  |
  +--[home/remote/local interface classes]

Sample services.xml will look like this.

<serviceGroup>
    <service name="SampleEJBService">
        <description>description</description>
        <messageReceivers>
             <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.ejb.EJBInOnlyMessageReceiver"/>
             <messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver"/>
        </messageReceivers>
        <parameter name="remoteInterfaceName">simplessbean.SampleEJBService</parameter>
        <parameter name="homeInterfaceName">simplessbean.SampleEJBServiceHome</parameter>
        <parameter name="beanJndiName">/SampleEJBServiceBean</parameter>
        <parameter name="providerUrl">127.0.0.1:4201</parameter>
        <parameter name="jndiContextClass">org.openejb.client.JNDIContext</parameter>
    </service>
</serviceGroup>

The available parameters are as follows.
	beanJndiName
	homeInterfaceName
	remoteInterfaceName
	localHomeInterfaceName
	localInterfaceName
	jndiContextClass
	providerUrl
	jndiUser
	jndiPassword
	
Known issues: Currently wsdl is generated only for RPC message receivers. This feature does
not work with EJB message providers.

Patch file is attached.  


> EJB provider is not available for Axis2
> ---------------------------------------
>
>                 Key: AXIS2-1998
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1998
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: New Feature
>          Components: rpc
>    Affects Versions: nightly
>            Reporter: Eranga Jayasundera
>            Priority: Minor
>             Fix For: nightly
>
>         Attachments: ejb_msg_recvr.patch
>
>
> Axis 1 comes with an EJB provider. But there is no EJB provider in Axis2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message