Sriharsha wrote:
Hi.,
    I am using Felix 1.4 and OBR and Bindex for an Swing-OSGi application
development. My maven local repository as well as my Felix repository is same.

Repository folder is "FelixRepo" folder under tomcat's webapp folder.

I have started Felix and i got Felix console . I have added a repository url using following obr command.

obr add-url http://localhost:8080/FelixRepo/repository.xml
Which works fine and I can do the desired taks with this.

If I add one more bundle to FelixRepo, say SimpleHelloBundle.jar which is
built by Maven-Bundle-Plugin, which updates my repository.xml file with the
information of SimpleHelloBundle under "FelixRepo" folder.

My question is 1. Do i need to add the above url to felix again? i.e, do i need to run obr add-url http://localhost:8080/FelixRepo/repository.xml
again?

You can add a configuration property so that it is changed on startup. It is currently set in conf/config.properties.

2. Second question is, is there any way that I can start my
SimpleHelloBundle.jar without typing the following line at Felix Console?

     obr deploy SimpleHelloBundle

Actually I have to build some ten such bundles using Maven-Bundle-plugin,
(which is anyway updates the repository.xml)  also I have to start them at
Felix Console.

I am not completely sure what you are asking for here. Are you saying you want OBR to somehow deploy bundles without you telling it to do so? If so, then no it cannot do that. If you are asking if there is a way to configure OBR to automatically deploy some list of bundles, it doesn't do this either, but I think Didier created some simple "shell scripting" mechanims that might be able to help. Otherwise, it would be fairly trivial to write a bundle to do this upon framework startup. This is outside the scope of what OBR is supposed to do.

BTW, you can do "obr start SimpleHelloBundle" to deploy and start the bundle in one shot.

Going to Felix Console and typing the obr deploy for ten bundles is not an
issue, but I wanted to automate this with out having a pain of typing
manually at Felix console.

You could possibly look at FileInstall if you have a closed set of bundles you would like deployed into the framework.

-> richard

Please suggest a way.

Thanks in advance
Sriharsha.

-----
Sriharsha


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to