I already have Camel 2.x install and I remove 1.6.x from the list of osgi
components in my servicemix (4.1.0.2)

Here is the result of my osgi list:

s...@root:osgi> list
START LEVEL 100
   ID   State         Spring     Level  Name
[   0] [Active     ] [       ] [    0] System Bundle (1.5.0.r752991)
[   1] [Active     ] [       ] [   10] Apache Felix Prefrences Service
(1.0.2)
[   2] [Active     ] [       ] [   10] Apache ServiceMix Bundles:
jaxp-ri-1.4.2
(1.4.2.2)
[   3] [Active     ] [       ] [   10] Apache ServiceMix Specs :: JAXP API
1.4 (
1.3.0.fuse)
[   4] [Active     ] [       ] [   10] geronimo-annotation_1.0_spec (1.1.1)
[   5] [Active     ] [       ] [   10] OSGi R4 Compendium Bundle (4.1.0)
[   6] [Active     ] [       ] [   10] Apache Felix Configuration Admin
Service
(1.0.4)
[   7] [Active     ] [       ] [   10] geronimo-servlet_2.5_spec (1.1.2)
[   8] [Active     ] [Started] [   40] Apache ServiceMix Kernel :: GShell
Core (
1.1.0.fuse)
[   9] [Active     ] [       ] [    8] OPS4J Pax Logging - API (1.3.0)
[  10] [Active     ] [       ] [    8] OPS4J Pax Logging - Service (1.3.0)
[  11] [Active     ] [       ] [    5] OPS4J Pax Url - wrap: (0.3.3)
[  12] [Active     ] [       ] [    5] OPS4J Pax Url - mvn: (0.3.3)
[  13] [Active     ] [Started] [   30] Apache ServiceMix Kernel ::
Management (1
.1.0.fuse)
[  14] [Active     ] [       ] [   30] spring-osgi-io (1.2.0.m2)
[  15] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: GShell
Admin
(1.1.0.fuse)
[  16] [Active     ] [       ] [   30] Apache ServiceMix Kernel :: JAAS
Config (
1.1.0.fuse)
[  17] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
OSGi C
ommands (1.1.0.fuse)
[  18] [Active     ] [       ] [   30] Apache MINA Core (2.0.0.M6)
[  19] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
Config
Admin Commands (1.1.0.fuse)
[  20] [Active     ] [       ] [   30] Apache Mina SSHD :: Core (0.1.0)
[  21] [Active     ] [       ] [   30] Spring Context (2.5.6)
[  22] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
commons-jexl-1
.1 (1.1.0.1)
[  23] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
commons-httpcl
ient-3.1 (3.1.0.1)
[  24] [Active     ] [       ] [   30] Spring Core (2.5.6)
[  25] [Active     ] [       ] [   30] jmx-impl (1.0.0.r6125-patched)
[  26] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
Featur
es (1.1.0.fuse)
[  27] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
Log Co
mmands (1.1.0.fuse)
[  28] [Active     ] [       ] [   30] jmx (1.0.0.r6125-patched)
[  29] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: GShell
Packag
eAdmin Commands (1.1.0.fuse)
[  30] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
commons-vfs-1.
0 (1.0.0.1)
[  31] [Active     ] [       ] [   30] Spring Beans (2.5.6)
[  32] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
commons-codec-
1.2 (1.2.0.1)
[  33] [Active     ] [       ] [   30] spring-osgi-extender (1.2.0.m2)
[  34] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
jline-0.9.94 (
0.9.94.1)
[  35] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
aopalliance-1.
0 (1.0.0.1)
[  36] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: JAAS
Modules
(1.1.0.fuse)
[  37] [Active     ] [       ] [   30] Spring AOP (2.5.6)
[  38] [Active     ] [       ] [   30] Apache ServiceMix Bundles: oro-2.0.8
(2.0
.8.1)
[  39] [Active     ] [Started] [   30] Apache ServiceMix Kernel :: Spring
Deploy
er (1.1.0.fuse)
[  40] [Active     ] [       ] [   30] spring-osgi-core (1.2.0.m2)
[  41] [Active     ] [       ] [   30] Apache ServiceMix Bundles:
cglib-2.1_3 (2
.1.0.3_2)
[  42] [Active     ] [       ] [   15] Apache ServiceMix Kernel :: File
Monitor
(1.1.0.fuse)
[  43] [Active     ] [       ] [   60] geronimo-jta_1.1_spec (1.1.1)
[  44] [Active     ] [       ] [   60] geronimo-j2ee-connector_1.5_spec
(2.0.0)
[  45] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
howl-1.0.1-1 (
1.0.1.1_1)
[  46] [Active     ] [       ] [   60] Geronimo TxManager :: Transaction
(2.2.0.
r634076)
[  47] [Active     ] [       ] [   60] Spring Transaction (2.5.6)
[  48] [Active     ] [Started] [   60] Apache ServiceMix Transaction
(1.1.0.fuse
)
[  49] [Active     ] [       ] [   60] Geronimo TxManager :: Connector
(2.2.0.r6
34076)
[  50] [Active     ] [       ] [   60] geronimo-jms_1.1_spec (1.1.1)
[  51] [Active     ] [       ] [   60] Apache ServiceMix Bundles: jencks-2.1
(2.
1.0.1)
[  52] [Active     ] [       ] [   60] geronimo-j2ee-management_1.1_spec
(1.0.1)

