Thanks Patrik, You are right, there is a "deeper" problem which I am slowly getting to. I think a separate post is on it's way for that one. It is about how events are published / should I be using views / channels(default class based) or as you suggest the EventBus.
I'll get to that soon - warrants a separate thread. > > I'm trying to understand what the real problem is here. Is the problem > that you publish the events via the eventStream and when you wrap the > events all subscribers will receive all events and have to filter them > after the fact? If that is the problem I would suggest that you publish the > events via something else than the normal eventStream. Something that is > aware of this wrapping. It can be an actor, or another implementation of > EventBus > Subchannelclassification<http://doc.akka.io/docs/akka/2.3.2/scala/event-bus.html#Subchannel_Classification> > . > > Regards, > Patrik > > >> The alternative is to go down the route of writing a Macro .. so that all >> events and commands carry the metadata directly . no wrapping. >> >> thoughts ? >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: >> http://doc.akka.io/docs/akka/current/additional/faq.html >> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user >> --- >> You received this message because you are subscribed to the Google Groups >> "Akka User List" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > > Patrik Nordwall > Typesafe <http://typesafe.com/> - Reactive apps on the JVM > Twitter: @patriknw > JOIN US. REGISTER TODAY! <http://www.scaladays.org/> > Scala <http://www.scaladays.org/> > Days <http://www.scaladays.org/> > June 16th-18th, <http://www.scaladays.org/> > Berlin <http://www.scaladays.org/> > > -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
