Question about OSGi and SCA

2013-08-18 Thread Dhiego Abrantes de Oliveira Martins
Hi all, One question: = It is possible to say that OSGi is SCA-based? And if is using bundles as web services? Best regards! __ *Dhiego*

Re: [ipojo] Question about exposing cxf endpoint

2013-05-18 Thread Dhiego Abrantes de Oliveira Martins
* 2013/5/18 Clement Escoffier clement.escoff...@gmail.com Hi, Which port are you using ? Also check if you don't have two http service deployed. Regards, Clement On 17 mai 2013, at 07:28, Dhiego Abrantes de Oliveira Martins dhi...@dhiegoabrantes.com wrote: Hi all, I have a problem

[ipojo] Question about exposing cxf endpoint

2013-05-16 Thread Dhiego Abrantes de Oliveira Martins
Hi all, I have a problem with CXF. I'm trying to develop a WebService as a Bundle OSGi and I'm using iPOJO + Maven. So, I included 'cxf-rt-transports-http' and 'cxf-rt-frontend-jaxws' as dependencies. Both on version 2.6.5. What seem is that when I start the bundle, an specific instance of jetty

[felix] Finding Specific Bundles

2013-05-04 Thread Dhiego Abrantes de Oliveira Martins
Hi, I have an inteface and an implementation. *interface*: br.com.ws.HiService (HiService Bundle) *impl*: br.com.ws.impl.HiServiceImpl (HiService Provider Bundle) If the bundles is started I can find them by 'getServiceReference' method, matching classes name. The problem is that the bundle is

Re: Consuming iPOJO DOSGi

