bsnyder wrote:
>
> On 8/10/06, UBorba <[EMAIL PROTECTED]> wrote:
>
>
> The key to the error above is the FileNotFoundException which states
> that the servicemix.xml file cannot be found. How are you starting
> ServiceMix?
>
> Bruce
> --
> perl -e 'print
> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> Apache Geronimo - http://geronimo.apache.org/
> Apache ActiveMQ - http://incubator.apache.org/activemq/
> Apache ServiceMix - http://incubator.apache.org/servicemix/
> Castor - http://castor.org/
>
>
I'm doint it via command line:
<prompt> C:\jbi\servicemix\3.0-M2\apache-servicemix-3.0-M2-incubating\bin
servicemix.bat
and to send message with the client:
[code]
public class MyClient {
public static void main(String[] args) throws Exception {
BeanFactory context = new
ClassPathXmlApplicationContext("servicemix.xml");
ServiceMixClient client = (ServiceMixClient)
context.getBean("client");
MessageExchange msgExchange = client.createInOutExchange();
NormalizedMessage inMessage = msgExchange.getMessage("in");
inMessage.setProperty("action", "update");
inMessage.setProperty("entity", "user.role");
client.sendSync(msgExchange);
NormalizedMessage outMessage = msgExchange.getMessage("out");
StringSource src = (StringSource) outMessage.getContent();
src.getText();
}
}
[/code]
Thanks for any help.
--
View this message in context:
http://www.nabble.com/error-msg%3A-INFO%3A-Loading-XML-bean-definitions-from-class-path-resource---tf2084999.html#a5748067
Sent from the ServiceMix - User forum at Nabble.com.