This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Values in VO getting lost in Stub  RSS feed

 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am passing a VO from action to DAO and in DAO i am setting values in DAO.
This goes through the EJB Layer. I am facing an problem that some valus in VO gets lost while going through EJB Layer(Stub exactly).

This is the place where it gets lost
Object[] copies = Util.copyObjects(new Object[]{arg0,arg1},_orb());
CallingContext arg0Copy = (CallingContext) copies[0];
wrk_qtr_rptVO arg1Copy = (wrk_qtr_rptVO) copies[1];
wrk_qtr_rptVO result = ((com.wqreports.business.ejb.WQrptMaster)so.servant).genWQRpt(arg0Copy, arg1Copy);
return (wrk_qtr_rptVO)Util.copyObject(result,_orb());

My VO implements serializable interface.
 
Scott Selikoff
author
Bartender
Posts: 4093
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are types/classes of the values?
 
Arulanand Dayalan
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Scott for looking into my problem. My VO consists of String, int and Arraylist of someother VO objects.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!