[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - [CMP] how to use bean cmp field value in ejbSelect query?
Hi All, I'm trying to improve performance of the CMP part of my application. I need to just count the number of "ToDoTask" with the severity property set to 'Error' and which are generated by an "IntegrityRule". For this, I wrote this code in the IntegrityRuleEJBBean: /** * @ejb.interface-method view-type = "both" */ public int countErrorTasks(){ try { return ejbSelectCountErrorTasks(this.getId()); } catch (FinderException e) { return 0; } } /** * @ejb.select query="SELECT COUNT(t) FROM IntegrityRule r, IN(r.tasks) t WHERE t.severity='Error' and r.id=?1" * @ejb.interface-method view-type = "both" */ public abstract int ejbSelectCountErrorTasks(Long ruleId) throws FinderException; As you can see, the "countErrorTasks" method is just a wrapper method to mask the getId() call. How can I build by the select query to use directly the id of the current IntegrityRule? Because the ejbSelect runs "out of" the bean instance... Any help would be appreciated Alban. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928445#3928445 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928445 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Moving from development to production
Hi Adrian, can you give us some references about the flags? Regards, Alban. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: jeudi, 30. octobre 2003 15:55 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Moving from development to production If you are moving from development to production you should have a stress test that simulates your expected production usage. That will help you understand what resources you use/need. Before you do that, you should also try to understand what services you use. Remove those you don't need and lock down - *SECURE* those you do. There are a number of flags scatter around that will turn off development features. e.g. jasper development mode in the default web.xml or the flag in transaction-service.xml Make sure you have trimmed your logging as well. log/server.log or the console shouldn't show anything during normal operation. This improves performance and helps you to spot when you have problems. Regards, Adrian On Thu, 2003-10-30 at 14:35, Brian McSweeney wrote: > Hi all, > > Having researched this a little more I've come up with the following > plan. Perhaps someone could tell me if it seems ok :-) > > 1) Change the jboss memory > > In %JBOSS_HOME%/bin/run.bat change the line > > rem JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m > > to > > JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx512m > > Are there any other options to configure here? > > > 2) Set database pool & prepared statement cache > > Not sure if you should do this. I found some notes in the archive with > an example mysql-ds file like this. > I hadn't got the pooling parameters in my mysql-ds. Should I be putting > these in? Eg: > > > > databaseName > > jdbc:mysql://xx.xx.xx.xx:3306/databaseName rl> > com.mysql.jdbc.Driver > ... > ... >name="autoReconnect">true > > <-- prepared statement caching --> > > 100 > > > 5 > 50 > 5000 > 15 > > > > > Does this look ok? > > Any other options people might recommend? > > Thanks, > Brian > > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Brian > McSweeney > Sent: 29 October 2003 15:56 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Moving from development to production > > Hi all, > > I've searched the archives but couldn't find what I was looking for. > > I'm moving towards my production server and I'd love a simple list of > what to change in the configuration files for a production server. > > My app is > > Struts S stateless session beans ejb cmp entity beans mysql > > I'm going to run on Jboss_tomcat 3.2.2, on a windows machine with 1 > processor, about 1 Gig of ram. > > I'd love a list of stuff like: > > 1) change the memory jboss can have c associated config file > recommended amount of memory for jboss > 2) change the stateless session bean pool c associated config file > recommended pool size > 3) database prepared statement caching d associated config file > recommended cache size > > > these are only the things I know might possibly be changed, but I'm sure > there are way more. > > Any help at all would be much appreciated. > Thanks, > Brian > > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge
RE: [JBoss-user] Transactions on Stateful beans
Hi Adrian, Thanks for the reply. I had already try your ping/noop solution for testing if a stateful bean is alive. But here I came on the other error in some case: "Application Error: tried to enter Stateful bean with different transaction context" :(( because my stateful bean is already involved in another transaction. May be just 2 words about our app: It's an intranet build upon Tomcat/Jboss/Struts. The struts actions will access a stateful bean that serve to centralize and execute business actions. By the same time, there is a stateful bean (a controller) for each EntityBean of the system. The execution of the business actions may access the controllers. That's why if a web users send many requests, I can have multiple transaction on the same statefull bean. So I need to find a way to prevent my stateful beans to "be entered with different transaction context". I tryed to set the transaction attribute of the ping method to "Notsupported" but I still get this error. It's 2 full days now, I'm getting around looking for solutions, but I'm still stuck. Any help is appreciated! Alban. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: mercredi, 29. octobre 2003 16:03 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Transactions on Stateful beans On Wed, 2003-10-29 at 14:18, Alban Soupper wrote: > Hi all, > > I have some difficulties with the transactions on Stateful beans. > My client may spawn many requests in a very short time, and the request > processing accesses some controllers (My stateful beans). > This leads sometimes to an exception: "Application Error: tried to enter > Stateful bean with different transaction context", due to the fact my > request processors > access all at the same moment to my controllers. > > 1- Is there a way, to specify in JBoss, that we can have concurrent access > on the stateful beans ? > - if yes, what could the traps? No, concurrent access is not supported. But, you can provide your own synchronized wrapper. > 2- Is there a way, to check if a stateful is currently involved in a > transaction? > > Bonus: > 3- Is there a way, to know if a stateful bean is still alive ? > A simple ping/noop() method on the interface will tell you whether it still exists. You get a Remote/EJBException if the session was removed due to it being idle too long (default 30 minutes). Regards, Adrian > Thanks by advance, > Alban. > > > *** > > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager to [EMAIL PROTECTED] > > *** > > > > --- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user -- Adrian Brock Director of Support Back Office JBoss Group, LLC --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Transactions on Stateful beans
Hi all, I have some difficulties with the transactions on Stateful beans. My client may spawn many requests in a very short time, and the request processing accesses some controllers (My stateful beans). This leads sometimes to an exception: "Application Error: tried to enter Stateful bean with different transaction context", due to the fact my request processors access all at the same moment to my controllers. 1- Is there a way, to specify in JBoss, that we can have concurrent access on the stateful beans ? - if yes, what could the traps? 2- Is there a way, to check if a stateful is currently involved in a transaction? Bonus: 3- Is there a way, to know if a stateful bean is still alive ? Thanks by advance, Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Logging EJB calls
Hi all, I would like to trace the calls to my EJBs, so I can observe the life (and death) of my EJBs. How can I configure JBoss 3.0.x (and Log4j ?) to print this kind of informations. Thanks by advance. Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what you know. Tell us and you have a chance to win $100 http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PB: The system cannot find the file specified !
Hi all, from time to time, I have a session statefull bean that is not retrieve but JBoss 3.0.4 return a RemoteException. Here is the a part of the stack trace: java.rmi.NoSuchObjectException: Could not activate; CausedByException is: C:\dev\jboss-3.0.4_tomcat-4.1.12\server\InformationSystem\db\sessions\FundCo ntrollerEJBBean\1061985263872.ser (The system cannot find the file specified) at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:1 86) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:212) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy112.endCache(Unknown Source) at com.eim.business.control.facade.fullfund.fund.ejb.FundFacadeEJBBean.endCache (FundFacadeEJBBean.java:376) What can be the reasons, that such a file cannot be retrieve? Thanks by advance for any help, we're stuck with this. Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Pb: EJB cannot be activated
Hi all, I have a problem with a Session Stateful Bean, It is correctly passivated (no errors signaled) but it cannot be activated. Here is my EJB: public class ClientControllerEJBBean implements SessionBean { protected ApplicationController applicationController; protected AbstractEventHandlerRepository eventHandlerRepository; protected SessionContext sessionContext; protected LogSender logSender = null; protected ApplicationConfiguration applicationConfiguration; protected SessionConfiguration sessionConfiguration; private ControllerFactory controllerFactory = null; ... } and the class that seams to be the problem: public class IntranetController implements ApplicationController { private UserAccountModel currentUser; private EventHandlerRepository eventHandlerRepository; ... } here is the stack trace: 14:39:30,125 ERROR [STDERR] java.rmi.NoSuchObjectException: Could not activate; CausedByException is: No ClassLoaders found for: com.eim.application.intranet.control.web.IntranetController 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractInstanceCache.get(AbstractInstanceCache.java:1 86) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:212) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) 14:39:30,140 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:712) 14:39:30,140 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) 14:39:30,140 ERROR [STDERR] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) 14:39:30,140 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) 14:39:30,140 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) 14:39:30,140 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) 14:39:30,140 ERROR [STDERR] at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) 14:39:30,140 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) 14:39:30,140 ERROR [STDERR] at $Proxy97.logException(Unknown Source) 14:39:30,140 ERROR [STDERR] at com.eim.application.intranet.control.web.ClientControllerWebImpl.logExceptio n(ClientControllerWebImpl.java:350) 14:39:30,140 ERROR [STDERR] at com.eim.application.intranet.control.exception.IntranetExceptionHandler.logE xception(IntranetExceptionHandler.java:47) 14:39:30,140 ERROR [STDERR] at com.eim.application.intranet.control.exception.GeneralApplicationFailureExce ptionHandler.execute(GeneralApplicationFailureExceptionHandler.java:53) 14:39:30,140 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processException(RequestProcessor. java:553) 14:39:30,140 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:486) 14:39:30,140 ERROR [STDERR] at com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C ustomRequestProcessor.java:150) 14:39:30,140 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) 14:39:30,140 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507) 14:39:30,140 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 14:39:30,140 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) 14:39:30,140 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) 14:39:30,140 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) 14:39:30,140 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) 14:39:30,140 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) 14:39:30,140 ERROR [STDERR] at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) 14:39:30,156 ERROR [STDERR] at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) 14:39:30,156 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) 14:39:30
[JBoss-user] 3.2 Documentation ?
Hi all, we have baught the "all the year" subcription documentation, I have wait 'til now for a documentation (at least the installation/configuration part) of the 3.2 version of JBoss. BUT I can't find any doc for installation/configuration of JBoss 3.2 ! Where can I find some information ? Thanks Alban. *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager to [EMAIL PROTECTED] *** --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context
Title: RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context Hi, In fact no, we found the origin of the problem. In a web page form, we have many button for different actions to perform (previous step, next step, cancel, terminate, ...) The problem was the behaviour of IE when the "enter" key is pressed. the form is submitted when the key is pressed, but we put a _javascript_ on the onclick event of the (unique) input type image of the form. In this script, some stuff is done and the form is submitted. So there is 2 form submition of the same form and 2 threads in tomcat are used to treat the 2 submitions Which lead to a big problem on transactions Here was the full story Moral: Be careful with your form design and the key pressed phenomena ! Thanks all, Alban. -Original Message-From: JD Brennan [mailto:[EMAIL PROTECTED]Sent: mardi, 4. mars 2003 18:58To: '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context This is just a guess, but I think the transaction context comes from the thread. Are you doing some thread manipulation in your web app? JD -Original Message- From: Alban Soupper [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 04, 2003 1:45 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context HELP :(( We are really stuck with this problem! Nobody can help? -----Original Message- From: Alban Soupper [mailto:[EMAIL PROTECTED]] Sent: lundi, 3. mars 2003 17:02 To: JBoss user (E-mail) Subject: [JBoss-user] [HELP] Application Error: tried to enter Stateful bean with diffe rent transaction context Hi all, I need help to resolve to following problem: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context, contextTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:228) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy63.handleEvent(Unknown Source) at com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ est(ClientControllerWebImpl.java:295) at com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio n.execute(TreatStep1Action.java:67) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:446) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C ustomRequestProcessor.java:50) ... What can be the reason of such error ? Thanks a lot in advance :) Alban. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. ** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.
RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context
Thanks a lot, it seems that we are in case a) and we will investigate the struts' transaction token solution. Thanks a lot :) Alban. -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED] Sent: mardi, 4. mars 2003 12:22 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context Hello, We get this problem in two scenarios. a) When you rapidly doubleclick on IE on a form's submit button. b) In a multi-threaded client, when calls are made into the ejb application The problem is the same in both cases, concurrent calls into a stateful session bean. This is prohibited by the spec. For (b) we have solved by synchronizing the access from the client via a delegating class. (Making the session bean stateless was another option). For (a), we are looking into using struts' transaction token type solution, which prevents multiple submits on the same form, tho we have not implemented this yet. (We use struts in our software.) Cheers, Krishna -Original Message----- From: Alban Soupper [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2003 3:15 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] [HELP] Application Error: tried to enter Statefu l bean with diffe rent transaction context HELP :(( We are really stuck with this problem! Nobody can help? -Original Message- From: Alban Soupper [mailto:[EMAIL PROTECTED] Sent: lundi, 3. mars 2003 17:02 To: JBoss user (E-mail) Subject: [JBoss-user] [HELP] Application Error: tried to enter Stateful bean with diffe rent transaction context Hi all, I need help to resolve to following problem: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context, contextTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:228) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy63.handleEvent(Unknown Source) at com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ est(ClientControllerWebImpl.java:295) at com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio n.execute(TreatStep1Action.java:67) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:446) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C ustomRequestProcessor.java:50) ... What can be the reason of such error ? Thanks a lot in advance :) Alban. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. ** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ JBoss-user mail
RE: [JBoss-user] [HELP] Application Error: tried to enter Stateful bean with diffe rent transaction context
HELP :(( We are really stuck with this problem! Nobody can help? -Original Message- From: Alban Soupper [mailto:[EMAIL PROTECTED] Sent: lundi, 3. mars 2003 17:02 To: JBoss user (E-mail) Subject: [JBoss-user] [HELP] Application Error: tried to enter Stateful bean with diffe rent transaction context Hi all, I need help to resolve to following problem: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context, contextTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:228) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy63.handleEvent(Unknown Source) at com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ est(ClientControllerWebImpl.java:295) at com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio n.execute(TreatStep1Action.java:67) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:446) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C ustomRequestProcessor.java:50) ... What can be the reason of such error ? Thanks a lot in advance :) Alban. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. ** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [HELP] Application Error: tried to enter Stateful bean with different transaction context
Hi all, I need help to resolve to following problem: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context, contextTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//2, BranchQual=], methodTx: TransactionImpl:XidImpl [FormatId=257, GlobalId=Legolas//3, BranchQual=] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.java:228) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.Container.invoke(Container.java:712) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:102) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77 ) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80) at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterce ptor.java:117) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76) at $Proxy63.handleEvent(Unknown Source) at com.eim.application.intranet.control.web.ClientControllerWebImpl.processRequ est(ClientControllerWebImpl.java:295) at com.eim.application.intranet.view.third.action.wizard.create.TreatStep1Actio n.execute(TreatStep1Action.java:67) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:446) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) at com.eim.application.intranet.control.struts.CustomRequestProcessor.process(C ustomRequestProcessor.java:50) ... What can be the reason of such error ? Thanks a lot in advance :) Alban. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager at postmaster.eim.ch. ** --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user