You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Diego RR Pacheco <di...@gmail.com> on 2010/07/02 13:58:30 UTC

BlobMessage supports in RA

Hi Guys,

I'm working with Apache ActiveMQ 5.3.2 and JBoss AS 5.1.0 GA and using
Resource Adapter Version 5.3.2 in my Architecture.

My application uses jndi lookup to retrive ActiveMQ
QueueConnectionFactory(showed above):
<jee:jndi-lookup id="activemqConnectionFactory"
jndi-name="java:activemq/QueueConnectionFactory" />

When i create an Session i'm receiving the proxy object ManagedSessionProxy,
this object dont have the method for create BlobMessages but this object
have ActiveMQSession. There is possibility to create blobMessages using RA?
OR maybe if possible you create the method 'createBlobMessage'
ManagedSessionProxy in  in a future versions?

Cheers,

Diego Pacheco
@diego_pacheco
http://diego-pacheco.blogspot.com
-- 
View this message in context: http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29055502.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: BlobMessage supports in RA

Posted by Diego RR Pacheco <di...@gmail.com>.
Hi Gary,

Yes i tried but JBoss throw an exception, but i fix this issue including the
method createBlobMessage inside de proxy, it works and i think is the best
call in terms of design and abstractions :D

Cheers,


Gary Tully wrote:
> 
> You tried making get session public?
> 
> On Friday, July 2, 2010, Diego RR Pacheco <di...@gmail.com>
> wrote:
>>
>> Hi Gary,
>>
>> I tried but dosent works, i think JBoss dont allow us acess some objects
>> like Session and Connection in this way, when i try that i received an
>> Exception.
>>
>> I Fixed this issue re-compaling and patch ActiveMQ RA, i just add
>> createBlobMessage in ManagedSessionProxy and it is working now.
>>
>> I will be glad if in the future releases this method be included on RA :D
>>
>> Cheers,
>>
>> Diego Pacheco
>> @diego_pacheco
>> http://diego-pacheco.blogspot.com
>>
>>
>> Gary Tully wrote:
>>>
>>> The proxy only supports the standard JMS api, but I think it would make
>>> sense to make the getSession() api public so you could get access to the
>>> underlying session and call createBlobMessage(...), can you raise a jira
>>> enhancement for that?
>>>
>>> On 2 July 2010 12:58, Diego RR Pacheco <di...@gmail.com>
>>> wrote:
>>>
>>>>
>>>> Hi Guys,
>>>>
>>>> I'm working with Apache ActiveMQ 5.3.2 and JBoss AS 5.1.0 GA and using
>>>> Resource Adapter Version 5.3.2 in my Architecture.
>>>>
>>>> My application uses jndi lookup to retrive ActiveMQ
>>>> QueueConnectionFactory(showed above):
>>>> <jee:jndi-lookup id="activemqConnectionFactory"
>>>> jndi-name="java:activemq/QueueConnectionFactory" />
>>>>
>>>> When i create an Session i'm receiving the proxy object
>>>> ManagedSessionProxy,
>>>> this object dont have the method for create BlobMessages but this
>>>> object
>>>> have ActiveMQSession. There is possibility to create blobMessages using
>>>> RA?
>>>> OR maybe if possible you create the method 'createBlobMessage'
>>>> ManagedSessionProxy in  in a future versions?
>>>>
>>>> Cheers,
>>>>
>>>> Diego Pacheco
>>>> @diego_pacheco
>>>> http://diego-pacheco.blogspot.com
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29055502.html
>>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>>
>>>>
>>>
>>>
>>> --
>>> http://blog.garytully.com
>>>
>>> Open Source Integration
>>> http://fusesource.com
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29057466.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> -- 
> http://blog.garytully.com
> 
> Open Source Integration
> http://fusesource.com
> 
> 

-- 
View this message in context: http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29064822.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: BlobMessage supports in RA

Posted by Gary Tully <ga...@gmail.com>.
You tried making get session public?

