Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created September 13, 2015 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/faf399bc14a238250d27 to your computer and use it in GitHub Desktop.
Save abhirockzz/faf399bc14a238250d27 to your computer and use it in GitHub Desktop.
Specifying JMS Session Mode
@Inject
@JMSConnectionFactory("jms/myConnectionFactory")
//Accepts an integer. Other options are: JMSContext.SESSION_TRANSACTED, JMSContext.CLIENT_ACKNOWLEDGE and JMSContext.DUPS_OK_ACKNOWLEDGE
@JMSSessionMode(JMSContext.AUTO_ACKNOWLEDGE)
JMSContext ctx;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment