Hi All,

I am having difficulties with using the session servlet. My web.xml is unmodified and I make no reference to the session servlet in the flex_config.xml. I am using flex 1.0 on Jrun 4. Here is the error I get:

"Service threw an exception during method invocation: You are not allowed to access the service /faq. The service is not in the configured whitelist."

All the docs say to do is add something like this in the mxml file (this is what I have)
<mx:RemoteObject source="servlet" id="sessionObj" encoding="AMF"
showBusyCursor="true" result="retrieveSessionParams(event)"/>


I am using the following to access the session in the mxml file:

//called when app is initialized
function initApp():Void {
sessionObj.session("get","currentView");
}
function retrieveSessionParams(event):Void {
var currentView:String = event.result.currentView;
}
function setSessionParams(param:String):Void {
sessionObj.session("set","currentView",param);
}

Am I missing something?

Thanks,
Jonathan

--
Jonathan Baney
Enterprise Data Modeler
Thunderbird Consulting Application Engineering: A division of ITS
Mesa Community College






Reply via email to