Hello Geert,
Geert Bevin a écrit :
Hi Laki,
can you give some hints where you're stuck exactly?
I totally misunderstood the wiki entry about non-web apps : i thought
i'd have to implement Participant.
Didn't know i just have to call Rep.initialize() !
Thanks a lot.
Best regards,
Geert
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
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users