Re: Problems in the integration of Felix and Android

2011-08-23 Thread john . dunlap
How are you starting felix and how are you trying to load the bundles? Quoting ??? (Kenneth Yang) titanic.7485...@gmail.com: Hi, I am totally new to Felix as well as Android. I am trying to integrate Felix into Android with user GUI. However, we encounter some problems. We have successfully

Re: Install Object as bundle

2011-08-22 Thread john . dunlap
Bother. That sounds eerily like the junit runner I'm half way through writing... Quoting Achim Nierbeck bcanh...@googlemail.com: well, if you are in need of help, just ask :-) someone out there will try to answer. Taking the example you choose here is a quick (very-quick) help line :-)

Re: Install Object as bundle

2011-08-22 Thread john . dunlap
I'd like to apologize to anyone I may have offended with my previous posts. Having reviewed a couple blog posts, PAX Exam appears to be quite powerful. At the risk of sticking my foot in my mouth, yet again, the only thing I can say in my defense is that the OPS4J documentation is spotty

Re: Install Object as bundle

2011-08-22 Thread john . dunlap
LOL Yeah, I totally walked into that one... Quoting Peter Kriens peter.kri...@aqute.biz: As this is open source you're now on the hook for documentation ... :-) Kind regards, Peter Kriens On 22 aug 2011, at 16:47, john.dun...@exceter.com wrote: I'd like to apologize to anyone I

iPojo Conundrum

2011-08-22 Thread john . dunlap
I am looking into using Pax-Exam to run unit tests against iPojo bundles. However, as a Pax-Exam powered unit test is itself packaged into a bundle prior to being run I would like to be able to have iPojo inject services directly into the fields of my JUnit tests. However, I'm not really sure how

Re: Install Object as bundle

2011-08-21 Thread john . dunlap
That's fair. I guess I just don't understand what all the other stuff is. Maybe I just haven't looked closely enough. Like I said before, I wasn't trying to be offensive or dismissive in any way. It was just my off the cuff impression. Quoting Achim Nierbeck bcanh...@googlemail.com:

Re: Install Object as bundle

2011-08-20 Thread john . dunlap
I will check it out. I mean no offense. I just know that the last time I checked out Pax Exam the amount of annotations required to run a test made my head hurt. Quoting Matt Madhavan mattmadha...@gmail.com: Ornate? Come on man, check it out. I have designed the OSGi development standard

Re: Install Object as bundle

2011-08-20 Thread john . dunlap
https://github.com/tonit/Learn-PaxExam/blob/master/lesson-junit/src/test/java/org/ops4j/pax/exam/lesson3/LessonTest.java Quoting Toni Menzel t...@okidokiteam.com: Can you be more specific ? Would love to simplify (in your terms) .. Toni On Sat, Aug 20, 2011 at 5:09 PM,

Re: Install Object as bundle

2011-08-19 Thread john . dunlap
Yes, that's exactly what I need to do. Do you have a recommended approach? Quoting Holger Hoffstätte holger.hoffstae...@googlemail.com: On 19.08.2011 14:51, john.dun...@exceter.com wrote: Is it possible to install an object as a bundle without first packaging it as a jar? The closest I've

Re: Install Object as bundle

2011-08-19 Thread john . dunlap
That's quite a trick... Thanks! Quoting chetan mehrotra chetan.mehro...@gmail.com: You can also have look at Karaf Spring deployer which creates a Bundle on the fly for a give Spring config file

Re: Install Object as bundle

2011-08-19 Thread john . dunlap
Thanks for the tip! I'll certainly take a look at it but my general impression of OPS4J has been that their stuff(while very cool) tends to be a little too ornate for my taste. Cheers! -John Quoting Matt Madhavan mattmadha...@gmail.com: OPS4J PAXTinyBundle Tool might be a good option

Re: Maven iPOJO annotations example

2011-08-18 Thread john . dunlap
For anyone else looking for annotated maven examples of iPOJO in action, they are located here, https://svn.apache.org/repos/asf/felix/trunk/ipojo/examples/tutorial-maven/ Quoting john.dun...@exceter.com: *I've found some example annotations but they have incomplete maven configuration to

Maven iPOJO annotations example

2011-08-17 Thread john . dunlap
I'm trying to to create OSGI services using iPOJO annotations and maven. Does anyone know if there is an example like this one that uses iPOJO annotations instead of XML? I've found some annotations http://felix.apache.org/site/ipojo-hello-word-maven-based-tutorial.html -John

