Bruce,
  Thanks for reply. Please tell me how do I know 
  1) which are jbi compliant components and which components could be deployed 
to lwcontainer. 
  2)Are there some limitations of using lwcontainer compared to servicemix-web ?
  3) please point me to document/link for understanding such issues. 
  Thanks
  Kumar

Bruce Snyder <[EMAIL PROTECTED]> wrote:
  On 9/14/07, kumar k wrote:
> Code
> ---------------------------
> public void sendMessages(Source sc) throws MessagingException {
> try{
>
> getClientFactory();
> ServiceMixClient clientNoRouting = (ServiceMixClient) 
> context.getBean("clientWithRouting");
> Map properties = new HashMap();
> properties.put("name", "James");
>
> clientNoRouting.send(null, null, properties, "world");
>
> }catch(Throwable e){
> e.printStackTrace();
> }
> }
> protected void getClientFactory() throws Exception {
> context = createBeanFactory();
> client = getClient();
> SpringJBIContainer jbi = (SpringJBIContainer) getBean("jbi");
>
> }
> protected ServiceMixClient getClient() throws Exception {
> return (ServiceMixClient) getBean("client");
> }
>
> protected Object getBean(String name) {
> Object answer = context.getBean(name);
> return answer;
> }
>
> protected AbstractXmlApplicationContext createBeanFactory() {
> return new ClassPathXmlApplicationContext("resources/servicemix.xml");
> }
> -------------------------------------------------------------------------------------------------
> ServiceMix.xml
> ------------------------
> 
> >       Licensed to the Apache Software Foundation (ASF) under one or more
>     contributor license agreements.  See the NOTICE file distributed with
>     this work for additional information regarding copyright ownership.
>     The ASF licenses this file to You under the Apache License, Version 2.0
>     (the "License"); you may not use this file except in compliance with
>     the License.  You may obtain a copy of the License at
>          http://www.apache.org/licenses/LICENSE-2.0
>       Unless required by applicable law or agreed to in writing, software
>     distributed under the License is distributed on an "AS IS" BASIS,
>     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>     See the License for the specific language governing permissions and
>     limitations under the License.
>   -->
> > xmlns:jms="http://servicemix.apache.org/jms/1.0";
> xmlns:amq="http://activemq.org/config/1.0";
> xmlns:test2="http://servicemix.apache.org/test2";
> xmlns:test5="http://servicemix.apache.org/test5";
> xmlns:sub2="http://subp"; >
> 
> 
> 
> 
> 
> 
> 
> > endpoint="MyConsumer"
> targetService="sub2:receiver"
> targetEndpoint="receiver"
> role="consumer"
> destinationStyle="topic"
> jmsProviderDestinationName="topic.sample"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> connectionFactory="#connectionFactory" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > endpoint="MyProvider"
> role="provider"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> destinationStyle="topic"
> jmsProviderDestinationName="sample.rebuplish.topic"
> connectionFactory="#connectionFactory" />
> 
> 
> 
> 
> 
> 
> 
> 
> > endpoint="MySecondConsumer"
> targetService="sub2:receiver2"
> targetEndpoint="receiver2"
> role="consumer"
> destinationStyle="topic"
> jmsProviderDestinationName="sample.rebuplish.topic"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
> connectionFactory="#connectionFactory" />
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> ---------------------------------------------------------------------------------------------------
> Error
> --------------
> 
> 
> Could not deploy xbean service unit

Seeing the message above and the code above tells me that you're
probably trying to deploy a JBI compliant component to the
servicemix-lwcontainer and this is not possible. JBI compliant
components can only be deployed directly to ServiceMix.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Castor - http://castor.org/


       
---------------------------------
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Reply via email to