Re: Deploying Jetty 9.3.5 in Felix

2015-10-29 Thread Daniel McGreal
You could use Karaf, if you don’t mind wrapping Felix. Or just look at Karaf’s Jetty feature descriptor to see what bundles they use. > On 29 Oct 2015, at 10:06, i...@cuhka.com wrote: > > > What is the easiest way to deploy Jetty 9.3.5 in to Felix? The documentation > lists a few bundles that a

Re: Need help debugging Felix OSGi bundles (with Eclipse)

2015-09-12 Thread Daniel McGreal
Hi, you should investigate "remote debug" with Eclipse which involves starting Java with some parameters and creating a Debug Configuration in Eclipse. > On 12 Sep 2015, at 20:31, Pedro Domingues wrote: > > Hi, > > I really need to debug my code by the use of breakpoints, however this seems

iPojo's Karaf feature

2015-09-04 Thread Daniel McGreal
Hi Felix users, Using a fresh Karaf 4.0.1 instance I: karaf@test()> feature:repo-add http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.ipojo.features/1.12.1/org.apache.felix.ipojo.features-1.12.1.xml karaf@test()> feature:install ipojo-all karaf@test()> feature:list | grep ipojo i

iPojo's Karaf feature

2015-09-04 Thread Daniel McGreal
Hi Felix users, Using a fresh Karaf 4.0.1 instance I: karaf@test()> feature:repo-add http://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.ipojo.features/1.12.1/org.apache.felix.ipojo.features-1.12.1.xml

Re: Felix minimal environment requirements

2014-03-24 Thread Daniel McGreal
Hi Jerome, I run Felix in architectures with similar memory requirements. However, there’re more variables than I understand for your circumstances, the major one being the JVM deployed. Dan. On 24 Mar 2014, at 18:53, jerome moliere wrote: > Hi all, > I am planning to deploy an OSGi applica

Re: [java6][deadlock] with parallel classloading, and how to deal with it

