|
You can use RTMP with RPC and also can
enable polling for an RPC channel. I believe we only start polling when
someone subscribes over that channel anyway so amf and amf-polling are really
the same thing if you are only doing RPC. When you are using an HTTP session, the
FlexContext.getFlexSession().getUserPrincipal() call will return request.getUserPrincipal
if you have not explicitly logged in via the flex setCredentials stuff. I am
thinking that your login jsp page must be doing whatever your app server
requires to get this request.getUserPrincipal set (or else I have no idea why
that is working!) This is not true for RTMP though…
currently we do not have an automatic way to tie a specific RTMP session to an
HTTP session from the same client. Jeff From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Actually based on
your email, does this mean if you are using RTMP channel for FDMS, does this
mean u can use it with RPC service as well? Cause I don't think this is
mentioned in any docs/examples. Dimitrios
Gianninas RIA Developer Optimal Payments
Inc. From:
[EMAIL PROTECTED] thanks Jeff for
that extra piece of info. Right now my RPC
stuff is using amf channel, where the FDMS stuff is using amf-polling. So
it won't cause any problems to use amf-polling with regular RPC calls? Cause I
would think you normally wouldn't have any real reason too. I am not doing
setCredentials( Dimitrios
Gianninas RIA Developer Optimal Payments
Inc. From:
[EMAIL PROTECTED] That same approach should work with FDMS. Have you used
the setCredentials method on the DataService? If the
DataService and RPC service are using the same channel, they should also have
the same FlexSession on the server side so only one service would technically
need to authenticate. If you are mixing services on the same channel, a
little care is necessary to ensure that it had authenticated because (I am
pretty sure) that if you call setCredentials on say a RemoteObject, it
won’t actually send that to the server until you have actually tried to
execute the remote call. From: [EMAIL PROTECTED] Hi, RIA Developer Optimal Payments Inc.
-- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
__,_._,___ |
- RE: [flexcoders] Retrieving remote username with FDS Dimitrios Gianninas
- RE: [flexcoders] Retrieving remote username with ... Jeff Vroom

