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:bean-autodeployedbean-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



Reply via email to