[  53] [Active     ] [       ] [   60] Apache Commons Pool Bundle (1.4)
[  54] [Active     ] [       ] [   60] xbean-spring (3.5)
[  55] [Active     ] [       ] [   60] kahadb (5.3.0.fuse)
[  56] [Active     ] [       ] [   60] activemq-core (5.3.0.fuse)
[  57] [Active     ] [Started] [   60] activemq-broker.xml (0.0.0)
[  58] [Active     ] [       ] [   60] activemq-ra (5.3.0.fuse)
[  59] [Active     ] [       ] [   60] activemq-console (5.3.0.fuse)
[  60] [Active     ] [       ] [   60] activemq-pool (5.3.0.fuse)
[  61] [Active     ] [Started] [   60] Apache ServiceMix Features ::
ActiveMQ Co
mmands (4.1.0.fuse)
[  62] [Active     ] [       ] [   60] Apache ServiceMix Specs :: STAX API
1.0 (
1.3.0.fuse)
[  63] [Active     ] [       ] [   60] Apache ServiceMix Specs :: ACTIVATION
API
 1.4 (1.3.0.fuse)
[  64] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JAXB API
2.1 (
1.3.0.fuse)
[  65] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
jaxb-impl-2.1.
6 (2.1.6.1)
[  69] [Active     ] [       ] [   60] xbean-naming (3.5)
[  70] [Active     ] [Started] [   60] Apache ServiceMix Naming (1.1.0.fuse)
[  71] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JBI API
1.0 (1
.3.0.fuse)
[  72] [Active     ] [       ] [   60] Apache ServiceMix :: Utils
(1.1.0.fuse)
[  73] [Active     ] [Started] [   60] Apache ServiceMix Document
(1.1.0.fuse)
[  74] [Active     ] [       ] [   60] Apache ServiceMix NMR API
(1.1.0.fuse)
[  75] [Active     ] [       ] [   60] Apache ServiceMix NMR Core
(1.1.0.fuse)
[  76] [Active     ] [Started] [   60] Apache ServiceMix NMR OSGi
(1.1.0.fuse)
[  77] [Active     ] [       ] [   60] Apache ServiceMix NMR Spring
(1.1.0.fuse)

[  78] [Active     ] [Started] [   60] Apache ServiceMix NMR Commands
(1.1.0.fus
e)
[  79] [Active     ] [Started] [   60] Apache ServiceMix NMR Management
(1.1.0.f
use)
[  80] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JAVAMAIL
API 1
.4 (1.3.0.fuse)
[  81] [Active     ] [       ] [   60] xbean-classloader (3.5)
[  82] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
woodstox-3.2.7
 (3.2.7.1)
