Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > OSGi BaseAdaptor doesn't take any note of config.ini

Thread Tools

OSGi BaseAdaptor doesn't take any note of config.ini

C. Marco
Posts: n/a
Hi newsgroup,

I have a little problem intializing a Equinox OSGi Framework from
within a non-OSGi application. I tried playing around with

FrameworkAdaptor m_adaptor = new BaseAdaptor(args); //args passed on
from main(args)
OSGi m_osgi = new OSGi(m_adaptor);
BundleContext m_context = m_osgi.getBundleContext();

and lateron starting it using m_osgi.launch(). But this seems to be
ignoring my config.ini file which is located in configuration folder.
I played around with some runtime options but I haven't figured out
how I can instantiate an OSGi framework based on my config.ini. If I
start up my OSGi application without that wrapper app. everything
works just fine. All bundles are installed and started just like I
configured it in my config.ini. How can I initialize my framework
correctly? Maybe even use the same cache?

Another problem I have is that I want to "automate" user interaction
via the framework console. Therefore I tried out a

String[] cmds = { "ss", "diag 1", "close" };
FrameworkConsole m_console = new FrameworkConsole(m_osgi, cmds)

where cmds is just a String array of all my commands. Starting this
using works just fine, all commands are invoked but
then there happens nothing. Every method call after that run() method
is just ignored. There's no exception thrown, nothing. It even ignores
my finally block in main()-method. Why is that so and what am I doing

I would be so thankful if anyone could help me a little here. How
would you guy do it?
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
python & osgi Andreas Wapf Python 1 09-13-2007 06:55 AM
best practices: logging in an osgi environment brindy Java 0 08-24-2007 11:22 PM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
https in OSGI Selie Peter Java 0 01-13-2006 01:34 PM
native applications and OSGI herc Java 0 11-05-2004 08:39 AM