arindam-bandyopadhyay / issue-test

0 stars 0 forks source link

WAS-ActiveMQ integration: JMS provider throws class cast exception #22

Closed arinban closed 6 years ago

arinban commented 6 years ago

Some JMS providers throw class cast exception if the destination object is not exectly the one implemented by the provider.

e-mail from an engineer working on WAS - ActiveMQ integration using genericjmsra

In digging a bit deeper, I notice that genericjmsra adapter does not proxy all the jms classes(specifically in this case, the javax.jms.Message and its variants). Also, I notice that the ActiveMQMessage class expects the destination to be passed in to be an ActiveMQDestination(therefore it can't be any other jms provider's destination and specifically it can't be the Adapter's QueueProxy class). Anyway, I'm trying to figure out what's the expectation here. Should the ActiveMQMessage class be expected to deal with any ole destination out there? Or is the exepectation that the genericjmsra needs to be fixed so that it proxies additional jms classes so that it can intercept and do the right thing when methods such as setJMSReplyTo is invoked?

Environment

Operating System: All Platform: All

Affected Versions

[0.9]

arinban commented 6 years ago

Original Issue:https://github.com/javaee/glassfish-genericjmsra/issues/15 Raised By:@glassfishrobot Created at:Mon Mar 06 07:37:18 IST 2006 Assigned To:@glassfishrobot

arinban commented 6 years ago

@glassfishrobot Commented on Mon Mar 06 07:37:18 IST 2006 Reported by binod

arinban commented 6 years ago

@glassfishrobot Commented on Mon Mar 06 08:15:59 IST 2006 binod said: A new property called UseProxyMessages has been introduced. If you set this property, resource adapter will create a proxy class for implementing javax.jms.Message. In the proxy handler, the destination object is unwrapped for setJMSReplyTo and setJMSDestination objects.

arinban commented 6 years ago

@glassfishrobot Commented on Mon Mar 06 08:20:54 IST 2006 binod said: Adding keyword

arinban commented 6 years ago

@glassfishrobot Commented on Mon Mar 06 08:21:23 IST 2006 binod said: Fixed wrong keyword

arinban commented 6 years ago

@glassfishrobot Commented on Wed Mar 15 05:46:47 IST 2006 @sivakumart said: fixed in milestone 1.6

arinban commented 6 years ago

@glassfishrobot Commented on Mon Mar 06 07:37:18 IST 2006 Was assigned to binod

arinban commented 6 years ago

@glassfishrobot Commented on Mon Apr 24 13:01:38 IST 2017 This issue was imported from java.net JIRA GENERICJMSRA-15

arinban commented 6 years ago

@glassfishrobot Commented on Mon Sep 06 08:51:08 IST 2010 Marked as fixed on Sunday, September 5th 2010, 8:21:08 pm

arinban commented 6 years ago

@glassfishrobot Closed the issue on Mon Sep 06 08:51:08 IST 2010