[  83] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
wsdl4j-1.6.1 (
1.6.1.1)
[  84] [Active     ] [       ] [   60] Apache ServiceMix Bundles: ant-1.7.0
(1.7
.0.1)
[  85] [Active     ] [       ] [   60] Apache ServiceMix JBI Runtime
(1.1.0.fuse
)
[  86] [Active     ] [Started] [   60] Apache ServiceMix JBI OSGi
(1.1.0.fuse)
[  87] [Active     ] [Started] [   60] Apache ServiceMix JBI Deployer
(1.1.0.fus
e)
[  88] [Active     ] [Started] [   60] Apache ServiceMix JBI Commands
(1.1.0.fus
e)
[  89] [Active     ] [       ] [   60] Spring JMS (2.5.6)
[  90] [Active     ] [Started] [   60] Apache ServiceMix JBI Clustering
Requesto
r (1.1.0.fuse)
[  91] [Active     ] [Started] [   60] Apache ServiceMix JBI Clustering
Engine (
1.1.0.fuse)
[  92] [Active     ] [Started] [   60] Apache ServiceMix JBI Clustering
Config (
1.1.0.fuse)
[  93] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
jetty-6.1.14 (
6.1.14.1)
[  94] [Active     ] [       ] [   60] OPS4J Pax Web - Jsp Support (0.5.2)
[  95] [Active     ] [       ] [   60] OPS4J Pax Web - Web Container (0.5.2)
[  96] [Active     ] [       ] [   60] OPS4J Pax Web Extender - WAR (0.5.0)
[  97] [Active     ] [       ] [   60] OPS4J Pax Web Extender - Whiteboard
(0.5.
0)
[  98] [Active     ] [       ] [   60] OPS4J Pax Url - war:, war-i: (0.3.3)
[  99] [Active     ] [Started] [   60] Apache ServiceMix WAR Deployer
(4.1.0.fus
e)
[ 100] [Active     ] [Started] [   60] ServiceMix :: Common (2009.01.0.fuse)
[ 101] [Active     ] [       ] [   60] geronimo-ws-metadata_2.0_spec (1.1.2)
[ 102] [Active     ] [       ] [   60] Apache ServiceMix Specs :: SAAJ API
1.3 (
1.3.0.fuse)
[ 103] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JAXWS API
2.1
(1.3.0.fuse)
[ 104] [Active     ] [       ] [   60] Apache ServiceMix Bundles: asm-2.2.3
(2.2
.3.1)
[ 105] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
FastInfoset-1.
2.2 (1.2.2.1)
[ 106] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
neethi-2.0.4 (
2.0.4.1)
[ 107] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
saaj-impl-1.3
(1.3.0.1)
[ 108] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
xmlschema-1.4.
3 (1.4.3.1)
[ 109] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
xmlresolver-1.
2 (1.2.0.1)
[ 110] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
xmlsec-1.3.0 (
1.3.0.1)
[ 111] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
wss4j-1.5.4 (1
.5.4.1)
[ 112] [Active     ] [       ] [   60] Apache ServiceMix Specs :: JSR311 API
1.0
 (1.3.0.fuse)
[ 113] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
xmlbeans-2.4.0
 (2.4.0.2)
[ 114] [Active     ] [       ] [   60] Apache CXF Bundle Jar (2.2.2.1-fuse)
[ 115] [Active     ] [Started] [   60] ServiceMix :: SOAP2 (2009.01.0.fuse)
[ 116] [Active     ] [Started] [   60] ServiceMix :: CXF Binding Component
(2009
.01.0.fuse)
[ 117] [Active     ] [Started] [   60] ServiceMix :: File (2009.01.0.fuse)
[ 118] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
commons-net-1.
4.1 (1.4.1.1)
[ 119] [Active     ] [Started] [   60] ServiceMix :: FTP (2009.01.0.fuse)
[ 120] [Active     ] [Started] [   60] ServiceMix :: SOAP (2009.01.0.fuse)
[ 121] [Active     ] [Started] [   60] ServiceMix :: HTTP (2009.01.0.fuse)
[ 122] [Active     ] [Started] [   60] ServiceMix :: JMS (2009.01.0.fuse)
[ 123] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
geronimo-javam
ail_1.4_provider-1.8-r755222 (1.8.0.r755222_1)
[ 124] [Active     ] [Started] [   60] ServiceMix :: Mail (2009.01.0.fuse)
[ 125] [Active     ] [Started] [   60] ServiceMix :: Bean (2009.01.0.fuse)
[ 126] [Active     ] [Started] [   60] ServiceMix :: Camel (2009.01.0.fuse)
[ 127] [Active     ] [       ] [   60] Apache CXF Runtime JBI Binding
(2.2.2.1-f
use)
[ 128] [Active     ] [       ] [   60] Apache CXF Runtime JBI Transport
(2.2.2.1
-fuse)
[ 129] [Active     ] [Started] [   60] ServiceMix :: CXF Service Engine
(2009.01
.0.fuse)
[ 130] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
core-3.2.3.v_6
86_R32x (3.2.3.1)
[ 131] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
antlr-runtime-
3.0.1 (3.0.1.1)
[ 132] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
drools-4.0.7 (
4.0.7.1)
[ 133] [Active     ] [Started] [   60] ServiceMix :: Drools Service Engine
(2009
.01.0.fuse)
[ 134] [Active     ] [Started] [   60] ServiceMix :: EIP (2009.01.0.fuse)
[ 135] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
antlr-3.0.1 (3
.0.1.1)
[ 136] [Active     ] [       ] [   60] Commons Collections (3.2.1)
[ 137] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
quartz-1.6.1 (
1.6.1.1)
[ 138] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
oscore-2.2.4 (
2.2.4.1)
[ 139] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
propertyset-1.
3 (1.3.0.1)
[ 140] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
osworkflow-2.7
.0 (2.7.0.1)
[ 141] [Active     ] [Started] [   60] ServiceMix :: OSWorkflow
(2009.01.0.fuse)

