ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davide Rogora" <drog...@unionefiduciaria.it>
Subject R: Need help with query metadata caching (remapResults)
Date Fri, 22 Feb 2008 14:54:13 GMT
Larry,
thanks for your prompt reply.

I remember that in the past we tried to reinitialize iBatis from inside our
web application (we use Spring) but without success.
Do you have any suggestion about doing this?

Thanks,
Davide.


-----Messaggio originale-----
Da: Larry Meadors [mailto:larry.meadors@gmail.com]
Inviato: venerdì 22 febbraio 2008 15.20
A: user-java@ibatis.apache.org
Oggetto: Re: Need help with query metadata caching (remapResults)


I haven't tried this myself, but there must be a way to reinitialize
the SqlMapClient - that would do it.

Larry


On Fri, Feb 22, 2008 at 3:03 AM, Davide Rogora
<drogora@unionefiduciaria.it> wrote:
> Hi,
>  we have the following problem with iBatis.
>
>  Our application (web application using spring), in some cases does an
>  automatic upgrade of the database (add and drop colums on varous tables);
>  after this upgrade we have problems with iBatis, because iBatis by
default
>  remembers what fields were returned the first time a query was run (so
i.e.
>  if we add a new column, the value of this new column is not returned by
>  iBabtis).
>
>  We've found two ways to solve this problem (but we don't like none of
them):
>  1) Restart the web application (but this solution is not applicable in
our
>  case).
>  2) Set the remapResults attribute to "true" for each query (but it slows
the
>  application).
>
>  So, I'm asking you if there is a way, after our automatic db upgrade, to
>  tell iBatis to discard all the "cached" resultset metadata (so, the first
>  next time the query will be executed, iBatis will determine the correct
>  columns returned by the query).
>  Another solution could be to find a way to restart completely iBatis
engine
>  without restarting the web application.
>
>  Is there a way to achieve one of these two hypothetic solutions?
>
>  Thanks,
>  Davide.
>
>
>
>



Mime
View raw message