Interesting idea. I will have a look on "
http://paxrunner.ops4j.org/display/paxrunner/Advanced+profiles+topics"; to
see How to create a transaction and activemq profiles

When a profile is created, How can I deploy it top of Apache Felix Karaf ?


Charles Moulliard
Senior Enterprise Architect
Apache Camel Committer

*****************************
blog : http://cmoulliard.blogspot.com


On Fri, Sep 4, 2009 at 5:13 PM, Alin Dreghiciu <adreghi...@gmail.com> wrote:

> Charles,
> Why don't you create Pax Runner profiles for this so people could easy
> start
> it up?
>
> On Fri, Sep 4, 2009 at 4:35 PM, Charles Moulliard <cmoulli...@gmail.com
> >wrote:
>
> > Hi Aaron,
> >
> > All the bundles that you need to run ActiveMq in transaction mode are
> > defined here in my tutorial :
> > http://camel.apache.org/tutorial-osgi-camel-part2c.html
> >
> > Take a look to the feature : transaction, activemq and connector
> >
> > I currently use in SMX4 (now Apache Felix Karaf) activemq with the
> geronimo
> > transaction manager. Everything works fine
> >
> > For Apache Felix Karaf, here is my list of bundle :
> >
> >    <feature name="transaction">
> >
> >
> <bundle>mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
> >
> >
> >
> <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-connector_1.5_spec/2.0.0</bundle>
> >
> >
> >
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.howl/1.0.1-1_1</bundle>
> >
> >
> >
> <bundle>mvn:org.apache.geronimo.components/geronimo-transaction/2.2-r634076</bundle>
> >        <bundle>mvn:org.springframework/spring-tx/2.5.6.SEC01</bundle>
> >
> >
> >
> <bundle>mvn:org.apache.felix/org.apache.felix.transaction/0.9.0-SNAPSHOT</bundle>
> >    </feature>
> >
> >    <feature name="connector">
> >        <feature>transaction</feature>
> >
> >
> >
> <bundle>mvn:org.apache.geronimo.components/geronimo-connector/2.2-r634076</bundle>
> >
> >
> <bundle>mvn:org.apache.geronimo.specs/geronimo-jms_1.1_spec/1.1.1</bundle>
> >
> >
> >
> <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.jencks/2.1_1</bundle>
> >    </feature>
> >
> >
> >    <feature name="activemq" version="5.2.0">
> >        <feature>connector</feature>
> >
> >
> >
> <bundle>mvn:org.apache.geronimo.specs/geronimo-j2ee-management_1.1_spec/1.0.1</bundle>
> >        <bundle>mvn:org.apache.xbean/xbean-spring/3.4.3</bundle>
> >        <bundle>mvn:org.apache.activemq/activemq-core/5.2.0</bundle>
> >        <bundle>mvn:org.apache.activemq/activemq-ra/5.2.0</bundle>
> >        <bundle>mvn:org.apache.activemq/activemq-console/5.2.0</bundle>
> >        <bundle>mvn:org.apache.activemq/activemq-pool/5.2.0</bundle>
> >    </feature>
> >
> > Regards,
> >
> > Charles Moulliard
> > Senior Enterprise Architect
> > Apache Camel Committer
> >
> > *****************************
> > blog : http://cmoulliard.blogspot.com
> >
> >
> > On Fri, Sep 4, 2009 at 3:17 PM, J Aaron Farr <fa...@apache.org> wrote:
> >
> > >
> > > I just got ActiveMQ running on Karaf (lastest svn).  It was not very
> > > easy, so I'm sharing what I did and I'm looking for suggestions.
> > >
> > > After checking out and building karaf from scratch, I started with
> these
> > > instructions:
> > >
> > >    http://activemq.apache.org/osgi-integration.html
> > >
> > > Of course, they're old and don't help much.  But it did point me to the
> > > service document [1] that let me download most of the bundles by hand:
> > >
> > >    osgi:install mvn:org.apache.activemq/activemq-core/5.2.0
> > >    osgi:install mvn:org.apache.activemq/activemq-ra/5.2.0
> > >    ...
> > >
> > > I did this for all the bundles in the `activemq` and `connector`
> > > features expect for `org.apache.servicemix.activemq.commands`.
> > >
> > > It was the 'transactions' feature that got me stuck.  I installed the
> > > 'felix-transaction' [2] plugin and most of the Spring Framework osgi
> > > bundles [3] by hand.  But the place I kept getting stuck was with
> > starting
> > > the felix-transaction bundle.  I kept getting:
> > >
> > >    java.lang.ClassNotFoundException:
> javax.transaction.TransactionManager
> > >
> > > The problem was the same as described in [4] and [5], namely, I had
> > > these packages in my system that were overriding the geronimo jta
> bundle
> > > I had:
> > >
> > >    System Bundle (0): javax.transaction; version=1.5.0
> > >    System Bundle (0): javax.transaction.xa; version=1.5.0
> > >
> > > After hours of wrestling with this, I cracked open the felix framework
> > > jar, deleted all references to `javax.transaction` and then put it back
> > > together again.
> > >
> > > Once this was done, I could take a simple activemq configuration file
> > > and drop it in `deploy/localhost-broker.xml` and everything worked.
> > >
> > > Surely there must be a better way...
> > >
> > > I'm not sure if this info is useful on the felix list, or the activemq
> > > list or the servicemix list or even the geronimo list, so feel free to
> > > forward (me or the message) as necessary.
> > >
> > > --
> > >   J. Aaron Farr
> > >   馮傑仁
> > >   www.cubiclemuses.com
> > >
> > > [1]
> > >
> >
> http://repo2.maven.org/maven2/org/apache/servicemix/apache-servicemix/4.0.0/apache-servicemix-4.0.0-features.xml
> > > [2]
> > >
> >
> https://svn.apache.org/repos/asf/felix/trunk/transaction/org.apache.felix.transaction/
> > > [3] http://www.springsource.org/osgi
> > > [4] http://www.mail-archive.com/d...@geronimo.apache.org/msg70777.html
> > > [5]
> > >
> >
> http://mail-archives.apache.org/mod_mbox/felix-users/200902.mbox/%3c499ed895.20...@ungoverned.org%3e
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org
> > > For additional commands, e-mail: users-h...@felix.apache.org
> > >
> > >
> >
>
>
>
> --
> Alin Dreghiciu
> Software Developer
> My profile: http://www.linkedin.com/in/alindreghiciu
> My blog: http://adreghiciu.blogspot.com
> http://www.ops4j.org - New Energy for OSS Communities - Open Participation
> Software.
> http://www.qi4j.org - New Energy for Java - Domain Driven Development.
>

Reply via email to