Daly, John (Boise IPG-IT) wrote:
Dan,

My proxy-to-hibernate mapping problems are still biting me and so I want to 
clarify a couple of things:

1) I assumed by your example that to accomplish the mapping you set the 
properties on your ServiceBean (i.e. in my case XEchoServiceBean, is this 
correct? Btw, I don't override any methods in XEchoServiceBean, but use this 
approach so that I have a place to hang my Xdoclet @spring tags to generated my 
spring application context file.

2) I noticed in your example, you used the keyword "implementation" as in" 
com.hp.ipgit.ssa.echoservice.model.IEcho.implementation", is this keyword required or could it should it 
be " com.hp.ipgit.ssa.echoservice.model.IEcho"?

This is required.
3) Is there anyway to know (logging/debug messages) that indicate the 
properties specified have been loaded? Or a way to determine if ServiceBean 
recognized the specified properties and applied them?

I don't think so right now.
4) Does my XEchoServiceBean below look correct?
b) Below you'll find my ServiceBean configuration, does this look correct?

<bean
      id="XEchoServiceBean"
      class="com.hp.ipgit.ssa.echoservice.remoting.xfire.EchoServiceBean"
  >

Why do you have your own ServiceBean class? You should just be able to use org.codehaus.xfire.spring.ServiceBean.
    <property name="serviceBean">
      <ref bean="EchoWebService"/>
    </property>
    <property name="serviceClass">
      <value>com.hp.ipgit.ssa.echoservice.remoting.xfire.IEchoWebService</value>
    </property>
    <property name="inHandlers">
      <list>
        <value>addressingHandler</value>
      </list>
    </property>
This handler isn't needed, it was just in there as an example.
                <property name="properties">
                <props>
                        <prop 
key="com.hp.ipgit.ssa.echoservice.model.IEcho.implementation">
                            com.hp.ipgit.ssa.echoservice.model.Echo
                    </prop>
                        <prop 
key="com.hp.ipgit.ssa.model.query.IQuery.implementation">
                            com.hp.ipgit.ssa.model.query.impl.Query
                    </prop>
            </props>
       </property>
This needs to be a Map, not a property set.
  </bean>


Hope that helps.
Regards,
- Dan

--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog

Reply via email to