cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jiang Ning <ning.ji...@iona.com>
Subject Re: [jira] Created: (CXF-164) EndpointInvocationHandler doesn't support cache mechanism
Date Tue, 24 Oct 2006 08:31:10 GMT
JCA Application server implementation had an connection pool to cache 
the created connection, so the hash() method will be called by 
Application Server .
In the EndpointInvocationHandler the hash() method was treated as the 
proxy object wsdl operation,
and will throw a WebServiceException "Could not find operation info for 
web method"

so we need to take out Object class base method in the Handler when the 
proxy object was created by container to avoid this execption.
[ Show ยป <https://issues.apache.org/jira/browse/CXF-164?page=comments> ]
willem Jiang 
<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=njiang> 
[24/Oct/06 12:59 AM]  JCA Application server implementation had an 
connection pool to cache the created connection, so the hash() method 
will be called by Application Server . In the EndpointInvocationHandler 
the hash() method was treated as the proxy object wsdl operation, and 
will throw a WebServiceException "Could not find operation info for web 
method" so we need to take out Object class base method in the Handler 
when the proxy object was created by container to avoid this execption.

Just like

 if (method.getDeclaringClass().equals(BindingProvider.class)
      || method.getDeclaringClass().equals(BindingProviderImpl.class)
      || method.getDeclaringClass().equals(Object.class)) {
                return method.invoke(this);
            }

Willem


unrealjiang (JIRA) wrote:

>EndpointInvocationHandler doesn't support cache mechanism
>---------------------------------------------------------
>
>                 Key: CXF-164
>                 URL: http://issues.apache.org/jira/browse/CXF-164
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0-M1
>            Reporter: unrealjiang
>
>
>EndpointInvocationHandler doesn't support cache mechanism.  If an application need cache
an endpoint like jca connection management, EndpintInvocation can not return a correct result.
>
>  
>

-- 
Willem Jiang
Software Engineer

IONA Asia Pacific Software Development Center
2/F, Unit A, Information Center
Zhongguancun Software Park Haidian District,
Beijing, P.R.China (100094)

Tel: +86-10-82825151 - 523
Fax: +86-10-82825210
Email: ning.jiang@iona.com



Mime
View raw message