I am trying to query a DB table from an extension that implements IPSItemInputTransformer.
For simplicity, I even created the table ‘Taxmeshtable’ in the Rhythmyx database
I get the error that Resource not found.
Here’s what I did…for a simple test
I wrote the query
String query = “SELECT * FROM Taxmeshtable”;
String meshTerms = executeGetMeshTermsQuery(query);
and I have
private String executeGetMeshTermsQuery(String query)
{
try
{
Query q = cmgr.createQuery(query, Query.SQL);
QueryResult result = cmgr.executeQuery(q, 1, null, null);
RowIterator iterator = result.getRows();
while (iterator.hasNext())
{
System.out.println("Row found");
Row row = iterator.nextRow();
Value mterms = row.getValue("meshterms");
Value taxkey = row.getValue("taxonomykey");
}
}