Re: [osgi-dev] Can we have dynamic sevlets?

2018-02-21 Thread Nikhil Chilwant via osgi-dev
Solved it.
I was uploading exported jar instead of the bundle which gets generated in
/generated folder.

Regarding approach, I found it working. I have blogged about my PoC here:
https://exploringsoftwareworld.blogspot.in/2018/02/osgi-plugin-framework-using-http.html
Hope it helps people in future.

Can we use it for the demo of HTTP whiteboard on the enroute site? (
http://enroute.osgi.org/services/org.osgi.service.http.whiteboard.html).


On Tue, Feb 13, 2018 at 5:57 PM, Nikhil Chilwant 
wrote:

> Hi,
>
> OSGi newbie here. This question is lengthy but I hope it helps people in
> future.
>
> I want to make a software which provides the feature to install/uninstall
> plugins. Think of something like Eclipse IDE plugins. The only difference
> is mine is web-app.
>
> I thought of implementing plugins as follows:
> Whenever a new plugin is installed, new HTTP servlet will be registered at
> Http Whiteboard. These exposed servlet endpoints will be used by other
> bundles as well as third-party apps which are present outside. Each plugin
> will be developed separately as an OSGi bundle. I can use Felix web console
> to allow the user to install/uninstall bundle of his choice.
>
> To verify my approach, I tried to run given OSGi enroute  Proxy provider
> example
> 
> from https://github.com/osgi/osgi.enroute.examples. I was able to run it
> in debug mode from Eclipse IDE but when I exported it to JAR ( tried to do
> so both from osgi.enroute.examples.proxycache.bndrun and debug.bndrun)
> and tried to install it through Felix web console, it gave the following
> error:
>
> *Using default permissions for inputstream:proxyCacheApp.jar*
> *No permissions for inputstream:proxyCacheApp.jar*
>
> My questions:
> 1. Is it feasible to implement my idea using Http Whiteboard?
> 2. How to give permissions for input steam?
> 3. Could any point out to working example of Http Whiteboard using OSGi
> enroute? The tutorial page for this on enroute site is empty (
> http://enroute.osgi.org/services/org.osgi.service.http.whiteboard.html)
>
> Feel free to guide/criticize/shout at me :)
> --
> Regards,
> Nikhil Chilwant
>
>


-- 
Regards,
Nikhil Chilwant
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Can we have dynamic sevlets?

2018-02-13 Thread Nikhil Chilwant via osgi-dev
Hi,

OSGi newbie here. This question is lengthy but I hope it helps people in
future.

I want to make a software which provides the feature to install/uninstall
plugins. Think of something like Eclipse IDE plugins. The only difference
is mine is web-app.

I thought of implementing plugins as follows:
Whenever a new plugin is installed, new HTTP servlet will be registered at
Http Whiteboard. These exposed servlet endpoints will be used by other
bundles as well as third-party apps which are present outside. Each plugin
will be developed separately as an OSGi bundle. I can use Felix web console
to allow the user to install/uninstall bundle of his choice.

To verify my approach, I tried to run given OSGi enroute  Proxy provider
example

from https://github.com/osgi/osgi.enroute.examples. I was able to run it in
debug mode from Eclipse IDE but when I exported it to JAR ( tried to do so
both from osgi.enroute.examples.proxycache.bndrun and debug.bndrun) and
tried to install it through Felix web console, it gave the following error:

*Using default permissions for inputstream:proxyCacheApp.jar*
*No permissions for inputstream:proxyCacheApp.jar*

My questions:
1. Is it feasible to implement my idea using Http Whiteboard?
2. How to give permissions for input steam?
3. Could any point out to working example of Http Whiteboard using OSGi
enroute? The tutorial page for this on enroute site is empty (
http://enroute.osgi.org/services/org.osgi.service.http.whiteboard.html)

Feel free to guide/criticize/shout at me :)
-- 
Regards,
Nikhil Chilwant
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Problem with running OSGi enroute example: Missing required Java project error

2018-02-09 Thread Nikhil Chilwant via osgi-dev
Hi,

I am using https://github.com/osgi/osgi.enroute.examples to learn OSGi.

I imported all projects to my Bndtools workspace. Except for
*osgi.enroute.examples.webserver.application*, all projects are fine. It
shows error:
Project 'osgi.enroute.examples.webserver.application' is missing required
Java project: 'osgi.enroute.example'

I already have *osgi.enroute.example* project in the workspace. It seems
that all other projects also use it.

Why can't *osgi.enroute.examples.webserver.application* find it? Also, do
other projects depend on osgi.enroute.example? If yes, why?

I am using Bndtools 3.3.0 (latest version has issues with OSGi-enroute) on
windows 7, Eclipse Oxygen 2 IDE (4.7.2), Java 8.


-- 
Regards,
Nikhil Chilwant
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev