On 4/20/06, Nestor Urquiza <[EMAIL PROTECTED]> wrote: > I put the example in my last response to Faish and of > course if having the getter > SCXMLExecutor#getRootContext() can be avoided for my > use case I rather do it. > > I am using a propietary kind of servlet container and > the way context is managed is with a simple Map but I > would really like to have my code at "bridge" level > not dependant on this particular servlet > implementation. I can even put the rootCtx in the > context as I am doing with my exec in the "system" > (also called most recently "domain" by you) layer > because the main problem of course is that it is not > enough to have the exec object if I want to manipulate > the root context. > > So given those facts do you have an alternative for my > usecase other than making available > SCXMLExecutor#getRootContext()? <snip/>
Ah, proprietary stuff ;-) You could provide a root context that was a JexlContext instantiated using the Map argument constructor, that way whatever is in the "simple Map" above is in the Context. The only difference in moving to another container would probably be how that Map is obtained, maybe that is significant enough for making this addition. Can you file a report in bugzilla [1] with some details on how the getter helps interoperability for your usage? I know its a small change, but we should have better archival for why someone would like to set vars on the root context (rather than setting them in the "environment" itself) before making the change, IMO. -Rahul [1] http://jakarta.apache.org/commons/sandbox/scxml/issue-tracking.html > Thanks! > <snap/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
