Hello,
I would like to use files generated by Torque in an standalone application.
I've generated the OM/Peer classes by Torque with an xml schema database,
but I've some problems for using these in an standalone application.
Sample code:
[..]
ConnectionPool cp = new ConnectionPool(
"oracle.jdbc.driver.OracleDriver",
"jdbc:oracle:thin:@XXXXX:XXX",
"XXX",
"X");
Account account = new Account();
Criteria crit = new Criteria();
crit.add(AccountPeer.ACCOUNT_ID, "123456789");
Vector v = AccountPeer.doSelect(crit, cp.getConnection());
[...]
I've put at the beginning of the code the resources initialization:
TurbineConfig tc = new TurbineConfig(
"C:\\Java\\Torque\\",
"TurbineResources.properties");
tc.init();
with a sample TurbineResources.properties
but when I try to compile , I got erros about javax.servlet but I do not
want to use servlet.
"Test.java": Error #: 314 : cannot access class javax.servlet.ServletConfig;
neither class nor source found for javax.servlet.ServletConfig
Is it possiblz to use OM/Peer classes in an standalone application without
Serlvets ??
Thanks
Franck Arnulfo