struct
09-02-2008, 03:14 PM
Hi,
I am trying to embed Pentaho's MetaData & SQLGenerator component in an EJB app.
The problem is that the CWM singelton reads a view files (jdbc/repository.properties & cwm/PentahoCWM.xml) directly from the file system via a FileInputStream.
However, according to the J2EE spec, you must access resources via hread.currentThread().getContextClassLoader().getResourceAsStream(fileName).
The result is that the metadata repository fails to initialize.
Has anybody run into similar problem. Any way to work around this?
Thanks.
I am trying to embed Pentaho's MetaData & SQLGenerator component in an EJB app.
The problem is that the CWM singelton reads a view files (jdbc/repository.properties & cwm/PentahoCWM.xml) directly from the file system via a FileInputStream.
However, according to the J2EE spec, you must access resources via hread.currentThread().getContextClassLoader().getResourceAsStream(fileName).
The result is that the metadata repository fails to initialize.
Has anybody run into similar problem. Any way to work around this?
Thanks.