You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Martí­n Eduardo Bradaschia <ma...@intercomgi.net> on 2010/06/28 23:13:56 UTC

Setting JDBC at runtime

Hi again !

Finally I set up a JDBC auxiliary, for a cluster app deploy, and it 
seems to work well.

I need a little help with runtime config now. I want to set the mysql 
driver url up at runtime. I have this lines in my source

         JCS.setConfigFilename((CONFIG_PATH));
         JCS jcs = JCS.getInstance("default");
         ...
        (puts and gets here)

between them I need to reach the JDBCDiskCacheAttributes to set url up, 
but I walked all javadoc and I do not realize which are the method 
calls. Can you help me with that ?

Thanx again for your time !

Regards

-- 
Martin Eduardo Bradaschia
Intercomgi Argentina



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Re: Not suitable driver on tomcat5

Posted by Jorge Medina <ce...@gmail.com>.
You don't give much details on why you think JCS may be interfering.
Your problem seems to be more suitable to be solved in the Tomcat list.
JCS would not interfere with your JDBC driver.

Where are you loading JCS ?
I have used JCS loading it in the common/lib and as part of my webapp
without problems.


2010/7/2 Martí­n Eduardo Bradaschia <ma...@intercomgi.net>:
> Hi:
>
> I have a little problem when run jcs on tomcat5. It could not load the JDBJ
> MySQL Driver. The driver is into the .jar file on  CATALINA_HOME/shared/lib.
>
> When I run the application standalone, calling it with     java -cp .....
>  TestClass         it works perfect, so the problem appears to be between
> tomcat5/jcs.
>
> Can you help me with that.
>
> Thanx again for your time.
>
>
>
> --
> Martin Eduardo Bradaschia
> Intercomgi Argentina
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org


Not suitable driver on tomcat5

Posted by Martí­n Eduardo Bradaschia <ma...@intercomgi.net>.
Hi:

I have a little problem when run jcs on tomcat5. It could not load the 
JDBJ MySQL Driver. The driver is into the .jar file on  
CATALINA_HOME/shared/lib.

When I run the application standalone, calling it with     java -cp 
.....  TestClass         it works perfect, so the problem appears to be 
between tomcat5/jcs.

Can you help me with that.

Thanx again for your time.



-- 
Martin Eduardo Bradaschia
Intercomgi Argentina



---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org