Created
November 26, 2015 19:40
-
-
Save abhirockzz/f7c194eb6ffe25edeedb to your computer and use it in GitHub Desktop.
A Singleton powered by @startup to bootstrap JMS resources
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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