Skip to content

Commit

Permalink
Removed files (really this time).
Browse files Browse the repository at this point in the history
Changed session producer to create application scoped sessions.
  • Loading branch information
johnament committed Mar 14, 2011
1 parent 3d743ac commit 428c5c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 72 deletions.
41 changes: 0 additions & 41 deletions api/src/main/java/org/jboss/seam/jms/annotations/Async.java

This file was deleted.

This file was deleted.

Expand Up @@ -19,6 +19,7 @@
import java.lang.annotation.Annotation;
import java.util.Iterator;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.context.RequestScoped;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
Expand All @@ -33,10 +34,10 @@
public
class SessionProducer
{
@Produces
public Session getSession(InjectionPoint ip, Connection c) throws JMSException
@Produces @ApplicationScoped
public Session getSession(Connection c) throws JMSException
{
JmsSession s = null;
/*JmsSession s = null;
if (ip != null)
{
// Check for JmsSession annotation
Expand All @@ -59,7 +60,7 @@ public Session getSession(InjectionPoint ip, Connection c) throws JMSException
{
return c.createSession(s.transacted(), s.acknowledgementMode());
}
}
}*/

// Default case where we cannot find an annotation
return c.createSession(false, Session.AUTO_ACKNOWLEDGE);
Expand Down

0 comments on commit 428c5c8

Please sign in to comment.