Re: Maven iPOJO annotations example

2011-08-17 Thread john . dunlap
*I've found some example annotations but they have incomplete maven configuration to go with them. Quoting john.dun...@exceter.com: I'm trying to to create OSGI services using iPOJO annotations and maven. Does anyone know if there is an example like this one that uses iPOJO annotations

Re: Strange exception when installing a bundle

2011-08-15 Thread john . dunlap
I figured it out. I needed to add this to my pom, dependency groupIdorg.apache.felix/groupId artifactIdorg.apache.felix.framework/artifactId version3.2.2/version /dependency Quoting john.dun...@exceter.com: I'm trying to install a bundle

GoGo scripting

2011-08-12 Thread john . dunlap
Can GoGo be scripted and, if so, where can I find documentation for how to do this? - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands, e-mail: users-h...@felix.apache.org

Re: GoGo scripting

2011-08-12 Thread john . dunlap
Thanks! Quoting Richard S. Hall he...@ungoverned.org: Gogo supports scripting at least to some degree...not sure if it is properly documented, but I'd guess not... Type gosh -? at the Gogo prompt... You can look at the org.apache.felix.gogo.shell.Shell.gosh() method source to get more

Re: Embedded Felix Example

2011-08-05 Thread john . dunlap
Hi Ken, that link is giving me a 404 Quoting Ken Gilmer kgil...@buglabs.net: Hi John, Knapsack embeds Felix 3.2.2 and uses some of the more complex options, such as using a custom Logger and adding bundles to the framework before startup:

Re: Embedded Felix Example

2011-08-05 Thread john . dunlap
Richard, as requested I've created an issue for this, https://issues.apache.org/jira/browse/FELIX-3068 -John Quoting Richard S. Hall he...@ungoverned.org: On 8/4/11 4:27 PM, john.dun...@exceter.com wrote: I'm trying to embed felix and the code examples at

Recursive File Install?

2011-08-05 Thread john . dunlap
Is it possible for the default felix file installer to recursively install bundles, starting from a specified base directory? -John - To unsubscribe, e-mail: users-unsubscr...@felix.apache.org For additional commands,

Re: Recursive File Install?

2011-08-05 Thread john . dunlap
No, I meant if I have a folder with sub folders will felix file install also install the bundles which are in the sub folders? -John Quoting Rafael Liu rafael...@gmail.com: Have you looked at Apache Felix File Install? It automatically installs bundles from a folder. The recursive that

Re: Embedded Felix Example

2011-08-05 Thread john . dunlap
Thanks! I'll check it out! Quoting Ken Gilmer kgil...@buglabs.net: Hi John, Ooops. I've refactored that class and it's now called Launcher: https://github.com/kgilmer/knapsack/blob/master/org/knapsack/Launcher.java hth, ken On Fri, Aug 5, 2011 at 10:30 PM, john.dun...@exceter.com

Embedded Felix Example

2011-08-04 Thread john . dunlap
I'm trying to embed felix and the code examples at http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html seem, at least to me, to be incomplete. The only working example of how to embed felix which I've been able to find is this:

Re: Managing Dynamism

2011-07-15 Thread john . dunlap
That sounds perfect for what I'm trying to do! Quoting Marcel Offermans marcel.offerm...@luminis.nl: On 14 Jul 2011, at 23:00 , john.dun...@exceter.com wrote: I would like to hide the update mechanism from the end user. As far as the client is be concerned, the application should be

Managing Dynamism

2011-07-14 Thread john . dunlap
I'm interested in using OSGI as an update mechanism in a swing based app. However, I'm concerned that managing the extremely dynamic nature of OSGI is too difficult. How can guarantee that the client's OSGI container will remain in a known state which is identical to the state of the OSGI

Re: Managing Dynamism

2011-07-14 Thread john . dunlap
I would like to hide the update mechanism from the end user. As far as the client is be concerned, the application should be versioned as a whole. For example, I would like the client to see that an update from version 1.2.3.4 to 1.2.3.5 is available. Behind the scenes the update would

Re: Bundle.getDataFile(String) Question

2011-06-27 Thread john . dunlap
Thanks! Quoting Richard S. Hall he...@ungoverned.org: On 6/24/11 19:25, john.dun...@exceter.com wrote: Bundle.getDataFile(String) is a very useful method but I'm curious if I can safely use it to create sub directories within the bundle's storage area so that I can more easily manage

