Hello,
I am implementing web services using the simplest XFire configuration 
(i.e. add org.codehaus.xfire.transport.http.XFireConfigurableServlet to 
web.xml, create a services.xml etc. just as in the examples.) 

I would like to define database resources in services.xml, e.g.

  <bean id="fooDataSource" 
class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="resourceRef"><value>true</value></property>
    <property name="jndiName" value="jdbc/foo" />
  </bean>

and have these be available to the web service implementation. I found 
documentation here:

http://docs.codehaus.org/display/XFIRE/Spring,+XBean,+Servlets+and+more

which suggests that I can define a Map of properties like this:

<service>
  ... define your normal attributes ...
  <properties>
    <property key="mtom-enabled">true</property>
    <property key="myProperty">myValue</property>
  <properties>
</service>

I guess these are injected into the ServiceBean, but how do I access these 
properties from the web service implementation? I thought perhaps they 
would be available in the MessageContext but they don't seem to be.

Any answers, pointers to documentation, or constructive suggestions 
appreciated. (Documentation clearly explaining the overall architecture 
and data flow of XFire would be especially appreciated.)

Thanks,
- Joe

-- 
Joe Morrison
Deutsche Bank, 60 Wall Street, 8th floor 
office: +1 (212) 250-8486        mobile: +1 (917) 952-2935


---

This e-mail may contain confidential and/or privileged information. If you 
are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail. Any 
unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden.

Reply via email to