Hi Isomorphic,
can you please help me with this.
Is it possible to get "server name" inside of DynamicDSGenerator constructor in case when dsRequest is null?
Best regards
Pavo
can you please help me with this.
Is it possible to get "server name" inside of DynamicDSGenerator constructor in case when dsRequest is null?
Code:
DynamicDSGenerator aggTableGenerator = new DynamicDSGenerator() { @Override public DataSource getDataSource(String id, DSRequest dsRequest) { DataSource ds = null; try { String serverName = null; if (dsRequest != null && dsRequest.getHttpServletRequest() != null) serverName=dsRequest.getHttpServletRequest().getServerName(); else // need some other way } catch (Exception ex) { ex.printStackTrace(); } return ds; } };
Pavo
Comment