This content has been marked as final.
Show 2 replies
-
1. Re: JMS 2.0 how to specify user credentials?
jmesnil Jan 22, 2014 6:37 AM (in response to mylos78)1 of 1 people found this helpfulEither you can annotate your JMSContext with the credentials:
@Inject
@JMSConnectionFactory("java:/MyConnectionFactory")
@JMSPasswordCredential(userName="guest",password="guest")
private JMSContext context;
or you can pass them to the @JMSConnectionFactoryDefinition:
@JMSConnectionFactoryDefinition(
name = "java:/MyConnectionFactory",
className = "javax.jms.ConnectionFactory",
user = "guest",
password = "guest"
)
-
2. Re: JMS 2.0 how to specify user credentials?
mylos78 Jan 24, 2014 4:38 AM (in response to jmesnil)Thanks a lot Jeff!