Announcement Announcement Module
Collapse
No announcement yet.
jaxrpc client webservice JNDI proxy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Many thanks!

      That's great!

      Comment

      Working...
      X