This content has been marked as final.
Show 3 replies
-
1. Re: JNDI datasource for only one web application. Possible?
mayerw01 Jan 7, 2017 5:27 AM (in response to cshong)Access to the datasource is usually controlled by the database. You should therefore use a separate account for this special datasource.
-
2. Re: JNDI datasource for only one web application. Possible?
cshong Jan 7, 2017 6:59 PM (in response to mayerw01)That is what I am doing. The question is, once I setup this special datasource in Wildfly as JNDI datasource, how can I make only one deployed applicatipn can access this JNDI datasource while other application cannot access this JNDI datasource?
-
3. Re: JNDI datasource for only one web application. Possible?
mayerw01 Jan 8, 2017 8:38 AM (in response to cshong)What is exactly your business case?
But it should be able to add the connection properties in your persistence.xml like
<property name="hibernate.connection.username" value="${userName}"/>
<property name="hibernate.connection.password" value="${passWort}"/>
So only this one application should be able to access the database