axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Dennigan (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4802) Service can't contain methods with same names as those in EJBObject if RPCMessageReceiver is used
Date Thu, 26 Aug 2010 10:23:54 GMT
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


Mime
View raw message