jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmquelo <mmqu...@gmail.com>
Subject Re: JNDI Persistence Manager on MySql DB via JBOSS 4.2.2
Date Thu, 29 Nov 2007 15:01:07 GMT


Thank You.

I worked it out!


It's something up to JBoss 4.2.2

It seems that u can't define a jvm-local JNDI name to be used by jackrabbit.

U can find the solution here:
http://www.theserverside.com/discussions/thread.tss?thread_id=29813

Bye bye

Massi

(Sorry for my lack of english)






Thomas Mueller-6 wrote:
> 
> Hi,
> 
> The configuration looks OK. You have used pparam just in the mail? Why
> exactly?
> 
>> Did I miss any binding concerning the DataSource definition?????
> 
> Maybe!!!!! ;-)
> 
> Could you try if you can open the connection using JNDI in another
> way? The only way I know is to write a small code snippet, could be in
> a JSP page:
> 
>         InitialContext ic = new InitialContext();
>         DataSource dataSource = (DataSource)
> ic.lookup("java:jdbc/MySQLDB");
>         System.out.println("@@@Connection: " +
> dataSource.getConnection() + " @@@");
> 
> Or something similar. If you get "null", then there is something wrong.
> 
>> Is it a matter related to the "weird JackRabbit JNDI client"??
> 
> I wouldn't say weird, but when I have used JNDI with JBoss (a long
> time ago), configuration was difficult, and for some reason 'new
> InitialContext()' was not working (I don't remember why).
> 
>> Can I set the mysql DB as XA-datasource? Could it be a solution to this
>> issue?
> 
> I don't think so.
> 
> Regards,
> Thomas
> 
> 

-- 
View this message in context: http://www.nabble.com/JNDI-Persistence-Manager-on-MySql-DB-via-JBOSS-4.2.2-tf4896516.html#a14027435
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Mime
View raw message