Well, you are basically not too far. You have two options:
1. Modify conf/config.properties to auto-start your bundles, then
they will start when you start Felix.
2. Create your own launcher to load and start Felix if you have
special needs.
Obviously, (1) is easier than (2), but (2) isn't that hard either. Here
are some docs on it:
http://felix.apache.org/site/apache-felix-framework-launching-and-embedding.html
Since it is a server, what you might want to do is remove the shell.tui
bundle and use shell.remote instead, so you can run the server in the
background and telnet into it to interact with it. Or get fancy and use
the web console.
-> richard
Olakara, Abdel wrote:
Hi all,
I am trying to build a server using Apache Felix. The server accepts
some socket connection and process the request accordingly and provides
the response.
Usually, to start the server, I start the Apache Felix and load some
bundle and services that is my server's implementation. I am looking to
change this to something like what we see while starting a Glassfish.
User just starts the server using a bat file and there is on OSGi
console or shell. Do we have any documentation to have these kinds of
interfaces? How do I achieve it using Felix or Equinox?
Please provide some documentation URL (if any) or any idea to go about
doing so will be great.
Thanks and Regards,
Abdel Olakara
http://technopaper.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]