Hi everyone,

A silly thing is annoying me in my every-day use with iBatis under an IDE.

The matter is the following: every time I put some ibatis-dependent code on the initialization or "on_load" event in a graphic element under an IDE, it throws an exception cause it can't find sqlmap.config, etc.. because it the IDE is trying to render it at design time.

I mean, if I'm designing a GUI with an IDE and for example in a tabControl I put a listBox that should automatically load a list of users from a database using an ibatis statement, every time I click on the designer it throws an exception cause the actual "path" is the IDEs execution directory (which is executing the constructor and onclick event automatically) and it obviously can't find the configuration files and the like there.

Any ideas on how to solve this issue?

Thanks a lot,

Pablo.



Reply via email to