Re: BundleListener and System.out

2011-06-27 Thread john . dunlap
Pax Logging is installed in karaf by default so that's definitely possible. Thanks! Quoting Richard S. Hall he...@ungoverned.org: On 6/24/11 20:23, john.dun...@exceter.com wrote: I have the following bundle activator which implements both FrameworkListener and BundleListener, import

Re: BundleListener and System.out

2011-06-27 Thread john . dunlap
I modified my class to this but I am still not seeing anything on the console. I would have expected this to account for System.out being redirected. public class ListenerActivator implements BundleActivator, FrameworkListener, BundleListener { private int invoked = 0; private

Re: BundleListener and System.out

2011-06-27 Thread john . dunlap
I'm not sure why but when I use SynchronousBundleListener instead of BundleListener the output starts appearing in the console. Quoting john.dun...@exceter.com: I modified my class to this but I am still not seeing anything on the console. I would have expected this to account for

Bundle.getDataFile(String) Question

2011-06-24 Thread john . dunlap
Bundle.getDataFile(String) is a very useful method but I'm curious if I can safely use it to create sub directories within the bundle's storage area so that I can more easily manage large numbers of files. - To

BundleListener and System.out

2011-06-24 Thread john . dunlap
I have the following bundle activator which implements both FrameworkListener and BundleListener, import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import org.osgi.framework.BundleEvent; import org.osgi.framework.BundleListener; import

Re: Spring resource classpath issue

2011-06-14 Thread john . dunlap
Take a look at this, http://www.dynamicjava.org/articles/osgi-matters/3rd-party-components-with-osgi/11-osgi-matters/43-3rd-party-components-incompatibility-problems?tmpl=componentprint=1page= Quoting Shamik Bandopadhyay sham...@gmail.com: Well, that's the part which is puzzling. I don't see

Re: Spring resource classpath issue

2011-06-13 Thread john . dunlap
I'm no expert but my best guess would be that spring is trying to load the file from the wrong classloader. If I'm reading the spring source correctly, it will attempt to load classpath:META-INF/spring/repo/test.db4o from Thread.currentThread().getContextClassLoader() and then from

Re: Running Felix as Linux daemon

2011-04-21 Thread john . dunlap
I haven't looked into it in great detail but I'd recommend looking into something like this because it will generate service wrappers for both windows and unix/linux. http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/usage_jsw.html -John Quoting Richard S. Hall

Re: Just a quick question

2011-04-01 Thread john . dunlap
I would have said masochists instead of dinosaurs but to each his own... Quoting Jacques-Olivier Goussard jogouss...@gmail.com: Yeah, you know, deep down in the woods out there, there are dinosaurs like me that use 'vi' to edit code... Asking questions like this betray your age dude :) On

Re: $(maven-symbolicname) property not working in maven bnd plugin

2011-02-25 Thread john . dunlap
Are you using $(maven-symbolicname) or ${maven-symbolicname} ? Quoting Raja Kannappan rkannap...@axioma.com: Hi, We use maven BND Plugin to generate OSGi bundles from regular jars. We use it like this: plugin

RE: $(maven-symbolicname) property not working in maven bnd plugin

2011-02-25 Thread john . dunlap
In your pom, ${maven-symbolicname} would be the correct syntax. Whether or not a property of that name has actually been set is another matter. Quoting Raja Kannappan rkannap...@axioma.com: I tried all possible combinations - $(maven-symbolicname), ${maven-symbolicname),

Re: Any way to login karaf sshd non-interactively?

2011-02-16 Thread john . dunlap
If you are running karaf under Linux, there is a workaround for this that I use. 1) Create a linux user to log into the server with. I named mine karaf 2) Set the login shell of the karaf user to the karaf client in /etc/passwd. Mine looks like this,

Scheduling

2011-02-14 Thread john . dunlap
Are there are any scheduling bundles available? I have a server with a bunch of jar files that are currently being invoked by linux crontab entries and I would like to move all of these jars into karaf and invoke them with an OSGI based scheduler.

Re: Scheduling

2011-02-14 Thread john . dunlap
Excellent! I have used quartz before I just didn't want to have to wrap it myself if someone else already has. Thanks! Quoting Guillaume Nodet gno...@gmail.com: Have you tried using Quartz scheduler ? You can find a bundle for it that has been wrapped by Apache ServiceMix:

Re: Questions on OSGI testing

