Version: SmartGWT EE 2.3
Hi all,
How do I retrieve/load a list of all SQL datasourcs (i.e. *.ds.xml)?
The strategy I came up with is to retrieve value of the property project.datasources from server.properties, then read in all *.ds.xml files.
I found in dsGenerator.jsp this was done like
<%@ page import="com.isomorphic.base.Config" %>
.........
<%
...
// Remember the path we're going to store to, so we can put it in the instructions
String path = Config.getGlobal().getString("project.datasources");
if (path.indexOf(",") != -1) path = path.substring(0, path.indexOf(","));
// Replace '\' with '/' to prevent unwanted escaping on Windows servers
path = path.replace('\\', '/');
%>
...
But I wasn't able to access the Config class in SmartGWT.
Can someone give me a pointer?
Thanks,
Sam
Hi all,
How do I retrieve/load a list of all SQL datasourcs (i.e. *.ds.xml)?
The strategy I came up with is to retrieve value of the property project.datasources from server.properties, then read in all *.ds.xml files.
I found in dsGenerator.jsp this was done like
<%@ page import="com.isomorphic.base.Config" %>
.........
<%
...
// Remember the path we're going to store to, so we can put it in the instructions
String path = Config.getGlobal().getString("project.datasources");
if (path.indexOf(",") != -1) path = path.substring(0, path.indexOf(","));
// Replace '\' with '/' to prevent unwanted escaping on Windows servers
path = path.replace('\\', '/');
%>
...
But I wasn't able to access the Config class in SmartGWT.
Can someone give me a pointer?
Thanks,
Sam
Comment