Created
December 31, 2010 13:59
-
-
Save johnament/761027 to your computer and use it in GitHub Desktop.
Should these two producers be the exact same?
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
@Produces | |
@ApplicationScoped | |
@Resource("/ConnectionFactory") | |
private ConnectionFactory cf; | |
vs. | |
@Resource("/ConnectionFactory") | |
private ConnectionFactory cf; | |
@Produces | |
@ApplicationScoped | |
public ConnectionFactory getConnectionFactory() { | |
return cf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment