Re: [Resin-interest] Does Resin 4.0 support integration with ActiveMQ via JCA?

2013-02-11 Thread Sadhana Jain

Hello Scott,

I checked that you have updated the docs:
http://wiki4.caucho.com/Resin_ActiveMQ_How_to
And http://wiki4.caucho.com/Resin_JCA_ActiveMQ_How_to. I followed the
document to change my code 
(I was not using both @Inject and @Named together) but it still didn't work
for me. By this I mean I don't get reference to the injected factory or
Queue in my code. 

One question I have is that I should be able to use these annotations in any
class not just in the servlet, right? I tried both with and without JCA...

Did the code you posted in the document work for you with ActiveMQ? Could
you give me any idea what I could be doing wrong? I will post my code below.

Thank you very much,
Sadhana

resin-web.xml
=

   resource-adapter class=org.apache.activemq.ra.ActiveMQResourceAdapter
init server-url=vm://localhost/
/resource-adapter

 connection-factory
class=org.apache.activemq.ra.ActiveMQManagedConnectionFactory
name=activemq /
 
 jms-queue class=org.apache.activemq.command.ActiveMQQueue 
name=aeQueue
   init physical-name=aeQueue/
 /jms-queue

Class JobManager.java
==

public class JobManager {

@Inject @Named(activemq) QueueConnectionFactory jobQueueFactory;
@Inject @Named(aeQueue) Queue aEmailQueue;

=

I'll need to update the docs (and test with ActiveMQ). The example you 
gave used a very old draft of CDI (before it was called CDI.)

The injection annotation is @javax.inject.Inject.

Do you need JCA? (For example, for XA support.) If you don't, the 
non-JCA configuration would be simpler.

-- Scott

 Thanks a lot,
 Sadhana


 ___
 resin-interest mailing list
 resin-interest@caucho.com
 http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


-- 
View this message in context: 
http://old.nabble.com/Does-Resin-4.0-support-integration-with-ActiveMQ-via-JCA--tp34990885p35010225.html
Sent from the Resin mailing list archive at Nabble.com.


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Does Resin 4.0 support integration with ActiveMQ via JCA?

2013-02-06 Thread Sadhana Jain
Hello Resin Developers,

Could you please confirm if the ActiveMQ integration is supported and will
work with Resin 4.0? I don't see any documentation on it and therefore am
unable to figure out how to configure the jms queue in the resin-web.xml
file. The old way (resin 3.x) of configuring it doesn't seem to work. Also,
I am trying to find out how to get the sources for JMSQueue implementation
so I can debug the issue myself. Could someone please help me?

Thanks a lot,
Sadhana
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Does Resin 4.0 support integration with ActiveMQ via JCA?

2013-02-06 Thread Scott Ferguson

On 2/6/13 10:09 AM, Sadhana Jain wrote:

Hello Resin Developers,

Could you please confirm if the ActiveMQ integration is supported and 
will work with Resin 4.0? I don't see any documentation on it and 
therefore am unable to figure out how to configure the jms queue in 
the resin-web.xml file. The old way (resin 3.x) of configuring it 
doesn't seem to work. Also, I am trying to find out how to get the 
sources for JMSQueue implementation so I can debug the issue myself. 
Could someone please help me?


I'll need to update the docs (and test with ActiveMQ). The example you 
gave used a very old draft of CDI (before it was called CDI.)


The injection annotation is @javax.inject.Inject.

Do you need JCA? (For example, for XA support.) If you don't, the 
non-JCA configuration would be simpler.


-- Scott


Thanks a lot,
Sadhana


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest