> > β > So just wanted to know if you are able to get instance id there.β
βYes I was able to get instance ID once I set it in member initialized event.β On Fri, Jul 3, 2015 at 12:08 AM, Asanka Sanjaya Herath <[email protected]> wrote: > Hi Swapnil, > > IMO We need to set instance ID in member *initialized *event, not in > member created event. In member created event I also got member ID as null. > Because I think that instance ID is not set in member created event. > Another important thing is we need to do message processor side changes in > order to expose the instance ID through topology to other components as > well. See this commit [1]. > > [1]. > https://github.com/apache/stratos/commit/9f44791884a54499997a0e5d00f7a4b46047b3b2 > > On Thu, Jul 2, 2015 at 11:56 PM, Swapnil Patil <[email protected]> > wrote: > >> Hi Asanka, >> >> I am trying to expose instance id through topology. For that I have made >> these changes [1]. I am trying to retrieve instance id of member context >> and set it to Member object inside handleMemberCreatedEvent. But I am >> getting instance id of member context, which is passed as argument as null. >> >> I went through your code changes and noticed that you have this change of >> setting instance id of member in handleMemberInitializedEvent [2]. >> >> So just wanted to know if you are able to get instance id there. >> >> [1] >> https://github.com/swaprp15/stratos/commit/5770646efe7faa50b8ea2c36391a03e0e404a632 >> [2] >> https://github.com/asankasanjaya/stratos/blob/master/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/messaging/topology/TopologyBuilder.java#L471 >> >> Thanks and Regards, >> Swapnil >> > > > > -- > Thanks, > Regards, > ASH > -- Thanks, Regards, ASH
