Re: JTA Bundle

2010-02-23 Thread Richard S. Hall
On 2/24/10 3:58 AM, Guillaume Nodet wrote: The reason to keep it is that there is a boot delegation for the javax.transaction.* packages. This is to avoid class cast exception in the javax.sql packages which do use the classes from the javax.transaction package exported by the system bundle. So w

Re: JTA Bundle

2010-02-23 Thread Carl Hall
I beginning to understand more about the "partial=true; mandatory:=partial" flags. Is this something that should be done for the system bundle in Felix or is JTA in the system bundle considered complete by the JavaSE definition? On Tue, Feb 23, 2010 at 15:40, Carl Hall wrote: > I've been able t

Re: JTA Bundle

2010-02-23 Thread Carl Hall
I've been able to see this load correctly (no errors in the logs as before) by using split-package. If I go this route, which option should I use (merge-first, merge-last, first)? Adding a flag to the import (partial) is not an option for us as JTA is being imported by bundles that we have no con

Re: JTA Bundle

2010-02-23 Thread Guillaume Nodet
The reason to keep it is that there is a boot delegation for the javax.transaction.* packages. This is to avoid class cast exception in the javax.sql packages which do use the classes from the javax.transaction package exported by the system bundle. So what happens is that the javax.transaction pac

Re: JTA Bundle

2010-02-23 Thread Clifford H. James
Karaf adds a mandatory attribute (partial) to the system package export in etc/config.properties: javax.transaction; javax.transaction.xa; partial=true; mandatory:=partial, \ I believe this is so that you'd resolve this version of javax.transaction/transaction.xa IFF the importer specified p

Re: JTA Bundle

2010-02-23 Thread Jacques-Olivier Goussard
On my side, I simply added the geronimo jars into my main bundle and export them with a version 2.0.0. Then my clients bundles can import version 2.0.0. Of course, that's because I don't deploy 3rd parties bundles that would make use of those. Hacked around, but working. /jog On Tue, Feb 23,

JTA Bundle

2010-02-23 Thread Carl Hall
I'm trying to use the Geronimo JTA bundle (geronimo-jta_1.1_spec, version 1.1.1) but am hitting a snag. Other bundles seem to pick up javax.transaction & javax.transaction.xa from the system bundle but those packages don't offer all of JTA. I've seen this issue noted by some folks with Karaf but

RE: Is it possible to to registerService for same interface, but multiple object provides a service.?

2010-02-23 Thread Mahammad Nasir
Filters...! This is what I was looking for. Thanks a lot. -Original Message- From: Justin Edelson [mailto:justinedel...@gmail.com] Sent: Tuesday, February 23, 2010 7:51 PM To: users@felix.apache.org Subject: Re: Is it possible to to registerService for same interface, but multiple object

Re: Is it possible to to registerService for same interface, but multiple object provides a service.?

2010-02-23 Thread Justin Edelson
Hi On 2/23/10 9:08 AM, Mahammad Nasir wrote: > Hi.. > > Is it possible to to registerService for same interface, but multiple object > provides a service.? > > for example > > registerService("MyInterface",Obj1,prop1); > registerService("MyInterface",Obj2,prop2); > > > Where prop1 can be

How to start felix with "install" argument ? Re: Eclipse plugin for Felix?

2010-02-23 Thread Tai Truong
In my shell I can use this command: install assembly:/target/classes Is it possible to pass the install argument when starting felix? Something like this: java -jar bin/felix.jar install assembly:/target/classes java -jar bin/felix.jar install assemblyref:./my-project/assembly.json Thanks Tai

Is it possible to to registerService for same interface, but multiple object provides a service.?

2010-02-23 Thread Mahammad Nasir
Hi.. Is it possible to to registerService for same interface, but multiple object provides a service.? for example registerService("MyInterface",Obj1,prop1); registerService("MyInterface",Obj2,prop2); Where prop1 can be like Key="Value1", prop2 can be Key="Value2" How to implement servi

Re: Eclipse plugin for Felix?

2010-02-23 Thread Tai Truong
Thanks. That seems to be what I am looking for. But how do I integrate it into my Eclipse IDE? The documentation under http://wiki.ops4j.org/pages/viewpage.action?pageId=12648754 explains only the usage of the assembly command. There is no HOW-TO use it. The blog http://adreghiciu.wordpress

Re: Eclipse plugin for Felix?

2010-02-23 Thread Tai Truong
Oisin Hurley wrote: Does anyone have a better approach using Eclipse and Felix? I assume you've already check the page at http://felix.apache.org/site/integrating-felix-with-eclipse.html I check that page. What it suggest here is to create a Felix project. But this approach does not

Re: Eclipse plugin for Felix?

2010-02-23 Thread Toni Menzel
For 1. have a look at http://wiki.ops4j.org//x/MgHB (assembly protocol handler in Pax URL) Toni On Tue, Feb 23, 2010 at 11:02 AM, Tai Truong wrote: > Hi, > > when using Felix with Eclipse IDE the following plugins exists: > > 1. OSGi plugin: http://paxrunner.ops4j.org > 2. Karaf plugin: http://f

Re: Eclipse plugin for Felix?

2010-02-23 Thread Oisin Hurley
> Does anyone have a better approach using Eclipse and Felix? I assume you've already check the page at http://felix.apache.org/site/integrating-felix-with-eclipse.html and that isn't quite what you wanted to do. What's the goal that you are aiming for? Creating bundles and running them in a Fel

Eclipse plugin for Felix?

2010-02-23 Thread Tai Truong
Hi, when using Felix with Eclipse IDE the following plugins exists: 1. OSGi plugin: http://paxrunner.ops4j.org 2. Karaf plugin: http://fusesource.com/forge/projects/EIK/ Regarding 1: The biggest problem I see in Pax Runner is that the bundles are packaged in jars. This is pretty time consuming

RE: Why do i need to put felix.jar in the path if jar file is embeding felix?

2010-02-23 Thread Mahammad Nasir
Ok. I would try both. Thanks again -Original Message- From: Richard S. Hall [mailto:he...@ungoverned.org] Sent: Tuesday, February 23, 2010 12:42 PM To: users@felix.apache.org Subject: Re: Why do i need to put felix.jar in the path if jar file is embeding felix? On 2/23/10 2:56 PM, M