Getting started with Drools 6.5.0 Final

Followed the instruction from link

The used update url is:
https://download.jboss.org/drools/release/6.5.0.Final/org.drools.updatesite/

Creating directory with name starting with “.” in Windows 10

Expected result:

– Successfully creating directory called .p2

Adding bootstrap to angular4 project

The command prompt command to install bootstrap to your project:

npm install --save bootstrap

Edit your .angular-cli.json file to have the below highlight line in the “styles” section:

... 
"styles": [
        "../node_modules/bootstrap/dist/css/bootstrap.min.css",
        "styles.css"
      ],
...

The sample project can be cloned from: out-of-box-project

CORS Support in Spring Boot

project used: cors-enabled-spring-boot-testing

Spring Boot custom banner

Using Spring Boot without the parent POM

Things needed in your pom.xml

1. dependency management

<dependencyManagement>
        <dependencies>
            <dependency>
                <!-- Import dependency management from Spring Boot -->
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-dependencies</artifactId>
                <version>1.5.3.RELEASE</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
</dependencyManagement>

2. Spring Boot Maven Plugin

<plugin>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-maven-plugin</artifactId>
	<version>1.5.3.RELEASE</version>
	<executions>
		<execution>
			<goals>
				<goal>repackage</goal>
			</goals>
		</execution>
	</executions>
</plugin>

Reference

  1. using-boot-maven-without-a-parent
  2. build-tool-plugins-include-maven-plugin

Used project:source-code

MSSQL jdbc driver for maven project

Below is the jdbc driver dependency necessary to work with MSSQL database in a maven project.


<dependency>
   <groupId>com.microsoft.sqlserver</groupId>
   <artifactId>sqljdbc4</artifactId>
   <version>4.0</version>
</dependency>

Use of the ABOVE fails with BELOW error in my project:

 Could not find artifact com.microsoft.sqlserver:sqljdbc4:jar:4.0 in central (https://repo.maven.apache.org/maven2) 

To fix this, I added the below repository in my pom.xml:

<repositories>
   <repository>
      <id>clorjars</id>
      <name>Clojars Repository</name>
      <url>https://clojars.org/repo/</url>
   </repository>
</repositories>

Starting / Shutting down mongodb on CentOS 7

Starting:
mongod --config /etc/mongod.conf

stopping:
mongo
use admin;
db.shutdownServer({timeoutSecs: 60});

to verify:
ps -ef | grep mongo

Spring boot ActiveMQ queue producer and listener

project used: queue-test

Basic authentication on Apache ActiveMQ

Below is the snippet of configuration which was used in the video to change the password:

 <broker>
 …
  <plugins>
     <simpleAuthenticationPlugin>
         <users>
             <authenticationUser username="admin" password="password1"
             groups="admins,publishers,consumers"/>
         </users>
     </simpleAuthenticationPlugin>
  </plugins>
  …
 </broker>