I recall having some problems with the javax.transaction package too, because a few classes from this package are defined in JDK 1.4 by default. As OSGi does not support multiple exporters for a given package, it will never use the package export by the geornimo jta bundle. In felix I solved the problem by modifying the default properties file that configures which packages are provided by the system classloader (it is in apache-servicemix/src/main/release/conf/config.properties). A solution may be to configure the integration tests to use felix instead of eclipse.
On Nov 15, 2007 11:05 AM, Jeff Yu (JIRA) <[EMAIL PROTECTED]> wrote: > > [ > https://issues.apache.org/activemq/browse/SM-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel] > > Jeff Yu updated SM-1065: > ------------------------ > > Attachment: SM-1065.patch > > With this little patch: > 1. It will start an embedded broker. > 2. Register the pooledConnectionFactory (provided by activemq) in the OSGi > container. > 3. Add a system test in the itest module. > > In this bundle. > 1) import the commons-pool jar, and export it. ( for right now, it doesn't > have the commons-pool bundle available). > 2) import the javax.transaction package, although the geronimo_jta- > 1.1_spec is a bundle, but It complains that can't find the > javax.transaction even I install that bundle.. so I use the > <Private-Package> to import this jta-spec. > > > ActiveMQ integration > > -------------------- > > > > Key: SM-1065 > > URL: https://issues.apache.org/activemq/browse/SM-1065 > > Project: ServiceMix > > Issue Type: New Feature > > Reporter: Guillaume Nodet > > Assignee: Jeff Yu > > Fix For: 4.0 > > > > Attachments: SM-1065.patch > > > > > > ActiveMQ jars are already OSGified, but we may want to create a bundle > that would create a broker by default and registering a pooled connection > factory in OSGi maybe. That way, everyone could use the ConnectionFactory > registered in OSGi. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/