Couple of questions...
Mo <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hi-
I'm new to openAMF and I have a couple questions. First, how do you
retrieve additional init parameters that you've added to the web.xml for
the gateway servlet? And second, how do you get access to class methods
after you've returned information from java to flash? I'll try to
explain the second question in more detail. Here is the situation.
I've created a user object in both flash and java with the following
members: username, firstName, lastName, age, location. Each class
contain getters and setters for each member in addition to a toString
method which just prints out values. I've tried having java return both
an ASObject and the raw user object, but when I try to access the getter
methods in flash I get an undefined value returned. When I try to access
the members directly I get an error saying that the members are private,
which they are. So it seems that flash knows that the members of the
user object are private, but for some reason the methods can't be
accessed.
I've ran the flash movie with NetConnection Debugger open and it does
show the information is being retrieved. Here is the response
information that is displayed in my tomcat window:
When returning an ASObject
---
INFO: RESPONSE:
[AMFBody: {serviceName=null, serviceMethodName=null, response=null,
type=UNKNOWN, value=ASObject[type=org.testing.UserInfo]}]
---
When returning the raw UserInfo object (seems to be using the toString
method)
---
INFO: RESPONSE:
[AMFBody: {serviceName=null, serviceMethodName=null, response=null,
type=UNKNOWN, value=
::StudentInfo::
User Name: jpope
First Name: John
Last Name: Pope
Age: 35
Location: PA
::
}]
---
Any Ideas?
Thanks
Mo
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/