On Friday, July 2, 2010, Diego RR Pacheco <di...@gmail.com> wrote:
>
> Hi Gary,
>
> I tried but dosent works, i think JBoss dont allow us acess some objects
> like Session and Connection in this way, when i try that i received an
> Exception.
>
> I Fixed this issue re-compaling and patch ActiveMQ RA, i just add
> createBlobMessage in ManagedSessionProxy and it is working now.
>
> I will be glad if in the future releases this method be included on RA :D
>
> Cheers,
>
> Diego Pacheco
> @diego_pacheco
> http://diego-pacheco.blogspot.com
>
>
> Gary Tully wrote:
>>
>> The proxy only supports the standard JMS api, but I think it would make
>> sense to make the getSession() api public so you could get access to the
>> underlying session and call createBlobMessage(...), can you raise a jira
>> enhancement for that?
>>
>> On 2 July 2010 12:58, Diego RR Pacheco <di...@gmail.com> wrote:
>>
>>>
>>> Hi Guys,
>>>
>>> I'm working with Apache ActiveMQ 5.3.2 and JBoss AS 5.1.0 GA and using
>>> Resource Adapter Version 5.3.2 in my Architecture.
>>>
>>> My application uses jndi lookup to retrive ActiveMQ
>>> QueueConnectionFactory(showed above):
>>> <jee:jndi-lookup id="activemqConnectionFactory"
>>> jndi-name="java:activemq/QueueConnectionFactory" />
>>>
>>> When i create an Session i'm receiving the proxy object
>>> ManagedSessionProxy,
>>> this object dont have the method for create BlobMessages but this object
>>> have ActiveMQSession. There is possibility to create blobMessages using
>>> RA?
>>> OR maybe if possible you create the method 'createBlobMessage'
>>> ManagedSessionProxy in  in a future versions?
>>>
>>> Cheers,
>>>
>>> Diego Pacheco
>>> @diego_pacheco
>>> http://diego-pacheco.blogspot.com
>>> --
>>> View this message in context:
>>> http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29055502.html
>>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>> --
>> http://blog.garytully.com
>>
>> Open Source Integration
>> http://fusesource.com
>>
>>
>
> --
> View this message in context: http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29057466.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Re: BlobMessage supports in RA

Posted by Diego RR Pacheco <di...@gmail.com>.
Hi Gary,

I tried but dosent works, i think JBoss dont allow us acess some objects
like Session and Connection in this way, when i try that i received an
Exception.

I Fixed this issue re-compaling and patch ActiveMQ RA, i just add
createBlobMessage in ManagedSessionProxy and it is working now.

I will be glad if in the future releases this method be included on RA :D

Cheers,

Diego Pacheco 
@diego_pacheco 
http://diego-pacheco.blogspot.com


Gary Tully wrote:
> 
> The proxy only supports the standard JMS api, but I think it would make
> sense to make the getSession() api public so you could get access to the
> underlying session and call createBlobMessage(...), can you raise a jira
> enhancement for that?
> 
> On 2 July 2010 12:58, Diego RR Pacheco <di...@gmail.com> wrote:
> 
>>
>> Hi Guys,
>>
>> I'm working with Apache ActiveMQ 5.3.2 and JBoss AS 5.1.0 GA and using
>> Resource Adapter Version 5.3.2 in my Architecture.
>>
>> My application uses jndi lookup to retrive ActiveMQ
>> QueueConnectionFactory(showed above):
>> <jee:jndi-lookup id="activemqConnectionFactory"
>> jndi-name="java:activemq/QueueConnectionFactory" />
>>
>> When i create an Session i'm receiving the proxy object
>> ManagedSessionProxy,
>> this object dont have the method for create BlobMessages but this object
>> have ActiveMQSession. There is possibility to create blobMessages using
>> RA?
>> OR maybe if possible you create the method 'createBlobMessage'
>> ManagedSessionProxy in  in a future versions?
>>
>> Cheers,
>>
>> Diego Pacheco
>> @diego_pacheco
>> http://diego-pacheco.blogspot.com
>> --
>> View this message in context:
>> http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29055502.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> http://blog.garytully.com
> 
> Open Source Integration
> http://fusesource.com
> 
> 

-- 
View this message in context: http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29057466.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: BlobMessage supports in RA

Posted by Gary Tully <ga...@gmail.com>.
The proxy only supports the standard JMS api, but I think it would make
sense to make the getSession() api public so you could get access to the
underlying session and call createBlobMessage(...), can you raise a jira
enhancement for that?

On 2 July 2010 12:58, Diego RR Pacheco <di...@gmail.com> wrote:

>
> Hi Guys,
>
> I'm working with Apache ActiveMQ 5.3.2 and JBoss AS 5.1.0 GA and using
> Resource Adapter Version 5.3.2 in my Architecture.
>
> My application uses jndi lookup to retrive ActiveMQ
> QueueConnectionFactory(showed above):
> <jee:jndi-lookup id="activemqConnectionFactory"
> jndi-name="java:activemq/QueueConnectionFactory" />
>
> When i create an Session i'm receiving the proxy object
> ManagedSessionProxy,
> this object dont have the method for create BlobMessages but this object
> have ActiveMQSession. There is possibility to create blobMessages using RA?
> OR maybe if possible you create the method 'createBlobMessage'
> ManagedSessionProxy in  in a future versions?
>
> Cheers,
>
> Diego Pacheco
> @diego_pacheco
> http://diego-pacheco.blogspot.com
> --
> View this message in context:
> http://old.nabble.com/BlobMessage-supports-in-RA-tp29055502p29055502.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com