Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8642273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:44:01+00:00 2026-06-12T11:44:01+00:00

While passing data (Data Serialization) from Java (server) to Flex (client) the names of

  • 0

While passing data (Data Serialization) from Java (server) to Flex (client) the names of the object are getting changed. Please find the details below.

Java Pojo

public class MSC
{
   public String Column1;
   public String Column2;
}

Java Remote Class

public List<MSC> getData()
{
   MSC pojoMSC = new MSC;
   pojoMSC.Column1 = "1";
   pojoMSC.Column2 = "2";

   List<MSC> listMSC = new ArrayList<MSC>;
   listMSC.add(pojoMSC);
   return listMSC;
}

Flex Result Handler

var ReturnData:ArrayColelction = event.result as ArrayCollection;

When I debug and Watch for Expression ReturnData I get the following

ReturnData
  [0]
     column1   "1"
     column2   "2"

Though the process is all correct and the values too are all correct, the names of the objects of 0 index of ReturnData is changed from Column1 to column1 and Column2 to column2.

I think this done by Flex AMF Data Serilization. How could it be prevented so that I can get Coulmn1 as Column1 etc. If not what is the concept behind it.

Thanks in Advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T11:44:02+00:00Added an answer on June 12, 2026 at 11:44 am

    Yes, this is because BlazeDS uses Java Bean naming convention.

    First of all, in Java you don’t name class’s members (fields, methods) starting with a capital letter.

    Second, it is a good practice to follow encapsulation principles and make your fields private and use getters/setters to mutate them.

    In you case this would be like this:

    public class MSC
    {
       private String column1;
       private String column2;
    
       public String getColumn1(){
          return column1;
       }
    
       public void setColumn1(String value) {
          column1 = value;
       }  
    
       public String getColumn2(){
          return column2;
       }
    
       public void setColumn2(String value) {
          column2 = value;
       } 
    }
    

    But in general: DON’T start variables with a capital letter.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using mvc 3 code first. facing problem while passing data form SecurityAttribute
What I want to do is while executing MySQL query, passing column data into
How can I instantiate an anonymous object while passing the propertynames and values as
I am starting an activity from one by passing some data in the intent.
i have problem passing data from one page to another using GET, for example
I am doing validation server side, If fails I am passing back json data
I've been wondering for a while why initializing any data by passing it to
i am having a problem while retrieving the data coming from Json... i am
There is a problem executing this block of code while passing the parameter. Parameter
Passing User defined argument to RPM is possible while installing?. for example: ~>rpm -i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.