--
You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/a4e9dc6b-daef-44cb-be8e-4d398afa4d16%40googlegroups.com.
On Thu, May 14, 2020 at 1:13 PM Animesh Tiwari <animeshs...@gmail.com> wrote:
Dear All,--How to configure DB user authentication in jBPM 7.14 with oracle DB. Are create users/roles tables? if yes Please share the structure of these tables with dummy data.ThanksAnimesh
You received this message because you are subscribed to the Google Groups "jBPM Setup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/abeb6a20-1c0f-497e-b617-2770e3b17a4b%40googlegroups.com.
1.
Modify domain.xml
located at jbpm-server-7.14.0.Final-dist\domain\configuration. You need to modify database configuration as shown
below:
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver>oracle</driver>
<security>
<user-name>Int_bpm</user-name>
<password>Int_bpm</password>
</security>
</datasource>
<drivers>
<driver name="oracle" module="oracle.jdbc">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
2. Modify standalone.xml located at jbpm-server-7.14.0.Final-dist\standalone\configuration
· Add following one system properties:
<property name="org.kie.server.persistence.dialect" value="org.hibernate.dialect.SQLServer2012Dialect"/>
For Oracle, dialect should be org.hibernate.dialect.Oracle10gDialect.
· Change datasources as shown below:
<subsystem xmlns="urn:jboss:domain:datasources:5.0">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:oracle:thin:@localhost:1521:orcl</connection-url>
<driver>oracle</driver>
<security>
<user-name>Int_bpm</user-name>
<password>Int_bpm</password>
</security>
</datasource>
<drivers>
<driver name="oracle" module="oracle.jdbc">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
c. Make sure you are using the same JNDI name in <system-properties> tag as define in datasource.
<property name="org.kie.server.persistence.ds" value="java:jboss/datasources/ExampleDS"/>
<property name="org.kie.server.persistence.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
3. Modules setup.
Go to : \jbpm-server-7.14.0.Final-dist\modules\system\layers\base
location and create following folder structure: : \jbpm-server-7.14.0.Final-dist\modules\system\layers\base
\oracle\jdbc\main
Now Place the following files there:
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/abeb6a20-1c0f-497e-b617-2770e3b17a4b%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/abeb6a20-1c0f-497e-b617-2770e3b17a4b%40googlegroups.com.
i) Remove <properties> tag that contain kie.keystore
ii)Add following properties ,
<property name="org.kie.server.user" value="adminusername"/>
<property name="org.kie.server.pwd" value="adminpassword"/>
<property name="org.kie.server.controller.user" value="adminusername"/>
<property name="org.kie.server.controller.pwd" value="adminpassword"/>
<security-domain name="other" cache-type="default">
<authentication>
<login-module code="Remoting" flag="optional">
<module-option name="password-stacking" value="useFirstPass"/>
</login-module>
<login-module code="org.jboss.security.auth.spi.DatabaseServerLoginModule" flag="required">
<module-option name="dsJndiName" value="java:jboss/datasources/jBPMDS"/>
<module-option name="principalsQuery" value="select passwd from Users where username=?"/>
<module-option name="rolesQuery" value="select role, 'Roles' from UserRoles where username=?"/>
</login-module>
This changes works for me , and i am able to login as db user.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-setup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/1f6e29b9-8242-410a-9bd1-778f93502ad2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-setup/1f6e29b9-8242-410a-9bd1-778f93502ad2%40googlegroups.com.