[Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-28 Thread Afkham Azeez
After a discussion during today'd BAM REST API review, we came up with this idea of allowing webapps, services etc. to obtain references to OSGi services deployed in the platform using the Carbon APIs. As a result of this, I have added the following methods to the SuperTenantCarbonContext. /**

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-29 Thread Afkham Azeez
I just tested this with the attached webapp and the OSGi service call from the webapp works as well. On Thu, Jun 28, 2012 at 6:31 PM, Afkham Azeez wrote: > After a discussion during today'd BAM REST API review, we came up with > this idea of allowing webapps, services etc. to obtain references

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-29 Thread Senaka Fernando
Hi Azeez, Is this different to how @scr annotations work? What are the implementations of these methods supposed to be doing? Also, when would these make to the API? C4 or later? Thanks, Senaka. On Fri, Jun 29, 2012 at 9:10 PM, Afkham Azeez wrote: > I just tested this with the attached webapp

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-29 Thread Afkham Azeez
Scr annotations cannot be used from pure Axis2 (non-OSGi bundle), pure webapps, pure JAXWS/JAXRS apps and so on. These methods will allow any of these non-OSGi artifacts to access OSGi services. This feature is immediately needed by BAM & has been committed to the trunk, and will be available with

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-29 Thread Hiranya Jayathilaka
On Sat, Jun 30, 2012 at 8:00 AM, Afkham Azeez wrote: > Scr annotations cannot be used from pure Axis2 (non-OSGi bundle), pure > webapps, pure JAXWS/JAXRS apps and so on. These methods will allow any of > these non-OSGi artifacts to access OSGi services. This feature is > immediately needed by BAM

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-06-29 Thread Buddhika Chamith
Yes. It's working as expected from my web app. Thanks. Regards Buddhika On Fri, Jun 29, 2012 at 9:10 PM, Afkham Azeez wrote: > I just tested this with the attached webapp and the OSGi service call from > the webapp works as well. > > > On Thu, Jun 28, 2012 at 6:31 PM, Afkham Azeez wrote: > >>

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-05 Thread Tharindu Mathew
Hi AS Team, Is it possible to get some help here please? I'd like to include this for our Alpha release. On Fri, Jul 6, 2012 at 2:20 AM, Tharindu Mathew wrote: > Hi Azeez, > > I'm getting a CNF when using this inside a JAX RS webapp. This gets > deployed successfully, and the exception occurs w

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-06 Thread Afkham Azeez
I will take a look during the weekend -- Afkham Azeez Sent from my phone On Jul 6, 2012 11:28 AM, "Tharindu Mathew" wrote: > Hi AS Team, > > Is it possible to get some help here please? I'd like to include this for > our Alpha release. > > On Fri, Jul 6, 2012 at 2:20 AM, Tharindu Mathew wrote:

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Tharindu Mathew
Thanks Azeez. Were you able to reproduce this issue? On Sat, Jul 7, 2012 at 10:15 AM, Afkham Azeez wrote: > I will take a look during the weekend > > -- > Afkham Azeez > Sent from my phone > On Jul 6, 2012 11:28 AM, "Tharindu Mathew" wrote: > >> Hi AS Team, >> >> Is it possible to get some hel

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Afkham Azeez
This doesn't even deploy for me on AppServer trunk. [2012-07-08 14:36:26,198] INFO {org.springframework.beans.factory.xml.XmlBeanDefinitionReader} - Loading XML bean definitions from URL [jndi:/localhost/datareceiver/WEB-INF/cxf-servlet.xml] [2012-07-08 14:36:34,129] INFO {org.springframework.

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Afkham Azeez
I will try to write a very simple JAXRS service which calls this SuperTenantCarbonContext & try to reproduce this issue. On Sun, Jul 8, 2012 at 12:59 PM, Tharindu Mathew wrote: > Thanks Azeez. Were you able to reproduce this issue? > > > On Sat, Jul 7, 2012 at 10:15 AM, Afkham Azeez wrote: > >>

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Tharindu Mathew
That bundle is not present in app server. Can you copy all jars from the data bridge component to drop ins? Cp 'find. -name "*jar"' $bam_home_dropins should work Regards, Tharindu Sent from my Android© device On Jul 8, 2012 2:37 PM, "Afkham Azeez" wrote: > This doesn't even deploy for me on A

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Afkham Azeez
I was able to reproduce this with a simple JAXRS service. On Sun, Jul 8, 2012 at 2:47 PM, Tharindu Mathew wrote: > That bundle is not present in app server. Can you copy all jars from the > data bridge component to drop ins? > > Cp 'find. -name "*jar"' $bam_home_dropins should work > > Regards,

Re: [Dev] New API methods in SuperTenantCarbonContext to get hold of OSGi service references

2012-07-08 Thread Afkham Azeez
Something in the current AS in trunk is broken. The webapp I attached earlier in this mail thread is not working for me anymore :( On Sun, Jul 8, 2012 at 3:06 PM, Afkham Azeez wrote: > I was able to reproduce this with a simple JAXRS service. > > > On Sun, Jul 8, 2012 at 2:47 PM, Tharindu Mathew