Thank you. I am facing a problem with the property and the bean. In the first service Implemantation class I have created a property. The PersonImpl now looks like this: package org.apache.servicemix.samples.wsdl_first;
import javax.jws.WebService; import javax.xml.ws.Holder; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.servicemix.jbi.api.ServiceMixClient; import org.apache.servicemix.samples.wsdl_first.types.GetPerson; import org.apache.servicemix.samples.wsdl_first.types.GetPersonResponse; @WebService(serviceName = "PersonService", targetNamespace = "http://servicemix.apache.org/samples/wsdl_first", endpointInterface = "org.apache.servicemix.samples.wsdl_first.Person") public class PersonImpl implements Person { private static final Log log = LogFactory.getLog(PersonImpl.class); protected ServiceMixClient client; public void getPerson(Holder<String> personId, Holder<String> ssn, Holder<String> name) throws UnknownPersonFault { if (personId.value == null || personId.value.length() == 0) { org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault(); fault.setPersonId(personId.value); throw new UnknownPersonFault(null, fault); } log.info("############################"); SendSomething(); log.info("Hello there!"); name.value = "Larry"; ssn.value = "000-000-0000"; } private void SendSomething() { if(second==null)log.fatal("XXXXX!!null!!XXXXXXXXXXXXXXX"); log.info("$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$"); log.info(second.getSecond("LL")); } Second second; public void setSecond(Second second) { log.fatal("XXXXX!!setter!!XXXXXXXXXXXXXXX"); this.second = second; if(second==null)log.fatal("XXXXX!!setter is nulling!!XXXXXXXXXXXXXXX"); if(this.second==null)log.fatal("XXXXX!!setter is nulling and hiding!!XXXXXXXXXXXXXXX"); log.info(second.getSecond("aaa")); } public Second getSecond() { return second; } } and the corresponding xbean : <beans xmlns:cxfse="http://servicemix.apache.org/cxfse/1.0" xmlns:second="http://servicemix.apache.org/samples/wsdl_first"> <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl"> <property name="second"> <cxfse:proxy service="second:SecondService" type="org.apache.servicemix.samples.wsdl_first.Second" /> </property> </bean> <cxfse:endpoint> <cxfse:pojo> <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" /> </cxfse:pojo> </cxfse:endpoint> </beans> I didn't import the type from the package, I just created it again using a new interface also named Second in the package. As service units compile seperately, no compile error came up. But in runtime could it be harmful? My problem is that when the service is deployed the second setter is being called and I can see that the field is gets a not-null value assigned. But, when the SendSomething method is called, the field second is null! When does this happen and why? -- View this message in context: http://www.nabble.com/CXF-BC-response-tp21587850p21624552.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
