cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glynn, Eoghan" <eoghan.gl...@iona.com>
Subject RE: Generic client config [WAS: svn commit: r525667]
Date Wed, 11 Apr 2007 16:54:09 GMT


Hi Dan,

A couple more quick questions on this <jaxws:client> config ...

1. How does the <jaxws:client> id attribute relate to the target port
name? e.g. id="MyPort", or id="MyService/MyPort", or
id="{http://myNamespace}MyService/MyPort", or some wildcarded variant,
or something else entirely?

2. How does the lifecycle of the Spring-loaded <jaxws:client> bean
instance relate to JAX-WS proxies created on demand, i.e. via
Service.getPort()? Unless I'm missing something, the Spring-loaded
<jaxws:client> instance seems to be created upfront from the
ApplicationContext when the Bus is being init'd. How is this client
instance then related to the (distinct?) client instances created as a
result of subsequent calls to Service.getPort()? 

The answer to #2 may well follow on from #1. Its not really clear to me
from your JAX-WS SpringBeansTest which uses an ApplicationContext
directly to retrieve the Client instance instead of using
Service.getPort() (which obviously is what JAX-WS application writers
would normally want to do).

Thanks,
Eoghan 

> -----Original Message-----
> From: Dan Diephouse [mailto:dan@envoisolutions.com] 
> Sent: 05 April 2007 19:33
> To: cxf-dev@incubator.apache.org
> Cc: cxf-commits@incubator.apache.org
> Subject: Re: Generic client config [WAS: svn commit: r525667]
> 
> Hiya Eoghan,
> 
> Yes this could be made more generic. Its been more a time 
> thing than anything. There is support for specifying 
> interceptors on the <jaxws:endpoint> bean as well. But a 
> <cxf:bus> bean would be great too.
> 
> Just a side note - <jaxws:client/> gets applied to to the 
> JaxWsProxyFactoryBean, not the Client instance itself.
> 
> - Dan
> 
> On 4/5/07, Glynn, Eoghan <eoghan.glynn@iona.com> wrote:
> >
> >
> >
> >
> > Dan,
> >
> > Quick question about this commit.
> >
> > I presume from the namespace that the <jaxws:client> config bean is 
> > limited to JAX-WS proxies, as opposed to 
> > org.apache.cxf.endpoint.Clients in general, or?
> >
> > Could it be made more generic? Which elements/attributes are 
> > definitely specific to JAX-WS?
> >
> > In particular I'm thinking the {in|out}[Fault]Interceptors elements 
> > should be configurable for any Client, whether JAX-WS or simple. As 
> > all the other client-side InterceptorProviders (Bus, Endpoint, 
> > Binding) are configurable in this way, whereas the generic 
> Client must 
> > seems to be the odd-man-out, needing its interceptor chains to be 
> > specified programmatically.
> >
> > Maybe these generic aspects should be moved to a base bean type for 
> > the generic Client, which is then specialized for JAX-WS?
> >
> > Cheers,
> > Eoghan
> >
> >
> > > -----Original Message-----
> > > From: dandiep@apache.org [mailto:dandiep@apache.org]
> > > Sent: 05 April 2007 02:03
> > > To: cxf-commits@incubator.apache.org
> > > Subject: svn commit: r525667 - in /incubator/cxf/trunk:
> > > api/src/main/java/org/apache/cxf/configuration/
> > > common/common/src/main/java/org/apache/cxf/configuration/sprin
> > > g/ common/common/src/main/java/org/apache/cxf/helpers/
> > > integration/jca/src/main/java/org/apache...
> > >
> > > Author: dandiep
> > > Date: Wed Apr  4 18:03:01 2007
> > > New Revision: 525667
> > >
> > > URL: http://svn.apache.org/viewvc?view=rev&rev=525667
> > > Log:
> > > o Make ServiceImpl use the JaxWsClientFactoryBean instead of 
> > > replicating
> > >   the same code in multiple places.
> > > o Enable <jaxws:client> configuration for both Spring-only and 
> > > ServiceImpl
> > >   cases.
> > > o Add support for setting endpointName & serviceName on 
> > > EndpointFactoryBean.
> > >   EndpointFactoryBean still needs to be unified with 
> > > ServerFactoryBean &
> > >   EndpointImpl somehow. Also I need to add in support for 
> > > configuring a
> > >   EndpointImpl via <jaxws:endpoint>. That should come in my next 
> > > commit.
> > > o Remove http/jms namespaces from SoapBindingFactory 
> configurations. 
> > > Properly
> > >   check for these the JAX-WS binding ids inside 
> > > JaxWsServerFactoryBean and map
> > >   them to the appropriate binding configurations. Now if 
> you select 
> > > the
> > >   SOAP12_MTOM_BINDING, you should actually get a binding 
> with soap 
> > > 1.2 and
> > >   MTOM enabled - although this does need some proper tests.
> > >
> > >
> > > Added:
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/spring/JaxWsProxyFactoryBeanDefinitionParser.java
> > >  (with props)
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/soapServiceConfig.xml   (with props)
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/spring/clients.xml   (with props)
> > > Modified:
> > >
> > > incubator/cxf/trunk/api/src/main/java/org/apache/cxf/configura
> > > tion/Configurer.java
> > >
> > > incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf
> > > /configuration/spring/AbstractBeanDefinitionParser.java
> > >
> > > incubator/cxf/trunk/common/common/src/main/java/org/apache/cxf
> > > /helpers/DOMUtils.java
> > >
> > > incubator/cxf/trunk/integration/jca/src/main/java/org/apache/c
> > > xf/jca/cxf/ManagedConnectionImpl.java
> > >
> > > incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-I
> > > NF/bus-extensions.xml
> > >
> > > incubator/cxf/trunk/rt/bindings/soap/src/main/resources/META-I
> > > NF/cxf/cxf-extension-soap.xml
> > >
> > > incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/confi
> > > guration/NullConfigurer.java
> > >
> > > incubator/cxf/trunk/rt/core/src/main/java/org/apache/cxf/confi
> > > guration/spring/ConfigurerImpl.java
> > >
> > > 
> incubator/cxf/trunk/rt/core/src/main/resources/META-INF/cxf/cxf.xml
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/EndpointImpl.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/JaxWsClientFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/JaxWsProxyFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/JaxWsServerFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/ServiceImpl.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/spring/EndpointFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/spring/EndpointFactoryBeanDefinitionParser.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/java/org/apache
> > > /cxf/jaxws/spring/NamespaceHandler.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/main/resources/org/a
> > > pache/cxf/jaxws/spring/jaxws.xsd
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/CodeFirstTest.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/ServiceImplTest.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/spring/SpringBeansTest.java
> > >
> > > incubator/cxf/trunk/rt/frontend/jaxws/src/test/java/org/apache
> > > /cxf/jaxws/spring/endpoints.xml
> > >
> > > incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apach
> > > e/cxf/frontend/AbstractEndpointFactory.java
> > >
> > > incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apach
> > > e/cxf/frontend/ClientFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apach
> > > e/cxf/frontend/ClientProxyFactoryBean.java
> > >
> > > incubator/cxf/trunk/rt/frontend/simple/src/main/java/org/apach
> > > e/cxf/service/factory/ReflectionServiceFactoryBean.java
> > >     incubator/cxf/trunk/rt/ws/security/pom.xml
> > >
> > > incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/syst
> > > est/bus/SpringBusFactoryTest.java
> > >
> > > incubator/cxf/trunk/systests/src/test/java/org/apache/cxf/syst
> > > est/jaxws/ClientServerTest.java
> > >
> >
> 
> 
> 
> --
> Dan Diephouse
> Envoi Solutions
> http://envoisolutions.com | http://netzooid.com/blog
> 

Mime
View raw message