You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Billy Dennigan (JIRA)" <ji...@apache.org> on 2010/08/26 12:23:54 UTC

[jira] Created: (AXIS2-4802) Service can't contain methods with same names as those in EJBObject if RPCMessageReceiver is used

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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org