Branded Karaf...

2010-12-28 Thread Kit Plummer

Hey Karafers.

I'm building a framework on top of Karaf, that is currently only adding the
Branding library and a few bundles.  But, it is likely in the future I'll
need to remove some things, and more.  Is there a best way strategy to
manage to relationship between my framework and Karaf?  How does ServiceMix
do it?  

TIA,
Kit
-- 
View this message in context: 
http://karaf.922171.n3.nabble.com/Branded-Karaf-tp2158363p2158363.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Re: Pax Exam...ActiveMQ.

2010-12-16 Thread Kit Plummer

Well, I've been able to get it working, with a remotely running broker. 
Though I think it would be entirely possible to embed the starting up of the
broker from within my exam.

The trick was getting my bundle which depends on an incoming
javax.jms.ConnectionFactory.  From inside my exam I just created an
ActiveMQConnectionFactory, and registered the ConnectionFactory as a
service:

bundleContext.registerService(javax.jms.ConnectionFactory.class.getName(), 
   connectionFactory, 
   new Hashtable());

Pretty simple.  The HashTable can be loaded with params to point to a
non-default broker config I think.

Kit
-- 
View this message in context: 
http://karaf.922171.n3.nabble.com/Pax-Exam-ActiveMQ-tp2092209p2099308.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Pax Exam...ActiveMQ.

2010-12-15 Thread Kit Plummer

I'm looking to use Pax Exam to test a bundle that consumes/produces messages
from JMS.  I'd found a similar thread in the Camel list
(http://camel.465427.n5.nabble.com/Testing-using-Pax-Exam-td1045472.html#a1224056).
 
I'm curious if anyone else has attempted to do this - getting ActiveMQ (the
broker) launched from within Pax Exam.

Kit
-- 
View this message in context: 
http://karaf.922171.n3.nabble.com/Pax-Exam-ActiveMQ-tp2092209p2092209.html
Sent from the Karaf - User mailing list archive at Nabble.com.


Run Console Command from a Features Config...

2010-11-18 Thread Kit Plummer

Hello all.Wondering if its at all possible to run a 
console command like activemq:create-broker --type blueprint as part of a 
Features/ config.  

Kit


Install WAR through a feature bundle?

2010-11-16 Thread Kit Plummer

For some reason I can't get a bundled-up WAR installed 
using a Feature definition.Error executing command: URL 
[mvn:com.opsysinc.snap.demo/webster/0.0.2-SNAPSHOT] could not be resolved.Is it 
just not possible to deploy a WAR as a Feature bundle?Kit




Re: Config into Blueprint Definition...

2010-11-12 Thread Kit Plummer


Hey Chris...yeh, am back into it again.  :)  Thanks.  As typical as 
soon as I posted in despair I found another thread with the solution.  My 
problem was with the cm: namespace pointing to Geronimo instead of 
Aries:xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0All 
is well.For reference here's my Blueprint config that shows the right namespace 
and config mapping:blueprint 
xmlns=http://www.osgi.org/xmlns/blueprint/v1.0.0    
xmlns:cm=http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0;    
reference id=cf interface=javax.jms.ConnectionFactory /    reference 
id=ms        interface=com.opsysinc.snap.messaging.MessagingService/    
bean id=pacemaker class=com.opsysinc.snap.pacemaker.HeartBeater        
init-method=start destroy-method=stop        property name=delta 
value=${snap.heartbeat.delta}/        property name=messagingService 
ref=ms/    /bean    cm:proper
 ty-place
holder persistent-id=com.opsysinc.snap        cm:default-properties        
    cm:property name=snap.heartbeat.delta value=4000 /        
/cm:default-properties    /cm:property-placeholder/blueprint




On Friday, November 12, 2010 at 3:25 PM, Chris Custine wrote:

Hi Kit,Long time no see  :-)  Yeah this is a bit whacky at the 
moment becausethis part of Blueprint Spec was dropped from the final OSGi 4.2 
EEspec.  Both Spring-DM and Aries Blueprint have nearly 
identicalimplementations based on the draft, but each has a custom namespace.If 
you are using the latest Karaf builds, you can look 
athttp://svn.apache.org/repos/asf/karaf/trunk/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xmlfor
 a simple example of how the properties frometc/org.apache.karaf.shell.cfg are 
mapped into a blueprint xml.The Spring project has fairly good docs because the 
draft spec wasbased on this code.  I think most of the syntax is identical to 
theAries impl.  
http://static.springsource.org/osgi/docs/2.0.0.M1/reference/html/compendium.html#compendium:cmLet
 us know if you run into specific issues.  Hope to see you back on#karaf IRC 
soon  :-)Chris--Chris CustineFuseSource - Open Source Integration:: 
http://fusesource.comMy Blog :: http://blog.
 organice
lement.comOn Fri, Nov 12, 2010 at 14:22, Kit Plummer kitplum...@gmail.com 
wrote: Hey guys. I'm struggling to figure out how to get properties from a 
config file I dropped into the etc/ subdirectory into my Blueprint definition. 
I know my .cfg is getting picked up - saw it with 'config:list' - but, am stuck 
beyond that. Any help? I dinked around  - tho only got more lost. TIA, Kit











Delay a Start-level?

2010-11-05 Thread Kit Plummer
I'm currently using Karaf Features (very cool feature) to deploy a suite of 
bundles.  My feature depends on activemq-blueprint - and subsequently there are 
services that require the broker to be running to get through their startup 
methods.

When I start Karaf (everytime) I get a nasty JMSException:

[ka...@root javax.jms.JMSException: Could not connect to broker URL: 
tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused]

and I'm guessing this is because the broker hasn't finished starting yet.  The 
broker kicks off at start-level 60, and my bundles at 80 and 85.  Is there a 
good way to handle this?

TIA,
Kit