2013-04-13 Thread Dhiego Abrantes de Oliveira Martins
Anyone can help me, please? Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com +55 83 .1081 ***Any fool can write code that a computer can understand. Good programmers write code that humans can understand*. (Martin Fowler

Re: Consuming iPOJO DOSGi

2013-04-12 Thread Dhiego Abrantes de Oliveira Martins
/soap:Envelope -- Where my mistake? Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com +55 83 .1081 ***Any fool can write code that a computer can understand. Good programmers write code

Re: Consuming iPOJO DOSGi

2013-04-12 Thread Dhiego Abrantes de Oliveira Martins
=service.exported.interfaces value=*/ property name=service.exported.configs value=org.apache.cxf.ws / property name=org.apache.cxf.ws.address value= http://localhost:9090/helloService; / /instance /ipojo Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate

Consuming iPOJO DOSGi

2013-04-11 Thread Dhiego Abrantes de Oliveira Martins
Hi, I have some iPOJO Services running over DOSGi (WebServices) in Felix. The client is a mobile, is in outside from container osgi and need to access (consume) the service provided by webservice (supported by ipojo service over dosgi). How the mobile client can 'consume' this webservice? Best

Re: Question about accessing component dosgi

2013-03-01 Thread Dhiego Abrantes de Oliveira Martins
org.apache.cxf.dosgi.topologymanager.ListenerHookImpl added *INFO: ListenerHookImpl: skipping import request for excluded classs [org.apache.felix.ipojo.remote.adder.AdderService]* Do you have any idea? I'll try to use karaf.. Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science

Re: Question about accessing component dosgi

2013-02-28 Thread Dhiego Abrantes de Oliveira Martins
bundles. Best regards! __ *Dhiego** **Abrantes* 2013/2/28 Christian Schneider ch...@die-schneider.net Am 27.02.2013 23:25, schrieb Dhiego Abrantes de Oliveira Martins: Christian, I follow these steps: 1- Implements AdderService (using @WebService) (interface) 2- Implements AdderServiceImpl

Re: Question about accessing component dosgi

2013-02-27 Thread Dhiego Abrantes de Oliveira Martins
is: Its possible use DOSGi with WebServices (REST/SOAP)? I mean: We can implement a bundle as a webservice and export it by dosgi ? Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com +55 83 .1081 ***Any fool can write code

Question about accessing component dosgi

2013-02-26 Thread Dhiego Abrantes de Oliveira Martins
Hi, I'm exporting a dosgi component as a webservice and I like do access him. I'm using iPOJO. *Interface:* public interface AdderService{ String add(); } *Provider:* public class AdderServiceImpl implements AdderService{ public String add(){ return

Re: Question about accessing component dosgi

2013-02-26 Thread Dhiego Abrantes de Oliveira Martins
The access to this service should occurs outside of framework (felix container). This is one of reasons of because I mustn't use dependency injection. anyone can help me? best regarsd! __ *Dhiego** **Abrantes* 2013/2/27 Dhiego Abrantes de Oliveira Martins dhi...@dhiegoabrantes.com Hi, I'm

Re: Check if bundle provides a service

2013-02-25 Thread Dhiego Abrantes de Oliveira Martins
to check the bundles that provide these services (service-spec tag, in xml) and then activate them. Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com +55 83 .1081 ***Any fool can write code that a computer can understand. Good

Re: About finding bundle

2013-02-23 Thread Dhiego Abrantes de Oliveira Martins
On Feb 22, 2013, at 11:33 PM, Dhiego Abrantes de Oliveira Martins dhi...@dhiegoabrantes.com wrote: Hi, Let's suppose: I have 2 bundles already started in framework: 1- HiService (interface) 2- HiServiceImpl (a class, an implementation to HiService) So, I want to find

About finding bundle

2013-02-22 Thread Dhiego Abrantes de Oliveira Martins
Hi, Let's suppose: I have 2 bundles already started in framework: 1- HiService (interface) 2- HiServiceImpl (a class, an implementation to HiService) So, I want to find in bundleContext ALL bundle that: a) has a implemantation of HiService b) has a specific implementation, as HiServiceImpl

Re: Console calling OSGi bundle returns “cannot be cast to…”

2013-02-16 Thread Dhiego Abrantes de Oliveira Martins
What do you mean with 'framework' ? regards, Dhiego. 2013/2/12 Richard S. Hall he...@ungoverned.org You are loading the class from two different class loaders, thus they are not compatible with each other. You cannot import packages from bundles when you are on the outside of the

Re: Using XStream in OSGi Project

2013-01-24 Thread Dhiego Abrantes de Oliveira Martins
Thanks Jodi! Is the best approach to work with xstream? Can I just start xstream bundle? I'm was trying to find some approach more 'automatic', like: a) embbed into project1 Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com

Re: Using XStream in OSGi Project

2013-01-24 Thread Dhiego Abrantes de Oliveira Martins
the serialized instance because we have a new version of class A. May be someone in the list knows a better aproach. Regards, Jordi On Thu, Jan 24, 2013 at 6:34 AM, Dhiego Abrantes de Oliveira Martins dhiegoabran...@gmail.com wrote: Hi all, I'm developing a project that uses XStream

Re: Error when start felix/ipojo dosgi

2013-01-08 Thread Dhiego Abrantes de Oliveira Martins
Thank you, Felix ! Clement, I'm using: java version 1.7.0_10-ea Java(TM) SE Runtime Environment (build 1.7.0_10-ea-b15) Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Re: Error when start felix/ipojo dosgi

2013-01-08 Thread Dhiego Abrantes de Oliveira Martins
) at org.apache.felix.framework.ModuleImpl.access$100(ModuleImpl.java:61) at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1733) at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ... 17 more Best regards! Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc

Re: Error when start felix/ipojo dosgi

2013-01-08 Thread Dhiego Abrantes de Oliveira Martins
Hi, It works! I just updated felix version from 2.x to 4.x. Look like the felix version was the problem... Now, I'll check if iPOJO is running normally Abs, __ *Dhiego** **Abrantes** de Oliveira Martins* *Computer Science, M.Sc. Candidate at UFPE* www.dhiegoabrantes.com +55 83 .1081 ***Any

iPOJO + Restful WS

2013-01-08 Thread Dhiego Abrantes de Oliveira Martins
Hi, iPOJO supports Apache CXF components implemented over Restful WebServices? Best regards, Dhiego Abrantes