[ 142] [Active     ] [       ] [   60] Spring Context Support (2.5.6)
[ 143] [Active     ] [Started] [   60] ServiceMix :: Quartz (2009.01.0.fuse)
[ 144] [Active     ] [       ] [   60] Apache ServiceMix Specs :: Scripting
API
1.0 (1.3.0.fuse)
[ 145] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
groovy-1.5.6 (
1.5.6.1)
[ 146] [Active     ] [       ] [   60] Apache ServiceMix Bundles: js-1.7R1
(1.0.
0.7R1_1)
[ 147] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
jruby-1.1.2 (1
.1.2.1)
[ 148] [Active     ] [       ] [   60] ScriptEngines :: Groovy (1.1)
[ 149] [Active     ] [       ] [   60] ScriptEngines :: JavaScript (1.1)
[ 150] [Active     ] [       ] [   60] ScriptEngines :: JRuby (1.1)
[ 151] [Active     ] [Started] [   60] ServiceMix :: JSR-223 Scripting
Service E
ngine (2009.01.0.fuse)
[ 152] [Active     ] [Started] [   60] ServiceMix :: Validation
(2009.01.0.fuse)

[ 153] [Active     ] [       ] [   60] Apache ServiceMix Bundles:
saxon-9.1.0.1
(9.1.0.1_1)
[ 154] [Active     ] [Started] [   60] ServiceMix :: Saxon Service Engine
(2009.
01.0.fuse)
[ 155] [Active     ] [Started] [   60] ServiceMix :: WS-Notification Service
Eng
ine (2009.01.0.fuse)
[ 156] [Active     ] [Started] [   60] Apache ServiceMix CXF Transport for
OSGi
(4.1.0.fuse)
[ 157] [Active     ] [       ] [   60] Commons Management (1.0)
[ 158] [Active     ] [       ] [   60] camel-core (2.0.0.x-fuse-SNAPSHOT)
[ 159] [Active     ] [       ] [   60] camel-spring (2.0.0.x-fuse-SNAPSHOT)
[ 160] [Active     ] [       ] [   60] camel-osgi (2.0.0.x-fuse-SNAPSHOT)
[ 161] [Active     ] [       ] [   60] camel-jms (2.0.0.x-fuse-SNAPSHOT)
[ 168] [Active     ] [       ] [   60] Apache ServiceMix Camel Component
(4.1.0.
fuse)
[ 169] [Active     ] [Started] [   60] Apache ServiceMix CXF Transport for
NMR (
4.1.0.fuse)
[ 170] [Active     ] [Started] [   60] Apache ServiceMix CXF Binding for NMR
(4.
1.0.fuse)
s...@root:osgi>


I have camel 2.0.0.x, which I guess should suffice, but its same difference.

