Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created November 26, 2015 19:40
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/f7c194eb6ffe25edeedb to your computer and use it in GitHub Desktop.
Save abhirockzz/f7c194eb6ffe25edeedb to your computer and use it in GitHub Desktop.
A Singleton powered by @startup to bootstrap JMS resources
@Singleton
@Startup
@JMSDestinationDefinition(interfaceName = "javax.jms.Queue", name = "java:comp/env/EmailQueue")
public class EmailQueueAutoProvisionService {
@PostConstruct
public void confirm(){
System.out.println("Email Queue configured");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment