Re: iPojo different versions of same bundle
You should define two instances in the same bundle in the metadata.xml, Regards, 2016-06-16 18:13 GMT+02:00 J-: > I have a bundle that contains a instantiated iPojo service. > Is it possible to deploy different versions of the same bundle and use a > filter to select the service instance? > Or Is it not possible since the service instance names collide. > > > i've tried in karaf, but the second deployment instances never show up in > service:list. > > > Thanks, > > -J > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Managing transactions in iPOJO or OSGi component
Hi, For me, i define transaction as follows a local transaction is a set of continuous actions on a component. a global transaction is a set of local transactions through components. For example before sending a message to receiver (e.g. component B), client (e.g. component A) needs to send the message to a compression component (e.g. component C) for compressing. To do that, A initiates a local transaction (T1) that consists of actions as sending msg to C, receiving the compressed message, and then sending it to B. On the C, when receiving the message, it initiates its own local transaction (T2) that consists of actions such as compressing the message and returing the compressed message. A global transaction in this example consists of T1 and T2. I want to implement a manager component to know how many T2 have been finished and when a transaction T2 is initiated or finished, etc. In fact, i want to find a solution for OSGi, iPOJO component model like http://jotm.objectweb.org/jironde.html (for Fractal component model). Thank you for your help. HNT, 2016-05-25 23:46 GMT+02:00 <e...@zusammenkunft.net>: > Hello, > > If this is oracle speach then "local transaction" means a JDBC connection > with a explicite .commit(), a "global transaction" will use XA transactions > (commit via Resource) and a managed transaction is a context where you have > a container beeing responsible for preparing and committing (can be local > or global). > > Bernd > > -- > http://bernd.eckenfels.net > > -Original Message- > From: David Jencks <david_jen...@yahoo.com.INVALID> > To: users@felix.apache.org > Sent: Mi., 25 Mai 2016 23:40 > Subject: Re: Managing transactions in iPOJO or OSGi component > > I don’t understand what you mean by “transaction”, “local transaction”, > “global transaction” or “manage transactions”. Does your usage of these > terms have any relationship with other established uses of (some of) them > such as the XA transaction spec? What properties do you want these > transactions to have? > > thanks > david jencks > > > On May 25, 2016, at 1:23 PM, tho huynh ngoc <ngocthob...@gmail.com> > wrote: > > > > Hi, > > > > > > I define a transaction is a set of continuous activities (one method or > set > > of methods) in a component. > > > > I wrote a simple example as follows: > > > > //service interfacepublic interface Hello { > >String sayHello(String name); > >String sayBonjour(String name);} > > //service implementation @Componentpublic class HelloImpl implements > Hello { > > > >public String sayHello(String name) { > > //start local transaction > > return "hello " + name; > > //finish local transaction > >} > >public String sayBonjour(String name) { > > //start local transaction > > return "bonjour " + name; > > //finish local transaction > >}} > > //client@Componentpublic class Client { > > > > Hello client; > > public Client() { > > //start local transaction > > client.sayHello("world"); > > client.sayBonjour("le monde"); > > //finish local transaction > > } > > } > > > > In this example, there are local transactions in the components HelloImpl > > and Client. I define that global transaction of the system consists of a > > set of local transactions through all components. > > > > How to manage transactions (global transaction and the local transtions > in > > this example) in OSGi or iPOJO ? > > > > Thank you for your response > > > > Regards, > > > > > > 2016-05-25 21:12 GMT+02:00 tho huynh ngoc <ngocthob...@gmail.com>: > > > >> i'm sorry i have not finished my message in this mail > >> > >> 2016-05-25 21:09 GMT+02:00 tho huynh ngoc <ngocthob...@gmail.com>: > >> > >>> Hi, > >>> > >>> I define a transaction is a set of continuous activities (one method or > >>> set of methods) in a component. > >>> > >>> I wrote a simple example as follows: > >>> > >>> //service interface > >>> public interface Hello { > >>>String sayHello(String name); > >>> } > >>> > >>> //implementation service > >>> @Component > >>> public class HelloImpl implements Hello { public HelloImpl() { > >>>System.out.print("start Hello implementation"); > >>>} > >>> > >>>public String sayHello(String name) { return "hello " + name; } > >>> } > >>> > >> > >> > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
Re: Managing transactions in iPOJO or OSGi component
Hi, I define a transaction is a set of continuous activities (one method or set of methods) in a component. I wrote a simple example as follows: //service interfacepublic interface Hello { String sayHello(String name); String sayBonjour(String name);} //service implementation @Componentpublic class HelloImpl implements Hello { public String sayHello(String name) { //start local transaction return "hello " + name; //finish local transaction } public String sayBonjour(String name) { //start local transaction return "bonjour " + name; //finish local transaction }} //client@Componentpublic class Client { Hello client; public Client() { //start local transaction client.sayHello("world"); client.sayBonjour("le monde"); //finish local transaction } } In this example, there are local transactions in the components HelloImpl and Client. I define that global transaction of the system consists of a set of local transactions through all components. How to manage transactions (global transaction and the local transtions in this example) in OSGi or iPOJO ? Thank you for your response Regards, 2016-05-25 21:12 GMT+02:00 tho huynh ngoc <ngocthob...@gmail.com>: > i'm sorry i have not finished my message in this mail > > 2016-05-25 21:09 GMT+02:00 tho huynh ngoc <ngocthob...@gmail.com>: > >> Hi, >> >> I define a transaction is a set of continuous activities (one method or >> set of methods) in a component. >> >> I wrote a simple example as follows: >> >> //service interface >> public interface Hello { >> String sayHello(String name); >> } >> >> //implementation service >> @Component >> public class HelloImpl implements Hello { public HelloImpl() { >> System.out.print("start Hello implementation"); >> } >> >> public String sayHello(String name) { return "hello " + name; } >> } >> > >
Managing transactions in iPOJO or OSGi components
Hi, I define a transaction is a set of continuous activities (one method or set of methods) in a component. I wrote a simple example as follows: //service interface public interface Hello { String sayHello(String name); String sayBonjour(String name); } //implementation service @Component public class HelloImpl implements Hello { public String sayHello(String name) { //start local transaction return "hello " + name; //finish local transaction } public String sayBonjour(String name) { //start local transaction return "bonjour " + name; //finish local transaction } } //client @Component public class Client { Hello client; public ClassTransaction() { //start local transaction client.sayHello("world"); client.sayBonjour("le monde"); //finish local transaction } } In this example, there are local transactions in the components HelloImpl and Client. I define that global transaction of the system consists of a set of local transactions through all components. How to manage transactions (global transaction and the local transtions in this example) in OSGi or iPOJO ? Regards,
Re: Managing transactions in iPOJO or OSGi component
i'm sorry i have not finished my message in this mail 2016-05-25 21:09 GMT+02:00 tho huynh ngoc <ngocthob...@gmail.com>: > Hi, > > I define a transaction is a set of continuous activities (one method or > set of methods) in a component. > > I wrote a simple example as follows: > > //service interface > public interface Hello { > String sayHello(String name); > } > > //implementation service > @Component > public class HelloImpl implements Hello { public HelloImpl() { > System.out.print("start Hello implementation"); > } > > public String sayHello(String name) { return "hello " + name; } > } >
Managing transactions in iPOJO or OSGi component
Hi, I define a transaction is a set of continuous activities (one method or set of methods) in a component. I wrote a simple example as follows: //service interface public interface Hello { String sayHello(String name); } //implementation service @Component public class HelloImpl implements Hello { public HelloImpl() { System.out.print("start Hello implementation"); } public String sayHello(String name) { return "hello " + name; } }
iPOJO metamodel
Hi, I search an iPOJO metamodel (e.g., file .ecore) to specify a jPOJO model considered as a platform specific model. I do not know if it exists a ipojo metamodel. Could you please give me a suggestion ? Thanks, HNT.
Re: ADL in iPOJO
Hi Clement, Could you give me an small example about two formats that you mentioned ? Thanks, Tho, 2016-02-25 8:15 GMT+01:00 Clement Escoffier <clement.escoff...@gmail.com>: > Hi, > > An ADL is an architecture description language. In iPOJO is has two format: > > * an API (DSL) > * A XML-based description > > Based on the DSL, it can support any other format. > > Clement > > > On 24 févr. 2016, at 18:22, tho huynh ngoc <ngocthob...@gmail.com> > wrote: > > > > Hi, > > > > I read in the iPOJO website. > > > > "iPOJO also provides an architecture description language to design > > applications in a flexible and hierarchic manner" > > > > What is the ADL in iPOJO ? we consider metadata.xml as an ADL ? > > > > Regards, > > > - > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >
ADL in iPOJO
Hi, I read in the iPOJO website. "iPOJO also provides an architecture description language to design applications in a flexible and hierarchic manner" What is the ADL in iPOJO ? we consider metadata.xml as an ADL ? Regards,
How to get property in iPOJO
Hi, I have a simple component as follows: @Component (name="Test") @Instantiate public class Test { @Property(name="foo", value="my-instance-2") String buffer = "abcbuffer"; public Test() { System.out.println("test running"); } } i use the "instance iTest" i have the result g! instance iTest instance name="iTest" state="valid" bundle="31" component.type="Test" handler name="org.apache.felix.ipojo:properties" state="valid" property name="foo" value="abcbuffer" handler name="org.apache.felix.ipojo:callback" state="valid" handler name="org.apache.felix.ipojo:architecture" state="valid" object name="test.Test@637a91a" How to i get "buffer" property via "introspection" from another component? here, i want to display the "abcbuffer" value. Regards,
IPOJO metamodel
Dear all, I would like to search an ecore file of ipojo metamodel. If one among you has it, please send me. Thanks in advance,