11:59:13,029 | INFO  | tenerContainer-1 | jmsResponseMessagesLog           |
rg.apache.camel.processor.Logger   88 | Exchange[BodyType:String[],
Body:[Ljava.lang.String;@17a07ac]

is anything wrong with my camel installation?



Claus Ibsen-2 wrote:
> 
> Hi
> 
> This is the bug
> https://issues.apache.org/activemq/browse/CAMEL-2221
> 
> And it was fixed in 2.1 and 1.6.3 (not 1.6.2)
> 
> 
> On Mon, Nov 30, 2009 at 11:11 AM, Claus Ibsen <[email protected]>
> wrote:
>> Hi
>>
>> You are using a bean as recipient list, right?
>>>                        <bean ref="CollegeRecipientList" method="route"
>>> />
>>
>> There was a bug in Camel which is fixed in 2.1 and 1.6.2 that caused
>> it to return the endpoints instead of the data.
>> Instead of @RecipeinetList use a <recipientList> instead.
>>
>>
>>
>>
>> On Mon, Nov 30, 2009 at 11:01 AM, lekkie <[email protected]> wrote:
>>>
>>> Hi People,
>>>
>>> I have this service engine exposed as a jaxws because I needed to give
>>> it an
>>> nmr address.
>>>
>>> Below is the SE impl fxn:
>>> public PaymentResponse notifyPayment(PaymentRequest payload)
>>>        {
>>>                PaymentResponse response = new PaymentResponse();
>>>
>>>                LOG.info("Notification received for student " +
>>> payload.getStudentNumber());
>>>                LOG.info("Receipt Number: " +
>>> payload.getPINReceiptNumber());
>>>                LOG.info("Student Name: " + payload.getStudentName());
>>>                LOG.info("Amount: " + payload.getAmountPaid());
>>>                LOG.info("College Name: " + payload.getCollegeName());
>>>                LOG.info("Bank: " + payload.getBankName());
>>>                LOG.info("Reference Number: " +
>>> payload.getPaymentReferenceNumber());
>>>
>>>                response.setReturn("OK");
>>>
>>>                return response;
>>>        }
>>>
>>> and here is my bean.xml file:
>>> <jaxws:endpoint id="CollegeServices"
>>>                        implementor="com..services.CollegeServicesImpl"
>>>                        address="nmr:nauCollegeService"/>
>>>
>>>
>>> I also have another endpoints that retrieve messages from a queue and
>>> forwards to this nmr:nauCollegeService address, see camel-context.xml
>>> below:
>>>
>>> <osgi:camelContext xmlns="http://camel.apache.org/schema/spring";>
>>>                <route>
>>>                        <from
>>> uri="jms:queue:CollegeRequestQueue?replyTo=CollegeResponseQueue" />
>>>                        <convertBodyTo
>>> type="javax.xml.transform.stream.StreamSource" />
>>>                        <to uri="log:jmsRequestMessagesLog" />
>>>                        <bean ref="CollegeRecipientList" method="route"
>>> />
>>>                        <to uri="log:jmsResponseMessagesLog" />
>>>                </route>
>>>        </osgi:camelContext>
>>>
>>> This is what my log looks like when I send a message into the queue:
>>> 10:53:08,651 | INFO  | tenerContainer-1 | jmsRequestMessagesLog        
>>>    |
>>> rg.apache.camel.processor.Logger   88 |
>>> Exchange[BodyType:org.apache.camel.converter.jaxp.StringSource,
>>> Body:<?xml
>>> version="1.0" encoding="UTF-8"?>
>>> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>>> <soap:Body>
>>> <ser:PaymentRequest xmlns:ser="http://services.colleges.com";>
>>> <StudentNumber>91283123</StudentNumber>
>>> </ser:PaymentRequest>
>>> </soap:Body>
>>> </soap:Envelope>]
>>>
>>> 10:53:08,667 | INFO  | tenerContainer-1 | jmsResponseMessagesLog        
>>>   |
>>> rg.apache.camel.processor.Logger   88 | Exchange[BodyType:String[],
>>> Body:[Ljava.lang.String;@fe09a1]
>>>
>>> And whenever I tried to retrieve this message from my JMS response queue
>>> i
>>> couldnt cast as any of Text, Stream, byte, or Map?
>>>
>>>  if (aMessage instanceof javax.jms.TextMessage)
>>> {}
>>>  if (aMessage instanceof javax.jms.StreamMessage)
>>> {}
>>>  if (aMessage instanceof javax.jms.BytesMessage)
>>> {}
>>>
>>> How do I get the OK response returned?
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Transforming-Decoding-Data-en-route-tp26572002p26572002.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Transforming-Decoding-Data-en-route-tp26572002p26572809.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to