Very thanks your kindness.

i've tried to deploy servicemix-bean su 

 <bean:endpoint bean="#autodeployedBean" />
 <bean id="autodeployedBean"
class="org.apache.servicemix.bean.beans.AutoDeloyedBean"/>

but it was not possible.. with exceptions.

      .............
                                        <loc-message>Endpoint:
Endpoint[service: null, endpoint: null, role: provider] h
as no service name defined</loc-message>
                                       
<stack-trace><![CDATA[java.lang.IllegalArgumentException: Endpoint:
Endpoint[ser
vice: null, endpoint: null, role: provider] has no service name defined
        at
org.apache.servicemix.common.EndpointSupport.getKey(EndpointSupport.java:44)
        at
org.apache.servicemix.common.ServiceUnit.addEndpoint(ServiceUnit.java:134)
        at
org.apache.servicemix.common.xbean.AbstractXBeanDeployer.deploy(AbstractXBeanDeployer.java:93)
        at
org.apache.servicemix.common.BaseServiceUnitManager.doDeploy(BaseServiceUnitManager.java:88)
        at
org.apache.servicemix.common.BaseServiceUnitManager.deploy(BaseServiceUnitManager.java:69)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:527)

................
............

i've even tried to deploy bean with..

<bean:endpoint service="" endpoint="" bean="#autodeployedBean" />
<bean id="autodeployedBean"
class="org.apache.servicemix.bean.beans.AutoDeloyedBean"/>

also , there are exceptions that "can't not find route..." for
autodeployedbean..

How do i can this bean deploy in xbean.xml correctly?
please help me. thanks in advance.






Gert Vanthienen wrote:
> 
> L.S.,
> 
> I always thought that this feature only allows you to configure e.g. 
> service and endpoint with annotations in your source code, instead of in 
> the xbean.xml file, but that the bean classes should still be deployed 
> in a service unit targeted at servicemix-bean.
> 
> Gert
> 
> uniker80 wrote:
>> servicemix-bean su does not have the bean config.
>>
>> does autodeployedbean also need servicemix-bean su config?
>>
>> i've understand that  "autodeployed"  means there is no need to deploy
>> servicemix-bean su.
>>
>> is it misunderstaing?
>>
>>
>>
>>
>>
>>
>>
>>
>> Gert Vanthienen wrote:
>>   
>>> L.S.,
>>>
>>>
>>> Have you added a servicemix-bean SU to hold the bean config?  Can you 
>>> post it's xbean.xml file?  Have you tried checking with a JMX console if 
>>> the service endpoint you expect (test:bean-autodeployedbean-service) is 
>>> in fact there?
>>>
>>>
>>> Gert
>>>
>>> uniker80 wrote:
>>>     
>>>> im trying to deploy autodeployedBean available at  
>>>> http://incubator.apache.org/servicemix/dist/servicemix-3.1-incubating/site/deployables/serviceengines/servicemix-bean/xref-test/org/apache/servicemix/bean/beans/AutoDeployedBean.html
>>>> http://incubator.apache.org/servicemix/dist/servicemix-3.1-incubating/site/deployables/serviceengines/servicemix-bean/xref-test/org/apache/servicemix/bean/beans/AutoDeployedBean.html
>>>> .
>>>>
>>>> i'v configured http endpoint for the bean.
>>>>
>>>> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>>>>        xmlns:test="urn:test">
>>>>
>>>> <http:endpoint service="test:service"
>>>>             endpoint="cheese"
>>>>                  role="consumer" 
>>>>                  locationURI="http://localhost:8196/service/";
>>>>             defaultMep="http://www.w3.org/2004/08/wsdl/in-only";
>>>>             defaultOperation="foo"
>>>>                  soap="true" />     
>>>>
>>>> </bean>
>>>>
>>>> but there is exceptions that..
>>>>
>>>> WARN  - DefaultBroker                  - ServiceName
>>>> ({urn:test}service)
>>>> specified for routing, but can't find it registered
>>>> WARN  - jetty                          - EXCEPTION
>>>> javax.servlet.ServletException: Failed to process request:
>>>> javax.jbi.messaging.M
>>>> essagingException: Could not find route for exchange: InOnly[
>>>>   id: ID:CJHCOM-2074-1183267273343-9:6
>>>>   status: Active
>>>>   role: provider
>>>>   service: {urn:test}bean-autodeployedbean-service
>>>>   operation: foo
>>>>   in: <?xml version="1.0" encoding="UTF-8"?><hello
>>>> xmlns:e="http://schemas.xmlso
>>>> ap.org/soap/envelope/"><one/><two/><three/></hello>
>>>> ] for service: {urn:test}service and interf
>>>> ace: null
>>>>         at
>>>> org.apache.servicemix.http.HttpBridgeServlet.doPost(HttpBridgeServlet
>>>> .java:79)
>>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>         at
>>>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:445
>>>> )
>>>>         at
>>>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3
>>>> 56)
>>>>         at
>>>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:6
>>>> 27)
>>>>
>>>> ........................
>>>> ........
>>>>
>>>> is there any mistakes or error in my code..
>>>> can anyone help me? thanks in advance
>>>>   
>>>>       
>>>
>>>     
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/endpoint-annotation-for-beans-tf4006920s12049.html#a11392156
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to