[Persistence, JBoss/CMP, Hibernate, Database] - DeadLock problem !
by warx
Hi everybody,
i have a problem about deadlock on a table.
I have twomethod inside a Session EJB.
The first does a run a SELECT statament on the table TEST to get some data and put them insiede an ArrayList, then i use this ArrayList to display data on a report.
The second method does and insert statement into the table TEST.
Well, the table TEST contains about 500.000 records and the database is IBM DB2.
When I launch the first method to create the report and, while it is running, I call the second method i get a DEADLOCK error because it seems that the first method LOCKS the entire table TEST.
I know that calling a method inside a Session EJB i start a transaction, so could be right put the first method outside the Session EJB to avoid the start of the transaction ?
Any suggestion ?
I have a doubt, everytime i open a connection (outsidea Session EJB) to a database do i start a trnsaction anyway ?
Any suggestion ?
Cheers.
Stefano
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013724#4013724
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013724
19Â years, 2Â months
[JBossWS] - trouble using user defined classes and java.util classes in
by santhoshitha
i am trying to use jax-ws for my web service. i have to invoke a remote method that accepts a java.uitl.List(SecurityAttr is a user defined class) as one of the parameters. i would like guidance in this regard.
1) is it possible to use jax ws for this purpose? if so, how should the complex types and collection classes be serialised?
2) i dint find much guidance or tutorials in this regard. i would be really happy if i could be directed to some documents/samples.
3) as of now i have deployed the server side of the service and i try to connect using a jax rpc client. running wstools from the client, for wsdl to java generation, gives me a class called list along with the SEI and mapping files. i dont know how to use this. i am using the servicefactoryimpl class provided by jbossws to use the jaxrpc-mapping file, but the list class doesnt accept any parameters. hence if i connect from the client and try to pass a List, it doesnt help.
Kindly guide me. Any help is much appreciated. Thanks in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4013716#4013716
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4013716
19Â years, 2Â months