I'm having problems just accessing my session bean in general from
within the flex client.  I'm using JSF and I can verify that the bean
exists in session, yet I can't retrieve it with it's state. 

Could you post some of your code that displays how you are accessing
this information?

Below is my 2nd page that tries to extract this simple helloWorld
data.


<%
        String jspVal = ((myPackage.HelloBean)                 
                      session.getAttribute("myName2")).getHelloName();
        
        out.println("\n\nJSP Session value: " + jspVal + "\n\n");
%>

<mm:mxml>

<mx:Application styleName="plain"
xmlns:mx="http://www.macromedia.com/2003/mxml";>
        
        
        <mx:Script>
                function updateVal(beanValue) {
                  thelabel.text=beanValue;
                }
        </mx:Script>
        
        <mx:RemoteObject type="stateful-class" id="myName2"
         source="com.biomerieux.rdstl.bean.hello.HelloBean" 
         result="updateVal(event.result)" />

        <mx:Accordion width="400" height="400">
                <mx:VBox label="Panel 1">
                <mx:Label text="Hello Flex!" 
                          id="thelabel" width="350" x="10"/>
                  <mx:Button label="name" 
                          click="myName2.getHelloName()"
                          width="150" x="10"/>
                  <mx:Button label="reset" 
                          click="thelabel.text='Hello Flex!'" 
                          width="150" x="10"/>                  
                </mx:VBox>
    </mx:Accordion>
</mx:Application>
</mm:mxml>




--- In flexcoders@yahoogroups.com, "Stacy Young" <[EMAIL PROTECTED]>
wrote:
> Noticed how the call was made by flex....
> 
>  
> 
> 8/12 17:26:0 [INFO] RemoteObject_AMF: /merchantsales.session()
returned
> { }
> 
>  
> 
> so I tried the following and it worked:
> 
>  
> 
> <unnamed>
> 
>        <source>com.optimal.raven.client.*</source>
> 
>        <source>merchantsales</source>
> 
> </unnamed>
> 
>  
> 
> Where the second source listed is the context name...strange this
isn't
> documented anywhere (form what I could see) - but it works!
> 
>  
> 
> Stace
> 
>  
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod
[EMAIL PROTECTED] On
> Behalf Of Stacy Young
> Sent: Friday, August 12, 2005 5:06 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Locking down Flex, Accessing Session Data
> 
>  
> 
> Locking down my server here...flex only has access to a collection
of
> client classes. All is well in that regard. Problem is, what do I
need
> to enter in the whitelist in order to allow the client to lookup
session
> data? I've tried this servlet, but to no avail..
> 
>  
> 
> <servlet>
> 
>         <servlet-name>session</servlet-name>
> 
>         <display-name>Provides access to the current session; for
use
> with RemoteObject</display-name>
> 
>         <servlet-class>flex.bootstrap.BootstrapS
ervlet</servlet-class>
> 
>         <init-param>
> 
>             <param-name>servlet.class</param-name>
> 
>             <param-value>flex.server.j2ee.remote
.Session</param-value>
> 
>         </init-param>
> 
>     </servlet>
> 
>  
> 
> Any ideas appreciated!
> 
> Stace
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/fi
les/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> 
> Computer software testing
> <http://groups.yahoo.com/gads?t=ms&k=Computer+so
ftware+testing&w1=Comput
> er+software+testing&w2=Macromedia+flex&w3=Develo
pment&w4=Software+develo
> per&c=4&s=93&.sig=kh2CguJwmatU5oBXjFo9Rg>  
> 
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+
flex&w1=Computer+softwar
> e+testing&w2=Macromedia+flex&w3=Development&w4=S
oftware+developer&c=4&s=
> 93&.sig=dAUcEV7do91-wrRtVS641g>  
> 
> Development
> <http://groups.yahoo.com/gads?t=ms&k=Development
&w1=Computer+software+te
> sting&w2=Macromedia+flex&w3=Development&w4=Softw
are+developer&c=4&s=93&.
> sig=AlxNUQBOI7Io7S7nhmxV0Q>  
> 
> Software developer
> <http://groups.yahoo.com/gads?t=ms&k=Software+de
veloper&w1=Computer+soft
> ware+testing&w2=Macromedia+flex&w3=Development&w
4=Software+developer&c=4
> &s=93&.sig=QWIit8JayomoIHLVkV3FDg>  
> 
>  
> 
>  
> 
>  
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
>  
> 
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
>  
> 
> ________________________________





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hqvtjlj/M=362329.6886308.7839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1124221542/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk back!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to