openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r809347 - in /incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms: JmsReceiverBean.java JmsSenderBean.java
Date Sun, 30 Aug 2009 14:49:53 GMT
Author: gerdogdu
Date: Sun Aug 30 14:49:52 2009
New Revision: 809347

URL: http://svn.apache.org/viewvc?rev=809347&view=rev
Log:
Update for JSR-330

Modified:
    incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsReceiverBean.java
    incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsSenderBean.java

Modified: incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsReceiverBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsReceiverBean.java?rev=809347&r1=809346&r2=809347&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsReceiverBean.java
(original)
+++ incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsReceiverBean.java
Sun Aug 30 14:49:52 2009
@@ -18,6 +18,7 @@
 import java.util.List;
 
 import javax.enterprise.context.SessionScoped;
+import javax.inject.Inject;
 import javax.inject.Named;
 import javax.jms.JMSException;
 import javax.jms.Message;
@@ -34,9 +35,9 @@
 {
     private static final long serialVersionUID = 5704416477431590842L;
 
-    private @JmsBinding QueueReceiver queueReceiver;
+    private @Inject @JmsBinding QueueReceiver queueReceiver;
     
-    private @JmsBinding QueueConnection queueConnection;
+    private @Inject @JmsBinding QueueConnection queueConnection;
     
     private String message;
     

Modified: incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsSenderBean.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsSenderBean.java?rev=809347&r1=809346&r2=809347&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsSenderBean.java
(original)
+++ incubator/openwebbeans/trunk/samples/jms-sample/src/main/java/org/apache/webbeans/sample/jms/JmsSenderBean.java
Sun Aug 30 14:49:52 2009
@@ -17,6 +17,7 @@
 package org.apache.webbeans.sample.jms;
 
 import javax.enterprise.context.RequestScoped;
+import javax.inject.Inject;
 import javax.inject.Named;
 import javax.jms.JMSException;
 import javax.jms.QueueSender;
@@ -29,9 +30,9 @@
 @Named("sender")
 public class JmsSenderBean
 {
-    private @JmsBinding QueueSender queueSender;
+    private @Inject @JmsBinding QueueSender queueSender;
     
-    private @JmsBinding QueueSession queueSession;
+    private @Inject @JmsBinding QueueSession queueSession;
     
     private String text;
 



Mime
View raw message