Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-28 Thread Afkham Azeez
Will do
On May 27, 2011 10:31 PM, "Sanjiva Weerawarana"  wrote:
> Azeez can you organize a brainstorm session on this issue next week? I'm
> assuming release pressure will be off by then but if not lets wait until
> after the release. This is something we need to discuss and come up with a
> proper solution.
>
> Sanjiva.
>
> On Fri, May 20, 2011 at 10:23 AM, Afkham Azeez  wrote:
>
>> Also within another appserver, HTTP session replication will not work
even
>> in this model.
>> On May 20, 2011 10:43 PM, "Paul Fremantle"  wrote:
>> > I thought we discussed an option where we ran EVERYTHING through OSGi
but
>> > still deployed in Tomcat. So in that case we would deploy webapps
inside
>> > Tomcat running inside Carbon running inside Tomcat.
>> >
>> > Paul
>> >
>> > On 20 May 2011 06:31, Afkham Azeez  wrote:
>> >
>> >> Of course we can go for a very clean OSGi based solution if we drop
>> >> supports for Carbon webapp deployment support. We have major
limitations
>> >> because of this. Even HTTP session replication cannot be done because
>> the
>> >> classes placed into the HTTP session in the OSGi container are not
>> visible
>> >> to Tomcat.
>> >>
>> >>
>> >> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma > >wrote:
>> >>
>> >>> Again, this happens due to duplication qpid jars inside the
>> >>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib
folder.
>> We
>> >>> had a look at this issue couple of times, but unable to find a proper
>> >>> solution.
>> >>>
>> >>> The deserialized Object is loaded inside the OSGi environment, but
the
>> >>> deserialization happens inside the system app classloader space.
Hence
>> the
>> >>> Class is not visible.
>> >>>
>> >>> One option is to put the classes to the lib folder. But thats ugly.
>> >>>
>> >>> Thanks,
>> >>> Sameera
>> >>>
>> >>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
>> >>> char...@wso2.com> wrote:
>> >>>
>>  Hi ,
>> 
>>  In the ESB Message Store we have an option where users can point to
>> any
>>  JMS broker as the underlying message storage. Here we store the
>> Message as a
>>  serializable Object Message.
>>  Problem is when i try to connect to a Qpid broker using our qpid
>> client
>>  libs in the Carbon environment it gives a Class not found Error when
>> we try
>>  to de serialize the message back to the Original format.
>> 
>>  Here the problem is at the point where it de serialize the message.
>> The
>>  the serializable object type we used is not visible to that class
>> loader.
>>  I tried using the ActiveMQ broker with its client libs. but did not
>> face
>>  this issue.
>> 
>>  We need to solve this Problem and this a blocker. One possible work
>>  around i can think of is change the way i serialize the message to
use
>> JMS
>>  TextMessages instead and use Message headers to keep the context
>>  information. That will resolve issue i m facing.
>> 
>>  But we mush fix this in a proper way to support sending JMSObject
>>  messages from the Carbon Environment since otherwise it implies that
>>  we can't filly utilize the functionality of our Message broker
inside
>> the
>>  carbon Environment.
>> 
>>  Help or directions for resolving this is highly appreciated.
>> 
>>  thanks,
>>  Charith
>> 
>> 
>>  --
>>  Charith Dhanushka Wickramarachchi
>>  Software Engineer
>>  WSO2 Inc
>>  http://wso2.com/
>>  http://wso2.org/
>> 
>>  blog
>>  http://charithwiki.blogspot.com/
>> 
>>  twitter
>>  http://twitter.com/charithwiki
>> 
>> 
>> 
>> 
>>  ___
>>  Carbon-dev mailing list
>>  Carbon-dev@wso2.org
>>  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>> 
>> 
>> >>>
>> >>>
>> >>> --
>> >>> Sameera Jayasoma
>> >>> Technical Lead and Product Manager, WSO2 Carbon
>> >>>
>> >>> WSO2, Inc. (http://wso2.com)
>> >>> email: same...@wso2.com
>> >>> blog: http://tech.jayasoma.org
>> >>>
>> >>> Lean . Enterprise . Middleware
>> >>>
>> >>> ___
>> >>> Carbon-dev mailing list
>> >>> Carbon-dev@wso2.org
>> >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>> >>>
>> >>>
>> >>
>> >>
>> >> --
>> >> *Afkham Azeez*
>> >> Director of Architecture; WSO2, Inc.; http://wso2.com
>> >> Member; Apache Software Foundation; http://www.apache.org/
>> >> * **
>> >> email: **az...@wso2.com* * cell: +94 77 3320919
>> >> blog: **http://blog.afkham.org* *
>> >> twitter: **http://twitter.com/afkham_azeez*<
>> http://twitter.com/afkham_azeez>
>>
>> >> *
>> >> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> >> *
>> >> *
>> >> *Lean . Enterprise . Middleware*
>> >>
>> >>
>> >> ___
>> >> Carbon-dev mailing list
>> >> Carbon-dev@wso2.org
>> >> http://mail.ws

Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-27 Thread Sanjiva Weerawarana
Azeez can you organize a brainstorm session on this issue next week? I'm
assuming release pressure will be off by then but if not lets wait until
after the release. This is something we need to discuss and come up with a
proper solution.

Sanjiva.

On Fri, May 20, 2011 at 10:23 AM, Afkham Azeez  wrote:

> Also within another appserver, HTTP session replication will not work even
> in this model.
> On May 20, 2011 10:43 PM, "Paul Fremantle"  wrote:
> > I thought we discussed an option where we ran EVERYTHING through OSGi but
> > still deployed in Tomcat. So in that case we would deploy webapps inside
> > Tomcat running inside Carbon running inside Tomcat.
> >
> > Paul
> >
> > On 20 May 2011 06:31, Afkham Azeez  wrote:
> >
> >> Of course we can go for a very clean OSGi based solution if we drop
> >> supports for Carbon webapp deployment support. We have major limitations
> >> because of this. Even HTTP session replication cannot be done because
> the
> >> classes placed into the HTTP session in the OSGi container are not
> visible
> >> to Tomcat.
> >>
> >>
> >> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma  >wrote:
> >>
> >>> Again, this happens due to duplication qpid jars inside the
> >>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder.
> We
> >>> had a look at this issue couple of times, but unable to find a proper
> >>> solution.
> >>>
> >>> The deserialized Object is loaded inside the OSGi environment, but the
> >>> deserialization happens inside the system app classloader space. Hence
> the
> >>> Class is not visible.
> >>>
> >>> One option is to put the classes to the lib folder. But thats ugly.
> >>>
> >>> Thanks,
> >>> Sameera
> >>>
> >>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
> >>> char...@wso2.com> wrote:
> >>>
>  Hi ,
> 
>  In the ESB Message Store we have an option where users can point to
> any
>  JMS broker as the underlying message storage. Here we store the
> Message as a
>  serializable Object Message.
>  Problem is when i try to connect to a Qpid broker using our qpid
> client
>  libs in the Carbon environment it gives a Class not found Error when
> we try
>  to de serialize the message back to the Original format.
> 
>  Here the problem is at the point where it de serialize the message.
> The
>  the serializable object type we used is not visible to that class
> loader.
>  I tried using the ActiveMQ broker with its client libs. but did not
> face
>  this issue.
> 
>  We need to solve this Problem and this a blocker. One possible work
>  around i can think of is change the way i serialize the message to use
> JMS
>  TextMessages instead and use Message headers to keep the context
>  information. That will resolve issue i m facing.
> 
>  But we mush fix this in a proper way to support sending JMSObject
>  messages from the Carbon Environment since otherwise it implies that
>  we can't filly utilize the functionality of our Message broker inside
> the
>  carbon Environment.
> 
>  Help or directions for resolving this is highly appreciated.
> 
>  thanks,
>  Charith
> 
> 
>  --
>  Charith Dhanushka Wickramarachchi
>  Software Engineer
>  WSO2 Inc
>  http://wso2.com/
>  http://wso2.org/
> 
>  blog
>  http://charithwiki.blogspot.com/
> 
>  twitter
>  http://twitter.com/charithwiki
> 
> 
> 
> 
>  ___
>  Carbon-dev mailing list
>  Carbon-dev@wso2.org
>  http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> 
> 
> >>>
> >>>
> >>> --
> >>> Sameera Jayasoma
> >>> Technical Lead and Product Manager, WSO2 Carbon
> >>>
> >>> WSO2, Inc. (http://wso2.com)
> >>> email: same...@wso2.com
> >>> blog: http://tech.jayasoma.org
> >>>
> >>> Lean . Enterprise . Middleware
> >>>
> >>> ___
> >>> Carbon-dev mailing list
> >>> Carbon-dev@wso2.org
> >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >>>
> >>>
> >>
> >>
> >> --
> >> *Afkham Azeez*
> >> Director of Architecture; WSO2, Inc.; http://wso2.com
> >> Member; Apache Software Foundation; http://www.apache.org/
> >> * **
> >> email: **az...@wso2.com* * cell: +94 77 3320919
> >> blog: **http://blog.afkham.org* *
> >> twitter: **http://twitter.com/afkham_azeez*<
> http://twitter.com/afkham_azeez>
>
> >> *
> >> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> >> *
> >> *
> >> *Lean . Enterprise . Middleware*
> >>
> >>
> >> ___
> >> Carbon-dev mailing list
> >> Carbon-dev@wso2.org
> >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
> >>
> >>
> >
> >
> > --
> > Paul Fremantle
> > CTO and Co-Founder, WSO2
> > OASIS WS-RX TC Co-chair, VP, Apache Synapse
> >
> > Office: +44 844 484 8143
> > Cell: +44 798 447 4618

Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-20 Thread Afkham Azeez
Also within another appserver, HTTP session replication will not work even
in this model.
On May 20, 2011 10:43 PM, "Paul Fremantle"  wrote:
> I thought we discussed an option where we ran EVERYTHING through OSGi but
> still deployed in Tomcat. So in that case we would deploy webapps inside
> Tomcat running inside Carbon running inside Tomcat.
>
> Paul
>
> On 20 May 2011 06:31, Afkham Azeez  wrote:
>
>> Of course we can go for a very clean OSGi based solution if we drop
>> supports for Carbon webapp deployment support. We have major limitations
>> because of this. Even HTTP session replication cannot be done because the
>> classes placed into the HTTP session in the OSGi container are not
visible
>> to Tomcat.
>>
>>
>> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma wrote:
>>
>>> Again, this happens due to duplication qpid jars inside the
>>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder.
We
>>> had a look at this issue couple of times, but unable to find a proper
>>> solution.
>>>
>>> The deserialized Object is loaded inside the OSGi environment, but the
>>> deserialization happens inside the system app classloader space. Hence
the
>>> Class is not visible.
>>>
>>> One option is to put the classes to the lib folder. But thats ugly.
>>>
>>> Thanks,
>>> Sameera
>>>
>>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
>>> char...@wso2.com> wrote:
>>>
 Hi ,

 In the ESB Message Store we have an option where users can point to any
 JMS broker as the underlying message storage. Here we store the Message
as a
 serializable Object Message.
 Problem is when i try to connect to a Qpid broker using our qpid client
 libs in the Carbon environment it gives a Class not found Error when we
try
 to de serialize the message back to the Original format.

 Here the problem is at the point where it de serialize the message. The
 the serializable object type we used is not visible to that class
loader.
 I tried using the ActiveMQ broker with its client libs. but did not
face
 this issue.

 We need to solve this Problem and this a blocker. One possible work
 around i can think of is change the way i serialize the message to use
JMS
 TextMessages instead and use Message headers to keep the context
 information. That will resolve issue i m facing.

 But we mush fix this in a proper way to support sending JMSObject
 messages from the Carbon Environment since otherwise it implies that
 we can't filly utilize the functionality of our Message broker inside
the
 carbon Environment.

 Help or directions for resolving this is highly appreciated.

 thanks,
 Charith


 --
 Charith Dhanushka Wickramarachchi
 Software Engineer
 WSO2 Inc
 http://wso2.com/
 http://wso2.org/

 blog
 http://charithwiki.blogspot.com/

 twitter
 http://twitter.com/charithwiki




 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Sameera Jayasoma
>>> Technical Lead and Product Manager, WSO2 Carbon
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://tech.jayasoma.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*<
http://twitter.com/afkham_azeez>
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Paul Fremantle
> CTO and Co-Founder, WSO2
> OASIS WS-RX TC Co-chair, VP, Apache Synapse
>
> Office: +44 844 484 8143
> Cell: +44 798 447 4618
>
> blog: http://pzf.fremantle.org
> twitter.com/pzfreo
> p...@wso2.com
>
> wso2.com Lean Enterprise Middleware
>
> Disclaimer: This communication may contain privileged or other
confidential
> information and is intended exclusively for the addressee/s. If you are
not
> the intended recipient/s, or believe that you may have received this
> communication in error, please reply to the sender indicating that fact
and
> delete the copy you received and in addition, you should not print, copy,
> retransmit, disseminate, or otherwise use the information contained in
this
> communication. Internet communications 

Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-20 Thread Afkham Azeez
That is also tricky because the carbon webapp is deployed inside one tomcat
& other webapps are deployed within another tomcat. Handling the carbon
request dispatching has to be handled in different way in standlone & webapp
modes in that case.
On May 20, 2011 10:43 PM, "Paul Fremantle"  wrote:
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-20 Thread Paul Fremantle
I thought we discussed an option where we ran EVERYTHING through OSGi but
still deployed in Tomcat. So in that case we would deploy webapps inside
Tomcat running inside Carbon running inside Tomcat.

Paul

On 20 May 2011 06:31, Afkham Azeez  wrote:

> Of course we can go for a very clean OSGi based solution if we drop
> supports for Carbon webapp deployment support. We have major limitations
> because of this. Even HTTP session replication cannot be done because the
> classes placed into the HTTP session in the OSGi container are not visible
> to Tomcat.
>
>
> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma wrote:
>
>> Again, this happens due to duplication qpid jars inside the
>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder. We
>> had a look at this issue couple of times, but unable to find a proper
>> solution.
>>
>> The deserialized Object is loaded inside the OSGi environment, but the
>> deserialization happens inside the system app classloader space. Hence the
>> Class is not visible.
>>
>> One option is to put the classes to the lib folder. But thats ugly.
>>
>> Thanks,
>> Sameera
>>
>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
>> char...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> In the ESB Message Store we have an option where users can point to any
>>> JMS broker as the underlying message storage. Here we store the Message as a
>>> serializable Object Message.
>>> Problem is when i try to connect to a Qpid broker using our qpid client
>>> libs in the Carbon environment  it gives a Class not found Error when we try
>>> to de serialize the message back to the Original format.
>>>
>>> Here the problem is at the point where it de serialize the message. The
>>> the serializable object type we used is not visible to that class loader.
>>> I tried using the ActiveMQ broker with its client libs. but did not face
>>> this issue.
>>>
>>> We need to solve this Problem and this a blocker. One possible work
>>> around i can think of is change the way i serialize the message to use JMS
>>> TextMessages instead and use Message headers to keep the context
>>> information. That will resolve issue i m facing.
>>>
>>> But we mush fix this in a proper way to support sending JMSObject
>>> messages from the Carbon Environment since otherwise it implies that
>>> we can't filly utilize the functionality of our Message broker inside the
>>> carbon Environment.
>>>
>>> Help or directions for resolving this is highly appreciated.
>>>
>>> thanks,
>>> Charith
>>>
>>>
>>> --
>>> Charith Dhanushka Wickramarachchi
>>> Software Engineer
>>> WSO2 Inc
>>> http://wso2.com/
>>> http://wso2.org/
>>>
>>> blog
>>> http://charithwiki.blogspot.com/
>>>
>>> twitter
>>> http://twitter.com/charithwiki
>>>
>>>
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma
>> Technical Lead and Product Manager, WSO2 Carbon
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://tech.jayasoma.org
>>
>> Lean . Enterprise . Middleware
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Paul Fremantle
CTO and Co-Founder, WSO2
OASIS WS-RX TC Co-chair, VP, Apache Synapse

Office: +44 844 484 8143
Cell: +44 798 447 4618

blog: http://pzf.fremantle.org
twitter.com/pzfreo
p...@wso2.com

wso2.com Lean Enterprise Middleware

Disclaimer: This communication may contain privileged or other confidential
information and is intended exclusively for the addressee/s. If you are not
the intended recipient/s, or believe that you may have received this
communication in error, please reply to the sender indicating that fact and
delete the copy you received and in addition, you should not print, copy,
retransmit, disseminate, or otherwise use the information contained in this
communication. Internet communications cannot be guaranteed to be timely,
secure, error or virus-free. The sender does not accept liability for any
errors or omissions.
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-20 Thread Charith Wickramarachchi
This is Fixed by Introducing a Class loading aware Object input stream
implementation at the qpid clients.
I try to commit the changes but couldn't due to the branching process.

Created a issue [1] and attach the patch.

Dhanushka please review and commit this patch.

[1]https://wso2.org/jira/browse/CARBON-10154


thanks,
Charith

On Fri, May 20, 2011 at 12:39 PM, Danushka Menikkumbura
wrote:

> Also the class-loading issues in JMS transport and this particular issue
> that Charith is having are results of that.
>
> Danushka
>
>
> On Fri, May 20, 2011 at 11:01 AM, Afkham Azeez  wrote:
>
>> Of course we can go for a very clean OSGi based solution if we drop
>> supports for Carbon webapp deployment support. We have major limitations
>> because of this. Even HTTP session replication cannot be done because the
>> classes placed into the HTTP session in the OSGi container are not visible
>> to Tomcat.
>>
>>
>> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma wrote:
>>
>>> Again, this happens due to duplication qpid jars inside the
>>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder. We
>>> had a look at this issue couple of times, but unable to find a proper
>>> solution.
>>>
>>> The deserialized Object is loaded inside the OSGi environment, but the
>>> deserialization happens inside the system app classloader space. Hence the
>>> Class is not visible.
>>>
>>> One option is to put the classes to the lib folder. But thats ugly.
>>>
>>> Thanks,
>>> Sameera
>>>
>>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
>>> char...@wso2.com> wrote:
>>>
 Hi ,

 In the ESB Message Store we have an option where users can point to any
 JMS broker as the underlying message storage. Here we store the Message as 
 a
 serializable Object Message.
 Problem is when i try to connect to a Qpid broker using our qpid client
 libs in the Carbon environment  it gives a Class not found Error when we 
 try
 to de serialize the message back to the Original format.

 Here the problem is at the point where it de serialize the message. The
 the serializable object type we used is not visible to that class loader.
 I tried using the ActiveMQ broker with its client libs. but did not face
 this issue.

 We need to solve this Problem and this a blocker. One possible work
 around i can think of is change the way i serialize the message to use JMS
 TextMessages instead and use Message headers to keep the context
 information. That will resolve issue i m facing.

 But we mush fix this in a proper way to support sending JMSObject
 messages from the Carbon Environment since otherwise it implies that
 we can't filly utilize the functionality of our Message broker inside
 the carbon Environment.

 Help or directions for resolving this is highly appreciated.

 thanks,
 Charith


 --
 Charith Dhanushka Wickramarachchi
 Software Engineer
 WSO2 Inc
 http://wso2.com/
 http://wso2.org/

 blog
 http://charithwiki.blogspot.com/

 twitter
 http://twitter.com/charithwiki




 ___
 Carbon-dev mailing list
 Carbon-dev@wso2.org
 http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


>>>
>>>
>>> --
>>> Sameera Jayasoma
>>> Technical Lead and Product Manager, WSO2 Carbon
>>>
>>> WSO2, Inc. (http://wso2.com)
>>> email: same...@wso2.com
>>> blog: http://tech.jayasoma.org
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Afkham Azeez*
>> Director of Architecture; WSO2, Inc.; http://wso2.com
>> Member; Apache Software Foundation; http://www.apache.org/
>> * **
>> email: **az...@wso2.com* * cell: +94 77 3320919
>> blog: **http://blog.afkham.org* *
>> twitter: **http://twitter.com/afkham_azeez*
>> *
>> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
>> *
>> *
>> *Lean . Enterprise . Middleware*
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Charith Dhanushka Wickramarachchi
Software Engineer
WSO2 Inc
http://wso2.com/
http://wso2.org/

blog
http://charithwiki.blogspot.com/

twitter
http://twitter.com/charithwiki
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-20 Thread Danushka Menikkumbura
Also the class-loading issues in JMS transport and this particular issue
that Charith is having are results of that.

Danushka

On Fri, May 20, 2011 at 11:01 AM, Afkham Azeez  wrote:

> Of course we can go for a very clean OSGi based solution if we drop
> supports for Carbon webapp deployment support. We have major limitations
> because of this. Even HTTP session replication cannot be done because the
> classes placed into the HTTP session in the OSGi container are not visible
> to Tomcat.
>
>
> On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma wrote:
>
>> Again, this happens due to duplication qpid jars inside the
>> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder. We
>> had a look at this issue couple of times, but unable to find a proper
>> solution.
>>
>> The deserialized Object is loaded inside the OSGi environment, but the
>> deserialization happens inside the system app classloader space. Hence the
>> Class is not visible.
>>
>> One option is to put the classes to the lib folder. But thats ugly.
>>
>> Thanks,
>> Sameera
>>
>> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi <
>> char...@wso2.com> wrote:
>>
>>> Hi ,
>>>
>>> In the ESB Message Store we have an option where users can point to any
>>> JMS broker as the underlying message storage. Here we store the Message as a
>>> serializable Object Message.
>>> Problem is when i try to connect to a Qpid broker using our qpid client
>>> libs in the Carbon environment  it gives a Class not found Error when we try
>>> to de serialize the message back to the Original format.
>>>
>>> Here the problem is at the point where it de serialize the message. The
>>> the serializable object type we used is not visible to that class loader.
>>> I tried using the ActiveMQ broker with its client libs. but did not face
>>> this issue.
>>>
>>> We need to solve this Problem and this a blocker. One possible work
>>> around i can think of is change the way i serialize the message to use JMS
>>> TextMessages instead and use Message headers to keep the context
>>> information. That will resolve issue i m facing.
>>>
>>> But we mush fix this in a proper way to support sending JMSObject
>>> messages from the Carbon Environment since otherwise it implies that
>>> we can't filly utilize the functionality of our Message broker inside the
>>> carbon Environment.
>>>
>>> Help or directions for resolving this is highly appreciated.
>>>
>>> thanks,
>>> Charith
>>>
>>>
>>> --
>>> Charith Dhanushka Wickramarachchi
>>> Software Engineer
>>> WSO2 Inc
>>> http://wso2.com/
>>> http://wso2.org/
>>>
>>> blog
>>> http://charithwiki.blogspot.com/
>>>
>>> twitter
>>> http://twitter.com/charithwiki
>>>
>>>
>>>
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Sameera Jayasoma
>> Technical Lead and Product Manager, WSO2 Carbon
>>
>> WSO2, Inc. (http://wso2.com)
>> email: same...@wso2.com
>> blog: http://tech.jayasoma.org
>>
>> Lean . Enterprise . Middleware
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> *Afkham Azeez*
> Director of Architecture; WSO2, Inc.; http://wso2.com
> Member; Apache Software Foundation; http://www.apache.org/
> * **
> email: **az...@wso2.com* * cell: +94 77 3320919
> blog: **http://blog.afkham.org* *
> twitter: **http://twitter.com/afkham_azeez*
> *
> linked-in: **http://lk.linkedin.com/in/afkhamazeez*
> *
> *
> *Lean . Enterprise . Middleware*
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Afkham Azeez
Of course we can go for a very clean OSGi based solution if we drop supports
for Carbon webapp deployment support. We have major limitations because of
this. Even HTTP session replication cannot be done because the classes
placed into the HTTP session in the OSGi container are not visible to
Tomcat.


On Fri, May 20, 2011 at 10:15 AM, Sameera Jayasoma  wrote:

> Again, this happens due to duplication qpid jars inside the
> $CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder. We
> had a look at this issue couple of times, but unable to find a proper
> solution.
>
> The deserialized Object is loaded inside the OSGi environment, but the
> deserialization happens inside the system app classloader space. Hence the
> Class is not visible.
>
> One option is to put the classes to the lib folder. But thats ugly.
>
> Thanks,
> Sameera
>
> On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi  > wrote:
>
>> Hi ,
>>
>> In the ESB Message Store we have an option where users can point to any
>> JMS broker as the underlying message storage. Here we store the Message as a
>> serializable Object Message.
>> Problem is when i try to connect to a Qpid broker using our qpid client
>> libs in the Carbon environment  it gives a Class not found Error when we try
>> to de serialize the message back to the Original format.
>>
>> Here the problem is at the point where it de serialize the message. The
>> the serializable object type we used is not visible to that class loader.
>> I tried using the ActiveMQ broker with its client libs. but did not face
>> this issue.
>>
>> We need to solve this Problem and this a blocker. One possible work around
>> i can think of is change the way i serialize the message to use JMS
>> TextMessages instead and use Message headers to keep the context
>> information. That will resolve issue i m facing.
>>
>> But we mush fix this in a proper way to support sending JMSObject messages
>> from the Carbon Environment since otherwise it implies that
>> we can't filly utilize the functionality of our Message broker inside the
>> carbon Environment.
>>
>> Help or directions for resolving this is highly appreciated.
>>
>> thanks,
>> Charith
>>
>>
>> --
>> Charith Dhanushka Wickramarachchi
>> Software Engineer
>> WSO2 Inc
>> http://wso2.com/
>> http://wso2.org/
>>
>> blog
>> http://charithwiki.blogspot.com/
>>
>> twitter
>> http://twitter.com/charithwiki
>>
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Sameera Jayasoma
> Technical Lead and Product Manager, WSO2 Carbon
>
> WSO2, Inc. (http://wso2.com)
> email: same...@wso2.com
> blog: http://tech.jayasoma.org
>
> Lean . Enterprise . Middleware
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* **
email: **az...@wso2.com* * cell: +94 77 3320919
blog: **http://blog.afkham.org* *
twitter: **http://twitter.com/afkham_azeez*
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Sameera Jayasoma
Again, this happens due to duplication qpid jars inside the
$CARBON_HOME/repository/components/plugins and $CARBON_HOME/lib folder. We
had a look at this issue couple of times, but unable to find a proper
solution.

The deserialized Object is loaded inside the OSGi environment, but the
deserialization happens inside the system app classloader space. Hence the
Class is not visible.

One option is to put the classes to the lib folder. But thats ugly.

Thanks,
Sameera

On Fri, May 20, 2011 at 9:22 AM, Charith Wickramarachchi
wrote:

> Hi ,
>
> In the ESB Message Store we have an option where users can point to any JMS
> broker as the underlying message storage. Here we store the Message as a
> serializable Object Message.
> Problem is when i try to connect to a Qpid broker using our qpid client
> libs in the Carbon environment  it gives a Class not found Error when we try
> to de serialize the message back to the Original format.
>
> Here the problem is at the point where it de serialize the message. The the
> serializable object type we used is not visible to that class loader.
> I tried using the ActiveMQ broker with its client libs. but did not face
> this issue.
>
> We need to solve this Problem and this a blocker. One possible work around
> i can think of is change the way i serialize the message to use JMS
> TextMessages instead and use Message headers to keep the context
> information. That will resolve issue i m facing.
>
> But we mush fix this in a proper way to support sending JMSObject messages
> from the Carbon Environment since otherwise it implies that
> we can't filly utilize the functionality of our Message broker inside the
> carbon Environment.
>
> Help or directions for resolving this is highly appreciated.
>
> thanks,
> Charith
>
>
> --
> Charith Dhanushka Wickramarachchi
> Software Engineer
> WSO2 Inc
> http://wso2.com/
> http://wso2.org/
>
> blog
> http://charithwiki.blogspot.com/
>
> twitter
> http://twitter.com/charithwiki
>
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon

WSO2, Inc. (http://wso2.com)
email: same...@wso2.com
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Charith Wickramarachchi
On Fri, May 20, 2011 at 10:02 AM, Danushka Menikkumbura
wrote:

> I should look at the ESB Message Store right?
>
> Yes, Or you will be able to reproduce this by trying to send and
then receive any ObjectMessage from a carbon component.
And make sure that ObjectMessage holds a Serializable type that is defined
inside that component.

thanks,
Charith

>
>
> On Fri, May 20, 2011 at 9:46 AM, Charith Wickramarachchi  > wrote:
>
>>
>>
>> On Fri, May 20, 2011 at 9:34 AM, Danushka Menikkumbura > > wrote:
>>
>>> Problem is when i try to connect to a Qpid broker using our qpid client
 libs in the Carbon environment  it gives a Class not found Error when we 
 try
 to de serialize the message back to the Original format.

>>>
>>> What is the class that it complains about?
>>>
>>
>> Its an Internal Serializable class named JMSPersistentMessage which holds
>> the persistent format of the message. And its the Object type that we set in
>> the jms ObjectMessage
>>
>> thanks,
>> Charith
>>
>>>
>>> Danushka
>>>
>>> ___
>>> Carbon-dev mailing list
>>> Carbon-dev@wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> Charith Dhanushka Wickramarachchi
>> Software Engineer
>> WSO2 Inc
>> http://wso2.com/
>> http://wso2.org/
>>
>> blog
>> http://charithwiki.blogspot.com/
>>
>> twitter
>> http://twitter.com/charithwiki
>>
>>
>>
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Charith Dhanushka Wickramarachchi
Software Engineer
WSO2 Inc
http://wso2.com/
http://wso2.org/

blog
http://charithwiki.blogspot.com/

twitter
http://twitter.com/charithwiki
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Danushka Menikkumbura
I should look at the ESB Message Store right?


On Fri, May 20, 2011 at 9:46 AM, Charith Wickramarachchi
wrote:

>
>
> On Fri, May 20, 2011 at 9:34 AM, Danushka Menikkumbura 
> wrote:
>
>> Problem is when i try to connect to a Qpid broker using our qpid client
>>> libs in the Carbon environment  it gives a Class not found Error when we try
>>> to de serialize the message back to the Original format.
>>>
>>
>> What is the class that it complains about?
>>
>
> Its an Internal Serializable class named JMSPersistentMessage which holds
> the persistent format of the message. And its the Object type that we set in
> the jms ObjectMessage
>
> thanks,
> Charith
>
>>
>> Danushka
>>
>> ___
>> Carbon-dev mailing list
>> Carbon-dev@wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Charith Dhanushka Wickramarachchi
> Software Engineer
> WSO2 Inc
> http://wso2.com/
> http://wso2.org/
>
> blog
> http://charithwiki.blogspot.com/
>
> twitter
> http://twitter.com/charithwiki
>
>
>
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Charith Wickramarachchi
On Fri, May 20, 2011 at 9:34 AM, Danushka Menikkumbura wrote:

> Problem is when i try to connect to a Qpid broker using our qpid client
>> libs in the Carbon environment  it gives a Class not found Error when we try
>> to de serialize the message back to the Original format.
>>
>
> What is the class that it complains about?
>

Its an Internal Serializable class named JMSPersistentMessage which holds
the persistent format of the message. And its the Object type that we set in
the jms ObjectMessage

thanks,
Charith

>
> Danushka
>
> ___
> Carbon-dev mailing list
> Carbon-dev@wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>


-- 
Charith Dhanushka Wickramarachchi
Software Engineer
WSO2 Inc
http://wso2.com/
http://wso2.org/

blog
http://charithwiki.blogspot.com/

twitter
http://twitter.com/charithwiki
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


Re: [Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Danushka Menikkumbura
>
> Problem is when i try to connect to a Qpid broker using our qpid client
> libs in the Carbon environment  it gives a Class not found Error when we try
> to de serialize the message back to the Original format.
>

What is the class that it complains about?

Danushka
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[Carbon-dev] Can't send/receive JMS Object Messages to/from Qpid broker from Carbon Environment.

2011-05-19 Thread Charith Wickramarachchi
Hi ,

In the ESB Message Store we have an option where users can point to any JMS
broker as the underlying message storage. Here we store the Message as a
serializable Object Message.
Problem is when i try to connect to a Qpid broker using our qpid client libs
in the Carbon environment  it gives a Class not found Error when we try to
de serialize the message back to the Original format.

Here the problem is at the point where it de serialize the message. The the
serializable object type we used is not visible to that class loader.
I tried using the ActiveMQ broker with its client libs. but did not face
this issue.

We need to solve this Problem and this a blocker. One possible work around i
can think of is change the way i serialize the message to use JMS
TextMessages instead and use Message headers to keep the context
information. That will resolve issue i m facing.

But we mush fix this in a proper way to support sending JMSObject messages
from the Carbon Environment since otherwise it implies that
we can't filly utilize the functionality of our Message broker inside the
carbon Environment.

Help or directions for resolving this is highly appreciated.

thanks,
Charith


-- 
Charith Dhanushka Wickramarachchi
Software Engineer
WSO2 Inc
http://wso2.com/
http://wso2.org/

blog
http://charithwiki.blogspot.com/

twitter
http://twitter.com/charithwiki
___
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev