|
|
Is there going to be an abstraction on top of persistent storage for bundles to use? I’m thinking of a method they can query that gives them their own persistent folder to do with what they will: save config, log to, whatever. This would of course sit on top of the file system in a directory that’s mounted via JFFS2 or something similar. I’ve found this sort of abstraction useful in the past on other mobile devices. |
|
|
finsprings, Yeah, this is an interesting idea. I can see something like an IBundleStorage service being very useful for providing a consistent way of saving/loading state. Eclipse has such a mechanism at the plugin level. We don't have anything like this currently. This would be a great place to add some functionality. In regards to logging, we use the standard OSGi log service: org.osgi.service.log.LogServiceAgain there is work here because the log implementation we use simply writes any log messages to System.out. There are probably other implementations we could use from KF or Apache Felix, but we haven't looked into that yet. |
|
|
This is somewhat-related to a question I was going to ask. Any chance that each bundle could get its own sqlite3 file? |
|
|
Matt, SQLite looks cool! Yeah, let me know if you find the Java API. This looks like something that would be really handy for developers. |
|
|
i highly recommend db4objects, an 800K GPL’d embeddable java object database that can work with any kind of persistence mechanism. i know them very well, and am happy to make an intro. |
|
|
Ken, Is the LogService registered in the VirtualBUG? I ask because I tried to make an app dependent on it and canStart() didn't return true until I removed LogService from my required services list. |
|
|
There is a simple default log service in Concierge that can be turned on and off via system properties. Refer to the CTE launch configuration dialog for more details. IRT your specific issue, this doesn’t seem right. After the Virtual BUG starts, type "services" and see if org.osgi.service.log.LogService is listed. If it is and canStart() returns false can you upload a test case? |
|
|
I confirmed that the LogService shows in my services list, but it still hangs (canStart returns false). To make this happen I took my currently-posted BUGer app and added the single line: getServices().add("org.osgi.service.log.LogService"); to the bottom of BUGerServiceTracker.initServices.(: services
|