2014-03-17 Thread Daniel McGreal
Hi, I had classloading blocks on m_classLocks in a JamVM (GNU Classpath) environment. Details in the thread starting at http://mail-archives.apache.org/mod_mbox/felix-dev/201311.mbox/%3c9490d8e7-4fc5-4f6c-b2c2-863d06ecf...@redbite.com%3e . It ended up being "solved" by 'synchronized'ing findCl

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Daniel McGreal
commands to Gogo as I feel like I'm missing out by not having that bundle available, I don't have the 'echo' (which would help in this case) or 'type' commands, for example. Dan. On 6 Mar 2014, at 12:19, Daniel McGreal wrote: > Thanks Derek, > > If I add

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Daniel McGreal
; } >> >> when commands are received from the server. >> >> Is there anything in this setup that would lead to the above error? >> (Something I'm missing from the gogo.shell bundle, for example?) >> >> On 6 Mar 2014, at 09:39, Dan wrote: >> >

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Daniel McGreal
at would lead to the above error? >> (Something I'm missing from the gogo.shell bundle, for example?) >> >> On 6 Mar 2014, at 09:39, Dan wrote: >> >>> g! addcommand runtime ((bundle 0) loadClass java.lang.Runtime) >>> g! addcommand rt (runtime:getRuntime) &g

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Daniel McGreal
Success, thank you. Going to try and reach the runtime now, unless someone can provide a hint? I wish to call Runtime.maxMemory() for example On 5 Mar 2014, at 17:06, Richard S. Hall wrote: > g! addcommand system ((bundle 0) loadClass java.lang.System)

Re: Gogo Shell, leveraging existing Java capabilities

2014-03-06 Thread Daniel McGreal
gogo: IllegalArgumentException: Cannot coerce loadclass(String) to any of [] On 5 Mar 2014, at 17:03, Guillaume Nodet wrote: > Try the following: > addcommand ($.context loadClass java.lang.System) > > > 2014-03-05 17:42 GMT+01:00 Daniel McGreal : > >> Hi Felix

Gogo Shell, leveraging existing Java capabilities

2014-03-05 Thread Daniel McGreal
Hi Felix users, https://felix.apache.org/documentation/subprojects/apache-felix-gogo/rfc-147-overview.html (which has quite some formatting issues, btw). > // add all public methods on java.lang.System as commands: > > g! addcommand system (loadClass java.lang.System) > g! system:getproperties >

Re: Disk space usage and File Install

2014-02-18 Thread Daniel McGreal
Thanks Neil, It is, unfortunately a big issue. We already have a management agent that operates remotely, unfortunately, we also need something local. No problem :) Thanks again, Dan. On 18 Feb 2014, at 10:11, Neil Bartlett wrote: > Is disk space really that much of an issue for you? If so I

Disk space usage and File Install

2014-02-18 Thread Daniel McGreal
Hi Felix users, Does https://felix.apache.org/site/apache-felix-file-install.html necessarily ~double the disk space usage when used with Felix? For example, is the bundle also copied into the cache when it is picked up by FileInstall? Is there a way to configure it to only have one copy of the

Component tied to garbage collection

2014-02-13 Thread Daniel McGreal
Hi Felix users, An application, for which I use Felix, has some functionality which I would like to only be active if the JVM has enough memory to support it. I wonder, can anyone think of a way of tying component (or bundle) lifecycle to some kind of SoftReference, so that the relevant lifecyc

Problem with felix://extensions?

2014-01-30 Thread Daniel McGreal
Hi there, Some bug in my deployment environment causes web requests for non-resolveable DNS requests to take a prohibitively long time to time-out. For some reason, Felix makes a bunch of these requests at startup asking for felix.extensions, a request which is obviously doomed to fail. Does a

Updating the System Bundle

2014-01-02 Thread Daniel McGreal
Hi all, > Updating the system bundle has the effect of restarting the OSGi framework > (requires support from the launcher). - http://wiki.osgi.org/wiki/System_Bundle Does the Felix launcher support updating itself? I notice there's no bundle.jar in bundle0 in the cache, are bundle updates ref

Re: [Discuss]About "Unable to acquire global lock for resolve"

2013-12-18 Thread Daniel McGreal
Hi, I wonder if this issue could be the cause, or related to problems when running on JamVM (e.g. GNU Classpath) described here: https://www.mail-archive.com/dev@felix.apache.org/msg31518.html Best, Dan. On 18 Dec 2013, at 13:57, Felix Meschberger wrote: > Hi > > Am 17.12.2013 um 14:25 schrie

Re: Instance reference issues

2013-12-09 Thread Daniel McGreal
Hi Peter, May I ask. what you mean by releasing dependencies? Thanks Dan. On 9 Dec 2013, at 08:30, Peter Kriens wrote: > unbind services // release your dependencies (can be ignored in > static mode)

Re: Memory optimisation

2013-12-05 Thread Daniel McGreal
Also, what is the impact of starting a bundle? For example, are all its classes loaded into memory at this time, or when they are first requested? Best, Dan. On 5 Dec 2013, at 09:00, Daniel McGreal wrote: > Thanks. > May I try a different question then? > > In Felix, is it know

Re: Memory optimisation

2013-12-05 Thread Daniel McGreal
, at 08:22, Vadim wrote: > I have such experience. Memory usage optimizations is application specific. > > On 12/05/2013 12:07 PM, Daniel McGreal wrote: >> Dear Felix Users, >> >> I wonder if there is anyone with experience of optimising a Felix >> application&#

Memory optimisation

2013-12-05 Thread Daniel McGreal
Dear Felix Users, I wonder if there is anyone with experience of optimising a Felix application's memory usage. Are there any OSGi or Felix centric tips? Many thanks, Dan. - To unsubscribe, e-mail: users-unsubscr...@felix.apache

Re: Gogo and CommandProcessor, etc interfaces

2013-11-14 Thread Daniel McGreal
Hi Derek, thanks for the information. It's now clear. On 14 Nov 2013, at 16:11, Derek Baum wrote: > If you just want the ability to run gogo-like scripts, using > CommandSession.execute(String command), you could create your own API with an > execute(String command) method. Users of your API wo

Gogo and CommandProcessor, etc interfaces

2013-11-14 Thread Daniel McGreal
Hi Felix users, I notice that Felix's Gogo implementation uses org.apache.felix.service.command package, whereas there seems to be a standard (used by Knopflerfish, at least) which implements org.osgi.service.command I have deployment environment constrains requiring both packages for different

Re: Nothing happens when running felix.jar

2013-11-14 Thread Daniel McGreal
Hi Andriy, If you downloaded the framework from felix.apache.org, then you may well want to back up a directory: cd .. java -jar bin/felix.jar This is so that felix finds the "bundle" directory, which from the default distribution contains the OSGi shell. On 14 Nov 2013, at 14:53, Neil Bartlett

Re: obr:deploy and bundle versions

2013-11-11 Thread Daniel McGreal
Hi, I'm not sure if this is pertinent. Having not the time to scrutinise the spec, I've been using the qualifier to indicate distribution/deployment specifics for my various targets. It's been useful in this regard, where qualifiers are treated equal in terms of revision amongst the same major.m

Re: How to use a 3rd party non-OSGi dependency?

2013-11-10 Thread Daniel McGreal
Also, the Spring EBR? On 10 Nov 2013, at 08:36, Achim Nierbeck wrote: > Hi, > > Just as a little hint, you might want to check the servicemix project, > because it already converted lots of 3rd party projects. It might happen > that it's already available as osgi bundle. Besides that the servic

Re: SCR @Reference on fields?

2013-11-02 Thread Daniel McGreal
otations > 1.2.4 > > Carsten > > > 2013/11/2 Daniel McGreal > >> Hi Carsten, >> Thanks a lot for your reply. >> >> Are you saying that one can use the OSGi annotations with the >> Maven-SCR-Plugin? I thought I tried this initially, without suc

Re: SCR @Reference on fields?

2013-11-02 Thread Daniel McGreal
notations do, > you might want to create a feature request issue for this > > Regards > Carsten > > > 2013/11/2 Robert Munteanu > >> On Sat, Nov 2, 2013 at 4:04 PM, Daniel McGreal wrote: >>> Thanks again Robert, >>> >>>> I'm not

Re: SCR @Reference on fields?

2013-11-02 Thread Daniel McGreal
d expected not to change, which is why I have a service to provide it. I wonder how I could achieve that with configuration? Many thanks, Dan. On 2 Nov 2013, at 13:57, Robert Munteanu wrote: > On Sat, Nov 2, 2013 at 3:50 PM, Daniel McGreal wrote: >> Hi Robert, >> >> Tha

Re: SCR @Reference on fields?

2013-11-02 Thread Daniel McGreal
wrote: > Hi Dan, > > On Sat, Nov 2, 2013 at 3:12 PM, Daniel McGreal wrote: >> Hi Felix users, >> I wonder if anyone knows why the Felix @Reference annotations are valid on >> fields, but not methods, whereas the opposite is true for the OSGi standard >> @Refe

SCR @Reference on fields?

2013-11-02 Thread Daniel McGreal
Hi Felix users, I wonder if anyone knows why the Felix @Reference annotations are valid on fields, but not methods, whereas the opposite is true for the OSGi standard @Reference annotation. I would very much like to have a service bound, which I don’t keep a reference to in the rest of my class

Re: Use of OSGI for Apple Macs...

2013-10-29 Thread Daniel McGreal
Is the OSGi Initial Provisioning specification what you're needing? On 29 Oct 2013, at 17:53, Neil Bartlett wrote: > 3. Also, Does OSGI support initial deployment like Web Start does or do we > still need something else? The Mac blocks use of jnlp for initial deployment. -

Re: Filtering the default provided system packages

2013-09-11 Thread Daniel McGreal
Hi Per-Erik, A previous post, by my colleague, prompted this discussion: http://apache-felix.18485.x6.nabble.com/Specify-packages-that-should-not-be-exported-by-Felix-framework-td5004647.html#a5004657 Aside from implementing a solution within Felix, the workaround we came up with was the specify

Re: How to improve the start time of Apache Felix

2013-09-05 Thread Daniel McGreal
I apologise for the misdirection, but unless you have other constraints on any of Felix's countless advantages, you could potentially investigate using Equinox. I perceive it to start faster than Felix. On 5 Sep 2013, at 16:06, Roland wrote: > (The challenge is to start linux and the applicatio