Re: JNDI, Coldfusion and the AdminAPI

2008-06-19 Thread Kenton Gray
Does that have anything to do with this? http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403432 It has everything to do with that, unfortunately adding an argument to the jvm on startup is hardly a fix, since we have hundreds of dsns and add them dynamically daily (we cannot

Re: JNDI, Coldfusion and the AdminAPI

2008-06-18 Thread James Holmes
Does that have anything to do with this? http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403432 On Wed, Jun 18, 2008 at 6:02 AM, Kenton Gray [EMAIL PROTECTED] wrote: I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think no-one is using this feature. Any

Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Kenton Gray
Good and very bad news, TERRIBLY BAD NEWS: I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think no-one is using this feature. Any statement that uses query parameters with JNDI will fail with a ClassCastException. For the adventurous/non believers get a jar decompiler (Jar

RE: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Dave Watts
I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think no-one is using this feature. You're right about that, I think. I rarely see them used. Are you running 8, or 8.0.1? If the latter, you should report it as a bug. For the adventurous/non believers get a jar decompiler

Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread Kenton Gray
You're right about that, I think. I rarely see them used. Are you running 8, or 8.0.1? If the latter, you should report it as a bug. This is 8.0.1, and I have filed a bug. I recommend that you avoid posting the results of decompiling commercial closed-source products to a public list. My

Re: JNDI, Coldfusion and the AdminAPI

2008-06-17 Thread denstar
On Tue, Jun 17, 2008 at 4:02 PM, Kenton Gray [EMAIL PROTECTED] wrote: Good and very bad news, [...] Hey, good work on figuring out how to dynamically create the DSN at least! It would have taken 100s of hours of me dumping around randomly to figure that out! =-] Funny thing is, I've been

Re: JNDI, Coldfusion and the AdminAPI

2008-06-15 Thread denstar
On Fri, Jun 13, 2008 at 9:23 PM, Kenton Gray [EMAIL PROTECTED] wrote: Thanks for all the suggestions, I think after much fiddling, my conclusion is there is no proper way this can be done. Yeah, I gave it a shot too. Same deal. And I tried all kinds of random things, just for good measure.

Re: JNDI, Coldfusion and the AdminAPI

2008-06-13 Thread denstar
On Wed, Jun 11, 2008 at 9:24 PM, Kenton Gray [EMAIL PROTECTED] wrote: Thanks Dave, I guess I should be more specific in that our application uses dynamically created JNDI datasources (each client has a dedicated database for security reasons). My JNDI datasource has the jndi-name

Re: JNDI, Coldfusion and the AdminAPI

2008-06-13 Thread Kenton Gray
Thanks for all the suggestions, I think after much fiddling, my conclusion is there is no proper way this can be done. I can setup a dsn no problem through the administrator, but dynamic JNDI datasources through the AdminAPI seems unsupported. Here is the code I'm using that seems close but

RE: JNDI, Coldfusion and the AdminAPI

2008-06-12 Thread Dave Watts
One trick I found that is getting me close is setting the driver name to jndi (got that from the neo-datasource.xml), but I am still getting an error. My next strategy is to just directly call the java classes coldfusion uses internally. Surely prone to problems down the line but I

RE: JNDI, Coldfusion and the AdminAPI

2008-06-11 Thread Dave Watts
We are currently trying to allow our java/jsp pages share connection pools with coldfusion. To me the most obvious way to do this was through JNDI. So after going through the rigamarole of setting this all up I found that it is either impossible or not obvious how to setup a JNDI

Re: JNDI, Coldfusion and the AdminAPI

2008-06-11 Thread Kenton Gray
Thanks Dave, I guess I should be more specific in that our application uses dynamically created JNDI datasources (each client has a dedicated database for security reasons). So I am not trying to create a JNDI datasource through the AdminAPI but rather dynamically create a CF datasource that