Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Charles Moulliard cmoulliard

🏠
Working from home
View GitHub Profile
View FromWSCreateDocumentToJMS.java
package eu.spb.poc.routing.blob;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.List;
import javax.activation.DataHandler;
View gist:6682851
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0">
<bean id="plainAndSimple" class="org.jboss.fuse.training.jar.PlainAndSimple"
init-method="afterPropertiesSet" destroy-method="destroy">
<property name="simpleMessage" value="Hello CGI-SG Students"/>
</bean>
</blueprint>
@cmoulliard
cmoulliard / gist:6683302
Created Sep 24, 2013
Features to deploy OSGI Service
View gist:6683302
<!-- ServiceMix Exercises Client -->
<feature name="servicemix-exercise-osgi-client">
<feature>spring</feature>
<feature>spring-dm</feature>
<configfile finalname="/etc/greeterClient.cfg">file:///home/chmoulli/Repos/fuse/training/redhat-fuse-training-cgi/servicemix/servicemix-exercises-osgi-client/etc/greeterClient.cfg</configfile>
<bundle>mvn:org.jboss.fuse.training/servicemix-exercises-osgi-client/${pom.version}</bundle>
</feature>
<!-- ServiceMix Exercises Service -->
<feature name="servicemix-exercise-osgi-service">
View gist:6715243
mvn archetype:generate -DarchetypeGroupId=org.fusesource.fabric -DarchetypeArtifactId=camel-cxf-contract-first-archetype -DarchetypeVersion=7.2.0.redhat-024
View gist:6726722
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xmlns:amq="http://activemq.apache.org/schema/core">
<manifest>
Export-Service = javax.jms.ConnectionFactory
</manifest>
<!-- Allows us to use system properties as variables in this configuration file -->
View MailAttachmentTest.java
/**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View gist:6825342
---
layout: default
title: test
documentationExpanded: false
postsExpanded: false
---
= Charles Writer's Guide
Mail to <ch007m@gmail.com>
:toc:
View gist:6914237
or.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:98) at org.jolokia.handler.ExecHandler.doHandleRequest(ExecHandler.java:40) at org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:89) at org.jolokia.backend.MBeanServerExecutorLocal.handleRequest(MBeanServerExecutorLocal.java:109) at org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:102) at org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:91) at org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:388) at org.jolokia.backend.BackendManager.handleRequest(BackendManager.java:150) at org.jolokia.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:197) at org.jolokia.http.HttpRequestHandler.handlePostRequest(HttpRequestHandler.java:131) at org.jolokia.http.AgentServlet$2.handleRequest(AgentServlet.java:284) at org.jolokia.http.AgentSer
View gist:6914527
rror while interpolating: {{getGitURL(row.jolokiaUrl)}}
TypeError: Cannot call method 'replace' of undefined
at Object.$interpolate.fn (http://localhost:8181/hawtio/lib/angular.js:5574:26)
at Object.Scope.$digest (http://localhost:8181/hawtio/lib/angular.js:8814:38)
at Object.Scope.$apply (http://localhost:8181/hawtio/lib/angular.js:9022:24)
at http://localhost:8181/hawtio/lib/angular.js:10606:36
at completeOutstandingRequest (http://localhost:8181/hawtio/lib/angular.js:3573:10)
at http://localhost:8181/hawtio/lib/angular.js:3859:7 angular.js:6359
org.fusesource.fabric.api.FabricException: Failed to initialize DTO
at org.fusesource.fabric.api.jmx.BeanUtils.addProperty(BeanUtils.java:113)
View karaf.log
Oct 10, 2013 10:03:14 AM org.apache.karaf.main.SimpleFileLock lock
INFO: locking
2013-10-10 10:03:14,302 | INFO | -610114-thread-1 | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.3.11.redhat-610114 | Installed /home/cmoulliard/Software/Fuse/fuse-fabric-7.3.0.redhat-114/etc/org.ops4j.pax.web.cfg
2013-10-10 10:03:14,311 | INFO | -610114-thread-1 | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.3.11.redhat-610114 | Installed /home/cmoulliard/Software/Fuse/fuse-fabric-7.3.0.redhat-114/etc/org.apache.karaf.jaas.cfg
2013-10-10 10:03:14,319 | INFO | -610114-thread-1 | fileinstall | ? ? | 6 - org.apache.felix.fileinstall - 3.3.11.redhat-610114 | Installed /home/cmoulliard/Software/Fuse/fuse-fabric-7.3.0.redhat-114/etc/org.ops4j.pax.url.mvn.cfg
2013-10-10 10:03:14,324 | INFO | -610114-thread-1 | fileinstall | ?