Skip to content

Instantly share code, notes, and snippets.

View alanhay's full-sized avatar

Alan Hay alanhay

  • Edinburgh, Scotland
View GitHub Profile

These steps can be used to install OSGI wrapped Oracle driver to Spring Roo's cache dir

  1. install oracle driver (eg ojdbc6.jar) to your local maven repository

  2. use the pom file in a new osgi-ojdbc project from above or create one using roo's addon create wrapper

If you create using ROO's add on, make sure the tag has the content from above pom.xml

package com.sample.dao.impl
import java.util.List;
import javax.persistence.EntityManager;
import javax.persistence.Query;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
@alanhay
alanhay / applicationContext-jms-test.xml
Last active October 11, 2015 11:37 — forked from rponte/applicationContext-jms-test.xml
Embedded ActiveMQ with JMX on Spring 3.x #sample_spring_jms_config
<?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:jms="http://www.springframework.org/schema/jms" xmlns:p="http://www.springframework.org/schema/p"
xmlns:amq="http://activemq.apache.org/schema/core"
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
http://www.springframework.org/schema/jms http://www.springframework.org/schema/jms/spring-jms-3.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd">