Results 1 to 3 of 3

Thread: jaxrpc client webservice JNDI proxy

  1. #1
    Join Date
    Dec 2005
    Posts
    12

    Default jaxrpc client webservice JNDI proxy

    Hi All,

    Is there some kind of proxy to use the JAXRPC client stub bound to the JNDI web environment context?

    I'd like some kind of proxy to avoid handling RemoteExceptions and to use my businessInterface not the SEI interface, just like happens with the EJB Remote access.

    Daniel

  2. #2
    Join Date
    Nov 2006
    Location
    Germany
    Posts
    452

    Default

    Hi,

    yes of course.
    You can use the JaxRPCProxyFactoryBean. In that you can pass the Service that is pulled out from the JNDI (instead of a normal bean).

    Here is a small example

    Code:
    <bean id="accountWebService" class="org.springframework.remoting.jaxrpc.JaxRpcPortProxyFactoryBean">
        <property name="serviceInterface" value="example.RemoteAccountService"/>
     <property name="jaxRpcService" ref="myService" />
        <property name="portName" value="AccountPort"/>
    </bean>
    
    <jee:jndi-lookup id="myService" jndi-name="services/myService"/>

    regards
    agim

  3. #3
    Join Date
    Dec 2005
    Posts
    12

    Default

    Many thanks!

    That's great!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •