Service can't contain methods with same names as those in EJBObject if 
RPCMessageReceiver is used
-------------------------------------------------------------------------------------------------

                 Key: AXIS2-4802
                 URL: https://issues.apache.org/jira/browse/AXIS2-4802
             Project: Axis2
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.5.1
            Reporter: Billy Dennigan
            Priority: Minor


I have an EJB session bean with a method named 'remove' and I have published it 
as a web service using org.apache.axis2.rpc.receivers.ejb.EJBMessageReceiver .
However invoking this method appeared to have no effect while the other methods 
in my service are ok.
The reason is that the code in RPCMessageReceiver.invokeBusinessLogic uses Java 
reflection to locate the method to be invoked and in this case it is finding 
the 'internal' methods from EJBObject methods. So this problem can similarly 
impact methods named 'getHandle', 'getPrimaryKey', etc.

A possible solution would be to iterate up through the class hierarchy of your 
interface, using 'getDeclaredMethods' instead of 'getMethods'.

Thanks.
Billy.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to