Hi Guillaume,

Guillaume Nodet wrote:
[...]
>> When using a xbean.xml one has to deploy the SU to servicemix-eip but one 
>> cannot
>> define the beans that are refered in the routing slips really? These would 
>> have
>> to be deployed in a separate SU that uses servicemix-lwcontainer, right?
>> Because when one tries to deploy a servicemix.xml one gets
> 
> Right

ok, so here is a xbean.xml that is deployed to the component servicemix-eip

--- SU xbean.xml

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
  xmlns:bes="http://blue-elephant-systems.com/midas/servicemix/1.0";>

  <eip:wire-tap service="bes:request-start" endpoint="endpoint">
    <eip:target>
      <eip:exchange-target service="bes:dispatcher"/>
    </eip:target>
    <eip:inListener>
      <eip:exchange-target service="bes:request-audit"/>
    </eip:inListener>
  </eip:wire-tap>
...
</beans>

--- SA jbi.xml

<jbi xmlns="http://java.sun.com/xml/ns/jbi"; version="1.0">
  <service-assembly>
    <identification>
      <name>midas-becore</name>
      <description>MIDAS Core Backend</description>
    </identification>
...
    <service-unit>
      <identification>
        <name>midas-bedispatch</name>
        <description>MIDAS Request Dispatching</description>
      </identification>
      <target>
        <artifacts-zip>midas-bedispatch-su.zip</artifacts-zip>
        <component-name>servicemix-eip</component-name>
      </target>
    </service-unit>
  </service-assembly>
</jbi>
---

But still the error is saying that it does not accept deployments:

<jbi-task version="1.0" 
xmlns="http://java.sun.com/xml/ns/jbi/management-message";>
<jbi-task-result>
<frmwk-task-result>
<frmwk-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg>
<msg-loc-info>
<loc-token/>
<loc-message>Target component servicemix-eip for service unit midas-wadispatch
does not accept deployments</loc-message>
</msg-loc-info>
</task-status-msg>
</task-result-details>
</frmwk-task-result-details>
</frmwk-task-result>
</jbi-task-result>
</jbi-task>

        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:120)
        at
org.apache.servicemix.jbi.framework.ManagementSupport.failure(ManagementSupport.java:102)
        at
org.apache.servicemix.jbi.framework.DeploymentService.deployServiceAssembly(DeploymentService.java:483)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:257)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDeploymentService.java:507)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:534)
27 Apr 2006 13:01:03,850 [Thread-25] DEBUG (AbstractFlow.java [resume]:144) -
Called Flow resume
27 Apr 2006 13:01:03,851 [Thread-25] WARN  (AutoDeploymentService.java
[run]:511) - Directory: deploy: Automatic install of
/home/pak/sandbox/incubator-servicemix-3.0-SNAPSHOT/deploy/midas-wacore-sa.zip
failed
javax.jbi.management.DeploymentException: Failed to update Service Assembly:
midas-wacore
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService.updateArchive(AutoDeploymentService.java:272)
        at
org.apache.servicemix.jbi.framework.AutoDeploymentService$2.run(AutoDeploymentService.java:507)
        at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:291)
        at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.Exception: <?xml version="1.0" encoding="UTF-8"?>


Can you help please?

Peter

Reply via email to