views:

124

answers:

3

I'm wondering about Spring 3.0 whether it provides an automatically generated service definition page after I defined services.

With SOAP we have a WSDL file which contains WHAT, HOW and WHERE we can call a service.

Is that possible with Spring 3.0 or not?

A: 

You can use an MBeanExporter to expose all of your services via JMX, which would be viewable through a JMX dashboard on your container (IE Tomcat, Jboss, etc). This is an easy way to account for 'what is deployed'. Your question is not entirely clear what sort of artifact you're looking for though.

<bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
     <property name="autodetect" value="true"/>
</bean>

Will automatically export all of your defined beans as MBeans. Usually that's not entirely what you want, so alternatively, you'll specify them manually.

 <bean id="exporter" class="org.springframework.jmx.export.MBeanExporter">
    <property name="beans">
       <map>
         <entry key="bean:name=testBean1" value-ref="testBean"/>
       </map>
    </property>
 </bean>
jcalvert