You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nino martinez wael <ni...@gmail.com> on 2016/10/10 18:44:20 UTC
Service dependent of http context?
Hej Guys
I know this is not a direct karaf question.. But are there a way for a
service to be dependant of a http context.. In my case we actually can have
users that are independent of http session.. Instead its based on an id
within the request...
--
Best regards / Med venlig hilsen
Nino Martinez
Re: Service dependent of http context?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
You can implement a service tracker on the HttpContext service.
Regards
JB
On 10/10/2016 08:44 PM, nino martinez wael wrote:
> Hej Guys
>
> I know this is not a direct karaf question.. But are there a way for a
> service to be dependant of a http context.. In my case we actually can
> have users that are independent of http session.. Instead its based on
> an id within the request...
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
--
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Service dependent of http context?
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
AFAIK the http context is also registered as a service, might want to try
this.
regards, Achim
2016-10-10 20:44 GMT+02:00 nino martinez wael <ni...@gmail.com>
:
> Hej Guys
>
> I know this is not a direct karaf question.. But are there a way for a
> service to be dependant of a http context.. In my case we actually can have
> users that are independent of http session.. Instead its based on an id
> within the request...
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master