• Home
  • Courses
  • Blog
    For more information
    info@skills421.com
    RegisterLogin
    Skills421Skills421
    • Home
    • Courses
    • Blog

      Blog

      • Home
      • Blog
      • Page 29
      Showing 281-290 of 290 results
      John Dunning

      Create a Simple JPA Query

      • Posted by John Dunning
      • Categories Java, Programming Languages
      • Date January 5, 2013
      • Comments 0 comment
      January 5, 2013
      0

      Create a simple PostgreSQL Database Table psql mydb mydb=# create user john with password ‘secret’; CREATE ROLE mydb=# create table person( personid serial, name varchar(30), age integer, height decimal (4,2) ); NOTICE: CREATE TABLE will create implicit sequence “person_personid_seq” for serial …

      Read More
      John Dunning

      Create a Maven JPA Project

      • Posted by John Dunning
      • Categories Build Automation, Java, Programming Languages
      • Date January 5, 2013
      • Comments 0 comment
      January 5, 2013
      0

      These instructions are for Eclipse or Spring Tool Suite (STS) 1. Make Certain you have a Database Connection Window -> Show View -> Other -> Database Management -> Database Explorer Database Connections -> New -> PostgreSQL -> Next New Driver …

      Read More
      John Dunning

      Lock Down Location Services on iPhone

      • Posted by John Dunning
      • Categories iOS, Operating Systems
      • Date January 5, 2013
      • Comments 0 comment
      January 5, 2013
      0

      Obviously location services and find my iPhone are useless if the first thing a would-be thief does is turn off location services and find my iPhone. Here is a great article that explains how to lock down location services and …

      Read More
      John Dunning

      JBoss Drools Business Rules Won’t build

      • Posted by John Dunning
      • Categories Rule Engines
      • Date January 3, 2013
      • Comments 0 comment
      January 3, 2013
      0

      I couldn’t find any updates to the Pom.xml in Chapter6 of the examples for the book JBoss Drools Business Rules, so I’ve updated it myself. This current version works as of 3.1.2013 [sourcecode language=”xml”] <?xml version=”1.0″ encoding=”UTF-8″?> <project xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd” …

      Read More
      John Dunning

      Spring Java Based Config

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      The following app-context.xml [sourcecode language=”xml”] <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xmlns:p=”http://www.springframework.org/schema/p” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd”> <context:annotation-config/> <bean id=”profile” class=”com.skills421.spring15.beans.Profile”/> <bean id=”student1″ class=”com.skills421.spring15.beans.Student” p:name=”John Doe” p:age=”21″/> <bean id=”student2″ class=”com.skills421.spring15.beans.Student” p:name=”Jane Doe” p:age=”19″/> </beans> [/sourcecode] can be replaced with the …

      Read More
      John Dunning

      Spring Annotations @Qualifier or @Resource

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      What Doesn’t Change app-context.xml [sourcecode language=”xml”] <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xmlns:p=”http://www.springframework.org/schema/p” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd”> <context:annotation-config/> <bean id=”profile” class=”com.skills421.spring15.beans.Profile”/> <bean id=”student1″ class=”com.skills421.spring15.beans.Student” p:name=”John Doe” p:age=”21″/> <bean id=”student2″ class=”com.skills421.spring15.beans.Student” p:name=”Jane Doe” p:age=”19″/> </beans> [/sourcecode] Student.java [sourcecode language=”java”] package …

      Read More
      John Dunning

      Spring Annotations

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      [sourcecode language=”xml”] <?xml version=”1.0″ encoding=”UTF-8″?> <beans xmlns=”http://www.springframework.org/schema/beans” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:context=”http://www.springframework.org/schema/context” xsi:schemaLocation=”http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd”> <context:annotation-config/> </beans> [/sourcecode] Annotations include: @Required @Autowired @Qualifier @Resource @PostConstruct @PreDestroy Autowired Annotations @AutoWired @AutoWired(required=false) @AutoWired @Qualifier(“student1”) @Resource(name=”student1″) AutoWired = required by default

      Read More
      John Dunning

      Spring Bean Life Cycle

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      Initialization Callbacks Destruction Callbacks Initialization Callbacks public class Example1 implements InitializingBean { public void afterPropertiesSet() { } } <bean id=”exampleBean” class=”Example2″ init-method=”init”/> public class Example2 { public void init() { } } Destruction Callbacks public class Example1 implements DisposableBean { …

      Read More
      John Dunning

      Spring Bean Scopes

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      singleton (default) only one instance per Spring Container prototype any number of instances request scoped to an HTTP request (web-aware Spring ApplicationContext) session scoped to an HTTP session (web-aware Spring ApplicationContext) global-session scoped to a global HTTP session (web-aware Spring …

      Read More
      John Dunning

      Spring Configuration Methods

      • Posted by John Dunning
      • Categories Java, Programming Languages, Spring
      • Date January 2, 2013
      • Comments 0 comment
      January 2, 2013
      0

      XML based config file Annotation-based configuration Java-based configuration XML based config file [sourcecode language=”xml”] <!–?xml version=”1.0″ encoding=”UTF-8″?–> <!– A simple bean definition –> <!– collaborators and configuration for this bean go here –> <!– A bean definition with lazy init …

      Read More
      • <
      • 1
      • …
      • 28
      • 29

      Search

      Categories

      • APIs
      • Articles
      • Automated Testing
      • AWS
      • Blog
      • Blogging
      • Build Automation
      • Business
      • C
      • Camel
      • Cloud
      • Confluence
      • Containers
      • Content Management
      • CSS
      • Databases
      • Derby
      • Design / Branding
      • Digital Setup
      • Docker
      • Drools
      • Eclipse
      • Facebook
      • Finance
      • Fitnesse
      • Git
      • GraphDB
      • Graphileon
      • Heroku
      • Home Schooling
      • HTML
      • Humour
      • IDEs
      • IntelliJ IDEA
      • iOS
      • Java
      • JavaFX
      • JMS
      • Links
      • MacOS
      • Marketing
      • Maven
      • Mercurial
      • Modelling Languages
      • MongoDB
      • Neo4j
      • Node.js
      • NoSQL
      • Offices
      • OPA
      • OpenShift
      • Operating Systems
      • Phonics
      • Platforms
      • Programming
      • Programming Languages
      • Python
      • Relational
      • Resources
      • Route 53
      • Rule Engines
      • S3
      • Servers
      • Source Control
      • Spring
      • Subversion
      • TiddlyWiki
      • Tools
      • Training Courses
      • UML
      • Version Control
      • Web
      • Web Services
      • Wiki
      • Wikis
      • Windows
      • WordPress
      • WordPress.com

      Latest Courses

      Nodejs for Beginners

      Nodejs for Beginners

      Coming soon
      Understanding DNS

      Understanding DNS

      Coming soon
      jQuery Mobile for Beginners

      jQuery Mobile for Beginners

      Coming soon
      info@skills421.com
      Facebook-f
      Twitter
      Instagram

      Copyright © 2020 - Cloud2K t/a Skills421

      • Privacy
      • Terms

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account

      Are you a member? Login now