Neo4j – First Steps

Install and Run Neo4j Desktop Download Neo4j Desktop ( the downloaded filerun the Neo4j Desktop app Create your First Project Add a Graph Click Add Graphclick Create a Local GraphName your GraphSet a PasswordClick Create Start your Graph Click Start Launch the Neo4j Browser Click Neo4j Browser Create your first Nodes always work... Continue Reading →

Drools 6.x Basic Example

Creating the Project Open EclipseNew -> Maven Project (simple project)Simple ProjectGroup Id: com.skills421.examples.droolsArtifact Id: Drools6.xExampleFinish Structure pom.xml Rule Runner src/main/java com.skills421.examples.drools.controller.RuleRunner RuleRunnerException src/main/java com.skills421.examples.drools.exceptions.RuleRunnerException Fact src/main/java com.skills421.examples.drools.facts.Fact RuleResponse src/main/java com.skills421.examples.drools.facts.RuleResponse Person src/main/java com.skills421.examples.drools.facts.Person Rules src/main/resources/com/skills421/examples/drools/people DrinkingRules.drl kmodule.xml src/main/resources/META-INF kmodule.xml Main src/main/java com.skills421.examples.drools.Main Output

EAP Webservice with Camel on Openshift – part 2

This post follows on from EAP Webservice with Camel on Openshift – part 1Part3 – Moving our EAP to Openshift can be found here Part 2 - Deploying to JBoss EAP Overview For the last few days I have been getting to grips with JBoss Openshift, which is JBoss' answer to PAAS - Platform as a Service. Like all relatively... Continue Reading →

@Autowired and @Qualifier Annotations for Spring

We use @Autowired to automatically wire our bean dependencies. Example In the following example, we have autowired the home address for our student from the previous example. Spring will look for a single bean with a type that matches the type for home. If it finds this bean then it will automatically inject that bean... Continue Reading →

@Required Spring Annotation

@Required We use the @Required annotation to tell Spring that a property on a bean is required. Here we have applied the @Required annotation to the method setStudentId. student1.xml This will do nothing if we do not add the RequiredAnnotationBeanPostProcessor bean to our Spring config xml file. Now we can bring it all... Continue Reading →

Spring 3 – Injecting Values with XML Config

Overview This post demonstrates setting Spring Bean property values using an xml config file. The example demonstrates the following principles: setter injection constructor injection (by index) multiple argument injection (by name) bean injection by reference list injection (by value and by reference) aliases Example The following example is presented as a Maven Project.  The Spring... Continue Reading →

Spring 3 – Basic Example

Creating the Project Open Eclipse (Kepler) New -> Maven Project Simple Project Group Id: com.skills421.examples.spring Artifact Id: Spring3.2.6Example Finish pom.xml Person bean src/main/java com.skills421.examples.spring.model.Person ApplicationContext src/main/resources ApplicationContext.xml Main src/main/java com.skills421.examples.spring.Main Output

Up ↑

%d bloggers like this: