Hi,
I have a question about Spring DMI. I am trying to pass additional parameters from the client to the spring bean method set to handle my fetch operations.
I do the following on the client:
dataSourceId.ds.xml is configured like the spring-hibernate-dmi sample
with serverType "generic" and lookupType "spring"
On the server the method that handles the fetch has the following signature
The fetch method gets called with a populated dsRequest
I am trying to examine this object to find how to retrieve the properties I added on the client.
Is this correct use of the defaultParams method?
Is there some other way to pass custom parameters to the server preferably with this architecture?
I have a question about Spring DMI. I am trying to pass additional parameters from the client to the spring bean method set to handle my fetch operations.
I do the following on the client:
Code:
DataSource ds = DataSource.get("dataSourceId"); Map m = new HashMap(); m.put("session_key", "session_value"); ds.setDefaultParams(m); ListGrid lg = new ListGrid(); lg.setDataSource(ds); lg.setAutoFetchData(true);
with serverType "generic" and lookupType "spring"
On the server the method that handles the fetch has the following signature
Code:
DSResponse fetch(DSRequest dsRequest)
I am trying to examine this object to find how to retrieve the properties I added on the client.
Is this correct use of the defaultParams method?
Is there some other way to pass custom parameters to the server preferably with this architecture?
Comment