Re: [Servingxml-help] [BULK] Re: params..
Brought to you by:
danielaparker
From: Daniel P. <dan...@sy...> - 2007-04-03 03:35:31
|
Parameters objects, once built, are immutable. Therefore, when you set parameter values at some point in a pipeline, the new values are only visible further on down the pipeline, the original parameters object is unchanged. The only way you could observe these new values in the Java application is if you defined a record filter within your Java application, and registered it appropriately with the framework, so its downstream from the point where the parameter is set. See the section "Importing ServingXML components from Java code" in the Embed link, if that's really what you want to do. -- Daniel ----- Original Message ----- From: "Sandhya" <sa...@la...> To: <dan...@sy...> Sent: Monday, April 02, 2007 5:53 PM Subject: FW: RE: [BULK] Re: [Servingxml-help] params.. > Also, can you tell me how I can access these parameters from the console > app. I am unable to access them from the parameters object in console app. > > -------- Begin forwarded message -------- > Subject: RE: [BULK] Re: [Servingxml-help] params.. > Date: 4/2/2007 9:53:15 AM > From: Sandhya <sa...@la...> > To: Daniel Parker <dan...@sy...> > > Tried this. It works for simple string params. paramters.getString() is > returns empty string for XML string params in CDATA sections. > > The following doesnot work: > > <sx:parameter name="record_structure"> > <![CDATA[<param recordtype="TYPE1" maxlen="100">]]> > </sx:parameter> > > <sx:parameter name="record_structure"> > <sx:defaultValue><![CDATA[<param recordtype="TYPE1" > maxlen="100">]]></sx:defaultValue> > </sx:parameter> > > > On Sat, Mar 31, 2007 at 12:10 PM, Daniel Parker wrote: > >> Name myParam = new QualifiedName("customparams"); >> String value = parameters.getString(myParam); >> >> ----- Original Message ----- From: "Sandhya" <sa...@la...> >> To: <ser...@li...> >> Sent: Friday, March 30, 2007 11:09 PM >> Subject: [Servingxml-help] params.. >> >> >>> Hi, I have a parameter in my sx:service tag. I want an xml string as a >>> param. >>> So I am using a CDATA section. I want access to this param in my >>> RecordFilter's writeRecord(..) method. How can I access this value >>> there. >>> >>> Or If I have to access this custom params just after the resource script >>> is parsed, how can I modify the consoleApp program to access this. >>> >>> <sx:parameter name="customparams"> >>> <sx:defaultValue> >>> <CDATA> >>> <customparams> >>> <param recordtype="TYPE1" maxlen="100"> >>> <param recordtype="TYPE2" maxlen="102"> >>> ... >>> </custormparams> >>> </CDATA> >>> </sx:defaultValue> >>> </sx:parameter> >>> >>> >>> Regards >>> Sandhya >>> >>> >>> >>> >>> ------------------------------------------------------------------------- >>> Take Surveys. Earn Cash. Influence the Future of IT >>> Join SourceForge.net's Techsay panel and you'll get the chance to share >>> your >>> opinions on IT & business topics through brief surveys-and earn cash >>> >>> >>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>> _______________________________________________ >>> Servingxml-help mailing list >>> Ser...@li... >>> https://lists.sourceforge.net/lists/listinfo/servingxml-help >>> >> >> > > > undefined > > > undefined > |