Hi Isomorphic,
I'm transitioning existing 5.1p server code that was used from the client to work from server/servlet use as well, making it not depend on a RPCManager-instance presence.
This works well so far, but now I'm at a position where I need to fake a DSResponse in order not execute an expansive statement.
Before I used this in a method returning a DSResponse:
But now I don't have rpcManager.
Can I do this?
Even if this is valid usage, a String-constructor for DSResponse (like for DSRequest) would be the cleaner solution IMHO.
What is your suggestion here?
Thank you & Best regards
Blama
I'm transitioning existing 5.1p server code that was used from the client to work from server/servlet use as well, making it not depend on a RPCManager-instance presence.
This works well so far, but now I'm at a position where I need to fake a DSResponse in order not execute an expansive statement.
Before I used this in a method returning a DSResponse:
Code:
fetchResponse = new DSResponse(rpcManager.getDataSource(dataSource.getValue()), BaseResponse.STATUS_SUCCESS); ... ... return fetchResponse;
Can I do this?
Code:
DataSource tempDS = DataSourceManager.get(dataSource.getValue()); fetchResponse = new DSResponse(tempDS, BaseResponse.STATUS_SUCCESS); DataSourceManager.free(tempDS); ... ... return fetchResponse;
What is your suggestion here?
Thank you & Best regards
Blama
Comment