Skip to content

Instantly share code, notes, and snippets.

View kitplummer's full-sized avatar
🏠
Working from home

Kit Plummer kitplummer

🏠
Working from home
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<ipojo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/CURRENT/core.xsd"
xmlns="org.apache.felix.ipojo">
<component classname="com.dozersoftware.snap.pidgeon.PidgeonOut" name="PidgeonOut">
<callback transition="validate" method="starting" />
<callback transition="invalidate" method="stopping" />
<properties>
package com.dozersoftware.snap.pidgeon;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.InetAddress;
import java.net.MulticastSocket;
import java.util.logging.Logger;
import javax.jms.Connection;
import javax.jms.JMSException;
dozer:runtime kplummer$ bin/run.sh -c web
=========================================================================
JBossOSGi Bootstrap Environment
OSGI_HOME: /Users/kplummer/Development/Servers/jboss-osgi-1.0.0.Beta9/runtime
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -Dosgi.home=/Users/kplummer/Development/Servers/jboss-osgi-1.0.0.Beta9/runtime -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.vfs.leakDebugging=true
@kitplummer
kitplummer / settings.xml
Created November 12, 2010 14:25
Maven settings.xml for SNAP.
<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<servers>
<server>
<username>snap</username>
<password>snap</password>
<id>central</id>
</server>
<server>
import org.apache.activemq.ActiveMQConnectionFactory;
import org.apache.activemq.broker.BrokerService;
...
@Inject
private BundleContext bundleContext;
private BrokerService broker;
private ActiveMQConnectionFactory connectionFactory;
@Before
public void setup() throws Exception {
@After
public void shutdown() throws Exception {
if(null != broker) {
broker.stop();
}
}
@Configuration
public static Option[] configuration() {
return options(felix(), profile("spring.dm"), provision(
....
mavenBundle().groupId("org.apache.geronimo.specs").artifactId("geronimo-jms_1.1_spec"),
mavenBundle().groupId("org.apache.geronimo.specs").artifactId("geronimo-annotation_1.0_spec"),
mavenBundle().groupId("org.apache.geronimo.specs").artifactId("geronimo-j2ee-management_1.1_spec"),
mavenBundle().groupId("org.apache.activemq").artifactId("kahadb"),
mavenBundle().groupId("org.apache.activemq").artifactId("activemq-core").version("5.4.2"),
mavenBundle().groupId("com.bundleundertest").artifactId("mybundle")
@kitplummer
kitplummer / 2011
Created March 16, 2011 17:30
Gist as a Journal?
Possibly. May try it, especially with this cool Chrome extension. :)
Veewee::Session.declare( {
:cpu_count => '1',
:memory_size=> '384',
:disk_size => '10140',
:disk_format => 'VDI',
:disk_size => '10240' ,
:os_type_id => 'RedHat',
:iso_file => "CentOS-5.5-i386-netinstall.iso",
:iso_src => "http://mirror.bytemark.co.uk/centos/5.5/isos/i386/CentOS-5.5-i386-netinstall.iso",
:iso_md5 => "0172883a3039772165db073693debae5",
from irb using the api