rudreshashok kumar

Greenhorn
+ Follow
since Aug 27, 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 rudreshashok kumar

Hi All,

I am facing a issue with Transaction management during multi-threading on db layer.

Application is built using spring for integration and hibernate for persistance (3.X). Transactions are handled by Container. Requests are served by MDB(2.1).

Object relations are as follows
Configurations is one object and different products can be created based on this configurations

Configurations --> one to many relation with Products

Application works fine with single thread, during multi threading, the persistance layer fails with deadlock issue even for two concurrent messages.

From logs could find that if one thread is working updating persistance layer and if another thread too starts updating another set of record (both messages are unique), dead lock occurs. Ideally lock on a table during update is row level, but seems like it is locking entire table (may be even due to parent child relations).

If the other thread starts after previous thread completes it works.

Errors :-
org.springframework.dao.CannotAcquireLockException: could not update: [com.xx.Products#10180873]; SQL [update Products set Prod_ID=?... where PROD_TID=?]; nested exception is org.hibernate.exception.LockAcquisitionException: could not update: [com.xx.Products#10180873]
Caused by: java.sql.SQLException: ORA-00060: deadlock detected while waiting for resource

Hibernate confirgurations
<prop key="hibernate.order_inserts">true</prop>
<prop key="hibernate.order_updates">true</prop>
<prop key="hibernate.cache.use_second_level_cache">false</prop>
<prop key="hibernate.batch_size>0</prop>">
12 years ago
Hi All,

I am trying to set and get the http sessionattributes, but not able to retrive

a) From servlet1 let us say LoginServlet (normal servlet), i set the a id in session attribute and foward to another servlet which is a GWT remote servlet
b) on the GWT remote servlet, i get the request by getThreadLocalRequest().getSession().getAttribute, this is always null

both servlet are part of same application

am i doing anything wrong?, seems like gwt remote servlet always create new session, can some one help..

Thanks
12 years ago
GWT
1) page gets downloaded (Downloaded as on to the disk?)
I meant the Page is rendered with empty dropdown values
I had put a debug point on the service layer, that gets called after the page is rendered.

2) dropdown does not get populated, but it has the values
I meant that dropdown does not get populated

I a gist i have a simple html and in the onmoduleLoad method i am trying to populate a dropdown, for now let us say it is Male/Female. This value is a reference data and that comes from database.
I have written a service(ServiceImpl) would query database and result the arrayList, this is been called from gwt client through rpc

ServiceAsync serviceAsync = GWT.create(Service.class)

String[] str = null;
serviceAsync.getMasterData(new AsyncCallback<String[]>()) {

OnFailure{}
OnSuccess (String[] result){
str =result
}

//now populate dropdown.

Some how i felt this will work for onclick events but not onload as this is asynchronous call and will not wait and proceed with executing onmoduleload method

Hope this clarifies

Thanks

12 years ago
GWT
Hi All,

I am trying to populate a dropdown from database using rpc (Async). The problem is the page gets download and dropdown does not get populated, but it has the values.

I believe the approach that i took is incorrect, it should not be Async, but again i did not find any other way to call the service from gwt client

Can someone helpme on this

Thanks
12 years ago
GWT
Hi All

Suppose there is a package "X" being used by the application (application hosted in WAS)

now for some requirement/urgent production patch the definitions of the PL SQL package(oracle) is changed (addition of one if condition) , now when the package is called form application it gives package was not correct/invalid state (input/output arguments are not changed only functionality), but the package is valid


But if the same package is called again it works, the only issue now is why it failed first time.

Also after executing the package and if the servers are bounced this issue does not occur

can some one help on why such behavior

Thanks in advance
HI All,

I started learning Hibernate and wanted to develop a small application, so deployed the first example from the following url (sample1)
http://www-128.ibm.com/developerworks/websphere/techjournal/0409_patil/0409_patil.html
deployed as told by the tutor in WASD 5, and changed the database properties, When started the application, i am getting Error saying "
F net.sf.hibernate.connection.DriverManagerConnectionProvider JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver
net.sf.hibernate.HibernateException: JDBC Driver class not found: com.ibm.db2.jcc.DB2Driver

I have given it as
<property name="hibernate.connection.driver_class">com.ibm.db2.jcc.DB2Driver</property>

i tried to change the db2java.jar with my own db2 driver even then same error

can some one pls help me in solving this

Thanks
Rudresh
HI All,

I am new to EJB's i would like to code and deploy my Entity ejb's . I have a JBoos server and db2(database).
can some one hepl me in giving some resource(url's) which gives a clear explanation of coding and deploying Entity Beans on my Jboss server and modifying/creating data on my db2 database.

it would be great help of you

thanks in advance
HI All,

I am new to EJB's i would like to code and deploy my Entity ejb's . I have a JBoos server and db2(database).
can some one hepl me in giving some resource(url's) which gives a clear explanation of coding and deploying Entity Beans on my Jboss server and modifying/creating data on my db2 database.

it would be great help of you

thanks in advance
Thanks Anand,
Any one has the answer for my first question ?
HI,

i am taking up the exam in few days, i request to kindly clarify my doubts

1)what is the passing percentage(how much should be right out of 180)?
2)what if i passed the exam, will i be getting a certificate from SUN ?
3)if so why to write the SCBCD exam again when the same goes live (i have a option of saying that i have passed Beta exam).
4)suppose i don't take up the SCBCD,Will the employers take the beta exam into consideration (if i had passed )
5)i don't have much knowledge/pjt exp on EJB, but i have studied Mastering EJB and MikalaiZaikins notes..will this do ?
6)what if i completed the exam in 2 hours ?
7)i would like to know the exact pattern of the questions, for example questions on timer (may be the question is tick which bean cannot be used for timer, then just find if there is stateful session bean). are the questions like these or you will be given a EJB code on timer to analyse ?.
are the questions entirely based on theory ?
8) when we will be getting our results ?

Regards
rudreshashok
SCJP,SCWCD
HI All,

I am getting the following error while pulling data from db2

Error Trace in closeConnection() :java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.

But the data is pulled successfully,

Can any one help me in finding solution for the above error

Thanks
Rudresh
HI Bert

Thanks for giving us Book like HFSJ, which is not only Exam oriented but also a nice beginners guide for j2ee platform

Rudresh

Hi all,
Can any one guide me to SCEA certification, How to start up
HI Prasanna,

Firstly contragts on completing the SCEA - Part 1,
I completed SCWCD last week, planning to take up SCEA - Part 1.
Can you Guide me how to proceed with, such as Books to refer.
Thanks
Rudresh
it took months for me to prepare for this exam. I know it is too much, but i am not working in Java Platform

Has any one cleared SCEA, can you guide me on the same

Thanks
Rudresh
HI All,
i recently passed SCWCD, i would like to take up SCEA
i Kindly request you all to help me out in starting to prepare for this exam such as recommended books, time period to prepare.

Thanks in advance
rudresh