Hi, My aim is to write to a File using the File BC.
1)I followed the instructions on http://incubator.apache.org/servicemix/24-beginner-configuring-the-servicemix-file-su.html to create the SU for the service-file BC. Also wrote an SA and deployed onto Servicemix. 2) The xbean.xml of the SU looks as : <beans xmlns:file="http://servicemix.apache.org/file/1.0" xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:myns="http://hellothere.com/jbi/"> <file:sender service="myns:myFile" endpoint="myFile" directory="file:D:/space/svcmix/trial/" > <sm:marshaler> <sm:defaultFileMarshaler> <sm:fileName> <sm:xpathString xpath="concat('testing', '.xml')"/> </sm:fileName> </sm:defaultFileMarshaler> </sm:marshaler> </file:sender> </beans> 3)Because of the above xbean.xml , I assume the File SA can be discovered in the JBI container with the QName : {http://hellothere.com/jbi}myFile. 4)I have written an SE and deployed it into servicemix. The SE code has something as below to discover ServiceEndpoints. ServiceEndpoint serviceEndpoint = getServiceUnit().getComponent().getComponentContext() .getEndpoint(new QName("http://hellothere/jbi","myFile"),myFile ); 5)I find that the above serviceEndpoint is NULL, its unable to find the File SU. I intend to use this variable further down in messageExchange.setEndpoint(serviceEndpoint); to send a message to that endpoint, with the aim of writing the message content. Can someone please advice on the error in my code/SU's xbean.xml.I am not able to figure out how to accomplish this. Thanks for the help Eric. -- View this message in context: http://www.nabble.com/Unable-to-discover-service-endpoint.-tf4486710s12049.html#a12794587 Sent from the ServiceMix - User mailing list archive at Nabble.com.
