[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2017-05-10 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16004678#comment-16004678
 ] 

Jean-Baptiste Onofré commented on KARAF-4685:
-

I updated master for Cellar 4.1.x (Cellar 4.0.x is now on a dedicated branch). 
We can play on a feature branch/PR about that.

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-09-02 Thread Roland Hauser (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15457899#comment-15457899
 ] 

Roland Hauser commented on KARAF-4685:
--

I'm already working on an implementation. It would be great, if I could use 
that new Cellar branch ;-)

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-09-02 Thread Achim Nierbeck (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15457897#comment-15457897
 ] 

Achim Nierbeck commented on KARAF-4685:
---

Well the proposed flags are only available from that feature on ... (or better 
understood with that version)
BUT ... we have a similar thing already available with the current version of 
Pax-Web :-) 

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-09-02 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15457888#comment-15457888
 ] 

Jean-Baptiste Onofré commented on KARAF-4685:
-

It's hard to relay on OSGi Enterpsie Spec 6.0.0 in Cellar 4.0.x, or it means 
such feature will work only with only specific Karaf version.

What I can do is to prepare Cellar 4.1.0 (working with Karaf 4.1.x), and 
implement such feature for this version serie.

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-09-02 Thread Achim Nierbeck (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15457864#comment-15457864
 ] 

Achim Nierbeck commented on KARAF-4685:
---

This will require Pax-Web 6.0 as it's the version handling OSGi R6 
Http-Whiteboard service. 

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-09-02 Thread Roland Hauser (JIRA)

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15457856#comment-15457856
 ] 

Roland Hauser commented on KARAF-4685:
--

This should work exactly that way, see OSGi enterprise spec 6.0.0, 140.5 
Registering service filters and 140.7 Registering Listeners. The only thing is 
that a listener must be registered with property 
osgi.http.whiteboard.listener=true otherwise it will be ignored by the http 
whiteboard.

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (KARAF-4685) Support session replication through OSGi 6 http whiteboard

2016-08-31 Thread JIRA

[ 
https://issues.apache.org/jira/browse/KARAF-4685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15452080#comment-15452080
 ] 

Jean-Baptiste Onofré commented on KARAF-4685:
-

It sounds like a good idea, but the point is: how do you "inject" the listener 
in the web-app ? Just a service is not enough AFAIR.

> Support session replication through OSGi 6 http whiteboard
> --
>
> Key: KARAF-4685
> URL: https://issues.apache.org/jira/browse/KARAF-4685
> Project: Karaf
>  Issue Type: Improvement
>  Components: cellar-http
>Reporter: Roland Hauser
>Assignee: Jean-Baptiste Onofré
>
> Currently, session replication can only be done through specifying the 
> Hazelcast filter/listener in the web.xml file of a web-application. This can 
> be a serious disadvantage if you also want to install a web-application to 
> another web-container which does not need clustering, and, consequently, does 
> not contain the Hazelcast libs. In this case, the application won't start.
> I suggest an additional way how session replication could be realized without 
> the need of modifying the web-app: it could be done through a Cellar 
> component which implements a http whiteboard. I would realize this as follows:
> - Register a Filter/Session listener to the OSGi service registry. Per 
> default, every web-application installed is considered for session 
> replication.
> - It should be possible to configure Hazelcast filter properties either 
> through a config file inside the OSGI-INF folder of the web-app, or, through 
> the ConfigAdmin service.
> - If the sessions of a specific web-application should not be replicated, 
> then this could be flagged either through a config file inside the OSGI-INF 
> folder of the web-app, or, through the ConfigAdmin service.
> - The new Cellar component should be installable as additional feature 
> "http-failover"
> What's your opinion?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)