2011-01-21 Thread john . dunlap
Which JVM are you using? Quoting Adarsh Ashok Joshi adar...@broadcom.com: Hello, I have installed Felix on my embedded system and I am able to run basic bundles on it. I want to do more tests on the system. Something like CPU usage, Memory usage, Disk usage etc. All I find when I

RE: Questions on OSGI testing

2011-01-21 Thread john . dunlap
JamVM uses GNU Classpath for its runtime and it appears to support OperatingSystemMXBean so I'd look into that and javasysmon, http://developer.classpath.org/doc/java/lang/management/OperatingSystemMXBean.html https://github.com/jezhumble/javasysmon/wiki Cheers! -John Quoting Adarsh Ashok

RE: Questions on OSGI testing

2011-01-21 Thread john . dunlap
I'm not aware of any bundles that do that but if you find any I'd be interested in them as well. Also, if you can't get the information you need from one of the VM's MXBeans you'll probably have to resort to using JNI to integrate with the OS. Cheers! -John Quoting Adarsh Ashok Joshi

Re: New OSGi presentation

2011-01-20 Thread john . dunlap
Thanks for doing this Richard! I like the sound of OSGi but I've never made the leap to it because I don't feel that I understand it well enough to convince myself that it is the right direction to go in. Your slides have clarified a number of things for me and your analogies are both

Re: Congrats Richard!

2011-01-17 Thread John Dunlap
Congratulations and thank you! Steven Siebert wrote: I read on an OSGi blog (http://www.osgi.org/blog/2011/01/error-messages.html) that Richard Hall recently had a son. Congrats and thanks for all you do for the community! S

Re: Is there a repository for bundles?

2010-12-15 Thread john . dunlap
I've been wondering the exact same thing. Quoting Rice Yeh rice...@gmail.com: Hi, Just wonder whether there is a repository (better to be maven2 compatible) from which we can get artefacts? Or we just need to osgize every artefact we used? Rice

Re: Is there a repository for bundles?

2010-12-15 Thread john . dunlap
This is actually my largest stumbling block with osgi. Although osgi is a very very impressive and ingenious technology, at a practical level, osgi is not extraordinarily useful in the absence of bundle repositories and robust dependency management. Quoting Guillaume Nodet

Installing Felix Webconsole

2010-12-06 Thread john . dunlap
I'm trying to install the Felix web console but the instructions on the website appear to be out of date. It tells me to use the following command, install http://mirror.switch.ch/mirror/apache/dist/felix/org.apache.felix.webconsole-2.0.6.jar but that gives me a 404 error and I think the

OBR search and installation

2010-12-03 Thread john . dunlap
I have a vanilla 3.0.2 felix install up and running. However, I cannot seem to figure out how to install the bundles which are listed by the OBR commands. Every example I've found has me manually installing bundles from my local machine, which strikes me as defeating the purpose of having

Re: OBR search and installation

2010-12-03 Thread john . dunlap
:( Quoting Guillaume Nodet gno...@gmail.com: The real problem is that there's no real usable obr repository, so you're really on your own here. However obr use a url to actually dowload and install the bundles that you can point to a known location if you manage thoses repositories. What

Re: OBR search and installation

2010-12-03 Thread john . dunlap
Is an OBR repository a new concept or is it just difficult to implement? Quoting Guillaume Nodet gno...@gmail.com: The real problem is that there's no real usable obr repository, so you're really on your own here. However obr use a url to actually dowload and install the bundles that you can

Re: OBR search and installation

2010-12-03 Thread john . dunlap
*hits self* If only the docs explained it like that... Quoting Karl Pauls karlpa...@gmail.com: The repository is just an xml file that must be accessible via a url. So all you have to do is to have your ide move the bundle plus the repository to a server some place and point obr to that. You

Re: Weird Error

2010-09-23 Thread john . dunlap
Yes, I just got my command working in gogo a few minutes ago. Thanks for the help with that Richard! I pointed out what was causing my problem because Derek Baum said that this particular error should not happen with Felix 3.0.2. -John Quoting Michael Hess mh...@orga-systems.com: Hi

Re: Weird Error

2010-09-23 Thread john . dunlap
Done. https://issues.apache.org/jira/browse/FELIX-2618 Quoting Richard S. Hall he...@ungoverned.org: On 9/23/10 10:09, john.dun...@exceter.com wrote: Yes, I just got my command working in gogo a few minutes ago. Thanks for the help with that Richard! I pointed out what was causing my