Skip to content

Instantly share code, notes, and snippets.

@skoussou
Created November 1, 2018 09:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skoussou/1b9e70a4a2e1be2397ad6b5a250b5cbe to your computer and use it in GitHub Desktop.
Save skoussou/1b9e70a4a2e1be2397ad6b5a250b5cbe to your computer and use it in GitHub Desktop.
RTS PAM Commands
@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

cd bc/bin
./add-user.sh --user admin --password admin710!! --role admin

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

./standalone.sh -c standalone-full.xml -b 127.0.0.1

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

BC: http://localhost:8080/business-centraL (login with rhpamadmin)
eap admin console http://locahost:9990 (login with admin)

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

org.uberfire.nio.git.daemon.host | 127.0.0.1
org.uberfire.nio.git.ssh.host | 127.0.0.1

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

cd bc/bin
./jboss-cli.bat
connect 127.0.0.1:9990
/deployment=business-central.war:redeploy

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

    <property name="org.uberfire.nio.git.daemon.host" value="127.0.0.1"/>
    <property name="org.uberfire.nio.git.ssh.host" value="127.0.0.1"/>

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

/home/stkousso/.m2/repository
<profiles>
<profile>
  <id>jboss-ga-repository</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
<repositories>
	<repository>
		<id>jboss-ga-repository</id>
		<url>https://maven.repository.redhat.com/ga/</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</repository>
</repositories>

<pluginRepositories>
	<pluginRepository>
		<id>jboss-ga-plugin-repository</id>
		<url>https://maven.repository.redhat.com/ga/</url>
		<releases>
			<enabled>true</enabled>
		</releases>
		<snapshots>
			<enabled>false</enabled>
		</snapshots>
	</pluginRepository>
</pluginRepositories>
</profile>

<!-- Configure the JBoss Early Access Maven repository -->
<profile>
  <id>jboss-earlyaccess-repository</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
  <repositories>
    <repository>
      <id>jboss-earlyaccess-repository</id>
      <url>http://maven.repository.redhat.com/earlyaccess/all/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </repository>
  </repositories>
  <pluginRepositories>
    <pluginRepository>
      <id>jboss-earlyaccess-plugin-repository</id>
      <url>http://maven.repository.redhat.com/earlyaccess/all/</url>
      <releases>
        <enabled>true</enabled>
      </releases>
      <snapshots>
        <enabled>false</enabled>
      </snapshots>
    </pluginRepository>
  </pluginRepositories>
</profile>

   <profile>
        <id>rhpam-profile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
            <repository>
                <id>rhpam-local-maven-repository</id>

file:///home/stkousso/Stelios/sw10/BPMS/Distros/7.0.2/rhpam-7.0.2-maven-repo/maven-repository

false


true





rhpam-local-maven--plugin-repository

file:///home/stkousso/Stelios/sw10/BPMS/Distros/7.0.2/rhpam-7.0.2-maven-repo/maven-repository

true


false



<activeProfiles>

    <activeProfile>jboss-ga-repository</activeProfile>
    <activeProfile>jboss-earlyaccess-repository</activeProfile>
    <activeProfile>rhpam-profile</activeProfile>

</activeProfiles>

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

@skoussou
Copy link
Author

skoussou commented Nov 1, 2018

<property name="kie.maven.settings.custom" value="/home/stkousso/Stelios/sw10/EAP/Distros/EAP/7.1.0/jboss-eap-7.1-pam702/settings.xml"/>

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

<property name="kie.maven.settings.custom" value="/home/stkousso/Stelios/sw10/EAP/Distros/EAP/7.1.0/jboss-eap-7.1-pam702/settings.xml"/>

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

git remote -v
git remote rename origin bc
git remote add gitlab https://gitlab.consulting.redhat.com/stkousso/rts.git

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

./standalone.sh -c standalone-full.xml -b 127.0.0.1 -Djboss.socket.binding.port-offset=100

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

BC SERVER SIDE (a user to control the KIE SERVERs, the installation of this user HAS TO HAPPEN on the KIE SERVER side with ./add-user command see below)
<property name="org.kie.server.user" value="kieserverController"/> <property name="org.kie.server.pwd" value="kieserver1!"/>

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

KIE SERVER SIDE
./add-user.sh -a --user kieserverController --password kieserver1! --role kie-server (the installation of the controller user)
./add-user.sh -a --user pamAdmin --password pamAdmin123! --role kie-server (the installation of the user we login in BC - like a controller user on the UI)

KIE SERVER SIDE

<property name="org.kie.server.controller.user" value="pamAdmin"/>
<property name="org.kie.server.controller.pwd" value="pamAdmin123!"/>
<property name="org.kie.server.id" value="pam-kie-server-1"/>
<property name="org.kie.server.location" value="http://localhost:8180/kie-server/services/rest/server"/>
<property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"

@llecorps
Copy link

llecorps commented Nov 2, 2018

module add --name=com.microsoft --resources=D:/dev/lib/sqljdbc42.jar --dependencies=javax.api,javax.transaction.api,javax.xml.bind.api

@llecorps
Copy link

llecorps commented Nov 2, 2018

/subsystem=datasources/jdbc-driver=sqlserver:add(driver-name=sqlserver,driver-module-name=com.microsoft,driver-xa-datasource-class-name=com.microsoft.sqlserver.jdbc.SQLServerXADataSource)

@llecorps
Copy link

llecorps commented Nov 2, 2018

xa-data-source add --name=KIEXADS --jndi-name=java:jboss/KIEXADS --driver-name=sqlserver --user-name=rhpam_i --password=rhpam_i --validate-on-match=true --background-validation=false --background-validation=false --valid-connection-checker-class-name=org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLValidConnectionChecker --exception-sorter-class-name=org.jboss.jca.adapters.jdbc.extensions.mssql.MSSQLExceptionSorter --same-rm-override=false --xa-datasource-properties={"ServerName"=>"gico-vm-sqlint","DatabaseName"=>"rhpam_i","SelectMethod"=>"cursor","PortNumber"=>"49921"}

@skoussou
Copy link
Author

skoussou commented Nov 2, 2018

    <property name="org.kie.server.persistence.ds" value="java:jboss/datasources/KIEDS"/>
    <property name="org.kie.server.persistence.dialect" value="org.hibernate.dialect.SQLServer2012Dialect"/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment