Hi Sanjiva, On Mon, May 7, 2012 at 8:04 AM, Sanjiva Weerawarana <[email protected]>wrote:
> On Fri, May 4, 2012 at 5:01 PM, Nuwan Bandara <[email protected]> wrote: > >> >> Yeah :( had no choice, The driver name is optional in JDBC4, but the >> tomcat datasource IMPL has written making it mandatory. Anjana told that he >> will submit a patch for that. even so, I dont think it will work in our >> OSGI environment. >> >> SO even though its ugly to specify a java class name in a Javascript API, >> we got no other option for now. >> > > Nuwan lets write a host object then for MySQL connection specifically and > put that bit inside that object. We can't have Java name visibile in > Jaggery. > True, but then again if a user need to connect to another DB, they have to get the Driver .jar and put it in the components/lib since we dont ship Drivers with the dist. Also Java-ness is visible when giving the Connection URL too (jdbc:h2) What we have now is, var db = new Database("jdbc:h2:demo", "org.h2.Driver", "admin", "admin"); > > Do we have a "server.conf" type thing in addition to per-application > config? In that case we could have a way to configure DB drivers there. > Having some exposure of Java in the server configuration is still criminal > but not a show-stopper as putting it in the API IMO. > Right now we dont have such server conf, but we can maintain a list of well known driver names inside the hostobject. and load the correct host object depending on the connection URL. Regards, /Nuwan > > Sanjiva. > -- > Sanjiva Weerawarana, Ph.D. > Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/ > email: [email protected]; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1 > 650 265 8311 > blog: http://sanjiva.weerawarana.org/ > > > Lean . Enterprise . Middleware > -- *Thanks & Regards, Nuwan Bandara Associate Technical Lead & Member, MC, Development Technologies WSO2 Inc. - lean . enterprise . middleware | http://wso2.com blog : http://nuwanbando.com; email: [email protected]; phone: +94 11 763 9629 * <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
