[JBoss Seam] - cancelling a hibernate query via another thread
by rlao
Sometimes a query request submit via ajax4jsf takes a long time that we want to provide a facility for the user to cancel the request (by calling cancelQuery() on the hibernate session). The query request comes into a session object (POJO) and the cancel request also comes into the same session object. The 2nd request is blocked by the SEAM until the 1st request is completed. I have tried to create another class of session scope, even accessing that object is blocked. Is that right that all objects of different classes of session scope are treated as one big session and will all be blocked by SEAM from concurrent access? If so, what would be a way so I can invoke the cancelQuery() which will cause an exception (I think) on the other thread which is doing the query? Thanks for your help
Ralph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098144#4098144
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098144
18Â years, 8Â months
[JBossWS] - Re: Exception while deploying the webservice using jax-ws
by tpawankumar
Hi All,
I have resolved ClassCastException issue.
Now i am getting this exception
org.jboss.deployment.DeploymentException: Cannot create service endpoint; - nested throwable: (java.lang.annotation.AnnotationTypeMismatchException: Incorrectly
typed data found for annotation element public abstract javax.xml.bind.annotati
on.XmlAccessType javax.xml.bind.annotation.XmlAccessorType.value() (Found data o
f type Ljavax/xml/bind/annotation/AccessType;.FIELD))
at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException
(DeploymentException.java:53)
at org.jboss.ws.integration.jboss42.DeployerInterceptor.create(DeployerI
nterceptor.java:83)
at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.
create(SubDeployerInterceptorSupport.java:180)
at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterce
ptor.java:91)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy46.create(Unknown Source)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
I have created Schema classes by using JAXB 2.0 and i have deployed on JBoss 4.2.1.
Please any one suggest on this.
Thanks in Advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098115#4098115
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098115
18Â years, 8Â months