Aravind Bhat

Ranch Hand
+ Follow
since Jun 16, 2006
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aravind Bhat

I have a GWT/GXT application running on UTF-8 encoding.We would like it to support UTF-16.That is, we would like the UTF-16 encoded characters copy-pasted from word/other sources to be safely propagated to the DB and the UTF-16 encoded characters in Oracle DB to be displayed seamlessly in the UI .

Is it possible to implement this in GWT/GXT ? If so, how do we go about implementing this ?Please help.
12 years ago
GWT
Thanks for the reply Raj . Just a query more .. Were you a Grandfather candidate or did you attend the course ?
Hi Guys,

Any update on this? I cleared the certification today . Just got the score sheet ..

Regards,
Aravind
Hi Ben ,
As mentioned earlier, I have begun my work on using JtaTransactionManager . I thought that there may be some route other than this coz Tomcat dosen't support JTA.

After this, I feel that using JTA with Tomcat + JOTM may be the only route out. But again the problem lies in the requirement of keeping various sessions open till the handler layer .

Thanks Again,
Av~
14 years ago
Thanks again guys but in the example, each of the service connects to a separate transaction manager. What I need is a single service which connects to multiple data sources using separate transaction managers and to manage the transactions between them. As I menthioned,

"each service connects to 4 dao proxies each of which refer a separate transaction interceptor, each of which in turn refer to a separate transaction manager connecting to 4 different data sources. All work fine till now with lazy="false". "

Thanks again for your help,
Av~
14 years ago
Hi Ben,

Can you please elaborate on how I can use annotations to control two separate session factories to connect to different data sources. As far as I know, tx:annotation-driven will not be able to support this. Kindly correct me if I am wrong. And also It would be helpful if you could elaborate on the 'more sophisticated way' you had mentioned

Thanks,
Aravind
14 years ago
Yeah they are from different databases . Guess I can use JTA for this but again how do I keep the sessiona open till the handler layer?
14 years ago
Hi All,
I am working on a project where we each service refers four separate data-source. Until now, we have been using ProxyFactoryBean to refer to the Dao target and the Transaction Intereceptor - something like this..

<bean id="readOnlyUserProxy" class="org.springframework.aop.framework.ProxyFact oryBean">
<property name="target" ref="readOnlyDao"/>
<property name="interceptorNames">
<list>
<value>readOnlyTransactionInterceptor</value>
</list>
</property>
</bean>

There are 3 other similar proxies for the different DAOs . All these refer to different transaction interceptors which in turn connect to different transaction managers. In short, each service connects to 4 dao proxies each of which refer a separate transaction interceptor, each of which in turn refer to a separate transaction manager connecting to 4 different data sources. All work fine till now with lazy="false".

Now, In order to optimize the performance, we wish to enable 'Lazy loading' and carry the hibernate session to the handler layer. We think that the best way for this would be through the 'TransactionProxyFactoryBean' as we do not want to use the OpenSessionInView approach .

We have tried some approaches but are stuck because we connect to 4 separate data sources through each service and in now way can we connect the four separate transaction managers to the 'TransactionProxyFactoryBean'. Therefore, we are not able to find a way to manage the transactions from different data sources in the handler/service layer.

I have just started on this work and do not have much experience in Spring transaction management. Kindly guide me on any possible approach I could take.

Thanking you all for your support,
Av~
14 years ago
Hi guys ,

I want to return the cursor in db2 to retrieve the resultset from
my java application .Keeping the cursor open dosen't help and the resultset always returns a null though the procedure runs fine from the command line. Any ideas .

Regards,
Av~

CallableStatement stmt3 = HibernateApp.getHibernateSession().connection().prepareCall("{call answers_select_id( ? )}");
stmt3.setString(1,20);
stmt3.execute();
ResultSet rs1 = stmt3.getResultSet();
System.out.println("rs1 " + rs1); --> returns null
Hi All ,
I am trying to call a db2 stored proc with cursor open from my java code but it always returns me null results though it executes fine when I call the procedure from the command line

Java code....................

CallableStatement stmt3 = EyeHibernateApp.getHibernateSession().connection().prepareCall("{call answers_select_id( ? )}");

stmt3.setString(1,20);

stmt3.execute();



ResultSet rs1 = stmt3.getResultSet();

System.out.println("rs1 " + rs1); --> returns null

--------------------------------------------------------------
procedure-------------


CREATE PROCEDURE answers_select_id (IN question_id bigint )
P1:BEGIN
DECLARE cursor1 CURSOR WITH RETURN TO CLIENT FOR
SELECT a.answer_id from answers as a where a.question_id = question_id;
open cursor1;
END P1;


I am using the same java code with mysql stored procs . It works fine there but I assume open cursors in db2 stored proc is causing the problem . If I can help it , I need to maintain the same java code for mysql ad db2 . Please help me ...

Thanks,
Av~
Hi ,
I am trying to disable the back button of my browser through the PRG pattern . The 'view source' of all the JSP pages gives me the 'method' in the form tag as 'post' but when I try to obtain the method through request.getmethod , it gives me Get . How is this possible ?

I find it quite confusing coz because of it , I'm not able to emmulate the PRG .Is there a way out ? I read a lot of posts but there's nothing about this behaviour .

Kindly help .

Regards ,
Aravind
17 years ago
JSF
I'm confused as to under what circumstances JSF uses get and when it uses POST . Under PRG , It's quite evident that JSF uses POST but when I try request.getMethod() in my phaseListener , It returns me GET . Is there any way I can force it to submit through POST ?

I got a reply from the forum that outputLink uses GET if it is a non phases request . But I guess a PhaseListener is inside the Phases lifecycle .

So what's the conclusion ? Kindly help with examples .

Regards ,
Aravind
17 years ago
JSF
Also , I'm confused as to under what circumstances JSF uses get and when it uses POST . Under PRG , It's quite evidene that JSF uses POST but when I try request.getMethod() in my phaseListener , It returns me GET . Is there any way I can force it to submit through POST ?
17 years ago
JSF
learnt in the sense somebody told me I can use it - why else would I have wanted to know 'bout it . If you find something on it , please tell me .

Thanks ,
Aravind
17 years ago
JSF