Skip to main content

Newbies Q: RA firing events into existing Activity Context

3 replies [Last post]
ellipirelli
Offline
Joined: 2008-01-29

Hi folks,
my layout is simple: I have a kind of message translator with some logic inside SBB:

Network->RA(IN) -> SBB -> RA(OUT) -> LegacySystem

Sometimes later the Legacysystem answers, the RA(OUT) forwards back to SBB, which in turn forwards it to RA(IN) for answer to the network.

Now the RA(OUT) shall fire into the already existing ActivityContext (AC) created by RA(IN). This shall reduce overhead and allow the SBB on the message way back to access data lying in the AC.

I see no way for RA(OUT) to fire into an existing AC as RA.FireEvent() has no AC as parameter.

Sure I could add a second SBB for the way back, but then I have a second AC for each request between RA(OUT) and a new SBB. Again too much overhead.

Is this the best architecture for such a demand ?

Thanks for any comment.

Regards
Gerry

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
eduardomartins
Offline
Joined: 2005-10-10

each ra has its own activities, so what you do is something like

1. initial event from ra(in) rcvd, save instance data (if any) in cmps
2. create activity to rcv event from ra(out) and attach to sbb local object
3. rcv event from ra(out)

your instance data, if any, will be there

ellipirelli
Offline
Joined: 2008-01-29

Hi Eduardo,
thanks for the reply and sorry for my late response.

I think I got the deal.

As a newbie may I raise some more question ?

>2. create activity to rcv event from ra(out)
ok, I raise an initial event from RA(OUT) as I have another event.

(Aren't initial events expensive as they create another AC ?)

>and attach to sbb local object
(?confusion)

Why that ? Cann't I access CMP fields from any SBB Instance?

>3. rcv event from ra(out)

You mean within SBB ? But isn't step 3 first and then step 2:
I first rcv the event in SBB and then attach to SBB local object to
get my CMP fields back ?

Best regards
Gerry

baranowb
Offline
Joined: 2006-01-09

> Hi Eduardo,
> thanks for the reply and sorry for my late response.
>
> I think I got the deal.
>
> As a newbie may I raise some more question ?
>
> >2. create activity to rcv event from ra(out)
> ok, I raise an initial event from RA(OUT) as I have
> another event.
>
"raise" ? You only fire events into SLEE, its SLEE implementation that defines if its initial or not
> (Aren't initial events expensive as they create
> another AC ?)
>
Again look above, its the way SLEE specs define it.
> >and attach to sbb local object
> (?confusion)
>
> Why that ? Cann't I access CMP fields from any SBB
> Instance?
>
????
> >3. rcv event from ra(out)
>
> You mean within SBB ? But isn't step 3 first and
> then step 2:
> I first rcv the event in SBB and then attach to SBB
> local object to
> get my CMP fields back ?
>
CMP is property os SBB entity , not Activity or ActviityContext.

> Best regards
> Gerry