This might help you:
http://rifers.org:8088/browse/rifers/rife/branches/i18n/src/examples/
standalone/database/Basic.java?r=trunk
On 04 Jun 2006, at 10:04, Laki roganovic wrote:
Hello,
I use RIFE's persistence layer in my web app, but would like to
test it outside my servlet container.
I had a look at this entry http://rifers.org/wiki/display/RIFE/
GuideCookbookNonweb, but i still can't figure out how to apply it
to solve my problem.
My DAO looks like this :
public class PersonDAO {
static final Logger logger = Logger.getLogger(PersonDAO.class);
static GenericQueryManager manager = GenericQueryManagerFactory
.getInstance(Datasources.getRepInstance().getDatasource
("mysql"),
Person.class);
public static long insert(Person person) {
try {
manager.install();
} catch (Throwable t) {
}
return manager.save(person);
}
}
Thanks for your help.
Laki
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users