I had the same problem a year ago. The error occurred because you run
ibatis in different threads. In my case, I just used
ISqlMapper sqlMapper = Mapper.Instance();
sqlMapper.SessionStore = new
HybridWebThreadSessionStore(sqlMapper.Id);
in every iBatis call and then it worked.
Hope this work for you. Greetings and sorry for my poor english!
On Wed, Aug 12, 2009 at 9:45 AM, jmsandy<[email protected]> wrote:
>
> Hi,
>
> I need much help from you. I need to optimize a query and the only possible
> way and run parallel accesses.
>
> I am consulting divided into parts to run.
>
> The scenario I have is:
> 1) I make the call to a Webservice which routines should be run.
> 2) I did call and got error with Threads.
> 3) I tried with asynchronous methods and got error.
> 4) The error I am getting is:
>
> Message="WebSessionStore: Could not obtain reference to HttpContext"
> Source="IBatisNet.DataMapper"
> StackTrace:
> at
> IBatisNet.DataMapper.SessionStore.WebSessionStore.ObtainSessionContext()
> at
> IBatisNet.DataMapper.SessionStore.WebSessionStore.get_LocalSession()
> at IBatisNet.DataMapper.SqlMapper.QueryForList[T](String
> statementName, Object parameterObject)
>
> How do I make several simultaneous queries in Ibatis. Please pass me an
> example.
>
> Thanks.
>
>
> --
> View this message in context:
> http://www.nabble.com/Help-in-MultiThreads-tp24936820p24936820.html
> Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]