Application authenticated JNDI Datasource

2008-12-16 Thread Javier Urbaneja
Container authenticated JNDI Datasources are configured like this, according to the documentation: How is configured an Application authenticated JNDI Datasource? How are the credentials (user and password) passed? Thank you.

Re: Deprecating the DAO framework?

2006-10-28 Thread Javier Urbaneja
It's not that I don't agree with you about the existence of better options. It's just that with iBATIS you can start working with a persistence layer, including DAOs in a work day, with the nice docs of SqlMaps and the DAO framework (less than 100 pages together). If you are going to use Spring DAO

Re: Deprecating the DAO framework?

2006-10-28 Thread Javier Urbaneja
-1iBATIS DAO framework is easy, works great, and the DAOs are a very nice place to manage the transactions. I liked the DAO framework since I saw it in action at the JPetStore example.Probably I will move on to Spring too, but I don't think every iBATIS user has to. IMHO, there's no reason to depre

Re: unsubscriebe

2006-09-27 Thread Javier Urbaneja
lol, nice last contributionOn 9/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:

Re: Ibatis and the blob

2006-09-18 Thread Javier Urbaneja
Try something like thisimport java.sql.*;import java.io.*;public class BlobHandler {    public static void main(String args[]) {    Connection con = null;    if (args.length < 5) {     System.err.println("Syntax:     + "[uid] [pass] [file]");    return;  

Re: groupBy with queryForList with skip and max

2006-09-18 Thread Javier Urbaneja
Thank you very much, Larry.On 9/18/06, Larry Meadors <[EMAIL PROTECTED]> wrote: Yes, it is skipped rows.LarryOn 9/18/06, Javier Urbaneja <[EMAIL PROTECTED]> wrote:> It seems (for the results i'm getting now) that in> " > queryForList(java.lang.String id,>  java.

groupBy with queryForList with skip and max

2006-09-18 Thread Javier Urbaneja
It seems (for the results i'm getting now) that in"queryForList(java.lang.String id, java.lang.Object parameterObject, int skip, int max)Executes a mapped SQL SELECT statement that returns data to

Re: Two simultaneos M:N relations

2006-09-05 Thread Javier Urbaneja
Forget about it. I'm going to change the design to avoid this problem. One table GROUPS_HAVE_USERS (ID_GROUP(FK),ID_USER(FK), ADMIN) with the admin field, to populate the admin list in the DAO Impl.Thank you anyway if you have bothered to read this. On 9/4/06, Javier Urbaneja <[EMAIL P

Two simultaneos M:N relations

2006-09-04 Thread Javier Urbaneja
HelloI have 4 tables of interest:USERS (ID_USER,NICKNAME,AVATAR_IMG_URL,...)GRUOPS (ID_GROUP,DESCRIPTION,LOGO_IMG_URL,...)GROUPS_HAVE_USERS (ID_GROUP(FK),ID_USER(FK))GROUPS_HAVE_ADMINS (ID_GROUP(FK),ID_USER(FK)) My Group domain class has one property for the List of Admins and another for the List

Distributed transaction with DAO and SqlMaps

2006-08-22 Thread Javier Urbaneja
Which woul be the simplest way to make the insertAccount functionality of the JPetStore 5 into a distributed transaction to 4 different databases?This is the only distributed transaction we need, it would be bad if we have to change the configuration for every other transaction in the application.

Re: Unable to make cache work

2006-08-19 Thread Javier Urbaneja
I've includedas you said and now it works perfectly:DEBUG [http-8080-2] - Cache 'Country.all-countries-cache': retrieved object '[EMAIL PROTECTED] , [EMAIL PROTECTED], [EMAIL PROTECTED]'Again, thank you very much Niels, you are helping me greatly.I don't want to criticize the documentation, which i

Re: Unable to make cache work

2006-08-19 Thread Javier Urbaneja
wrote: Did you enable global caching in the main config?   Niels   From: Javier Urbaneja [mailto:[EMAIL PROTECTED]] Sent: zaterdag 19 augustus 2006 17:16 To: user-java Subject: Unable to make cache work   I'm using SqlMaps 2.2.0 with DAO. Configuration of the cac

Unable to make cache work

2006-08-19 Thread Javier Urbaneja
I'm using SqlMaps 2.2.0 with DAO.Configuration of the cached stament:                                select * from countries  Log configuration:log4j.rootLogger=DEBUG, stdoutlog4j.logger.com.ibatis.sqlmap.engine.cache.CacheModel=DEBUGlog4j.logger.java.sql.Statement=DEBUG log4j.logger.java.sql.Pr

Re: Problem with Multiple resultmaps in 2.2.0

2006-08-18 Thread Javier Urbaneja
Now I have the countryResult in a separated xml map file. I've qualified the name, and it works great.Thank you very much.On 8/18/06, Javier Urbaneja <[EMAIL PROTECTED]> wrote: Thank you Niels, I'll try what you say.About your question, according to the user guide, this featur

Re: Problem with Multiple resultmaps in 2.2.0

2006-08-18 Thread Javier Urbaneja
I think you should use the fully qualified name of the resultmap, so User.countryResult shoulud work just fine. Does this behaviour occur only with 2.2.0 or did you just mention it to be complete?   Niels   From: Javier Urbaneja [mailto:[EMAIL PROTECTED]] Sent: woensdag 16 aug

Problem with Multiple resultmaps in 2.2.0

2006-08-16 Thread Javier Urbaneja
This is my map file User.xml:                                                                                                                          select user_register_seq.nextval as idUser from dual        insert into users (id_user, nickname, password, email, id_country)    

Re: JPetstore in cluster

2006-07-30 Thread Javier Urbaneja Fan
This approach you just gave me will be much more convenient. Sorry about being a little Off-Topic. Do you think a hardware load-balancer will be much better than Apache load balancing with affinity?  Would you configure it to balance by CPU load?   Clinton, thank you very much for your reply.

JPetstore in cluster

2006-07-30 Thread Javier Urbaneja Fan
Are there any necessary configuration (or modification) steps to install the JPetsore 5 application in a session replication cluster (Tomcat)?I'm talking about configuring caches, make POJOs serializable, etc.This wonderful design, based in beanaction.jar (I wasn't able to find the sources in