For starters, BlazeDS w/ Spring Integration is great. Thanks for that.
I've got a suggestion for a killer sample application in the next release.
Bring back the runtimeconfig-messaging application that was released in the BlazeDS-without-Spring release blazeds-turnkey-4.0.0.14931.
This post showed me the right way to get a reference to the MessageBroker.....the flex forums are littered with others who ran into this issue.
It also to me a while to figure out how to secure a dynamically-created destination (see code below).
Having this basic case all together in a single little test application would have saved me a ton of pain.
Thanks again,
--Erik
Code:ServiceAdapter adapter = destination.getAdapter(); MessagingAdapter msgAdapter = (MessagingAdapter)adapter; if (adapter !=null && adapter instanceof MessagingAdapter) { MessagingSecurityConstraintManager mscm = new MessagingSecurityConstraintManager( getMessageBroker() ); mscm.setSendConstraint("trusted"); mscm.setSubscribeConstraint("trusted"); msgAdapter.setSecurityConstraintManager(mscm); }


Reply With Quote