[JBoss-user] ±Ð±z ¦p¦ó°µ¤@±iº}«Gªººô¶
--- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JB 3.0.4, loading classes from JAR in EAR
In general you cannot put a jar in an ear and get those classes loaded. The application.xml file is responsible for dictating what gets loaded. If you add a element to application.xml for that jar file it might work but that really should be used for proper applications versus libraries. Putting the jar in deploy is not reliable because you have a chicken-egg problem. Putting it in your [jboss]/server/[config]/lib directory will definitely work as will the base lib directory. If that fails check your [jboss]/server/[config]/tmp directory because it is probably still sitting there. I could swear that if you move from deploy to lib it does not always undeploy but then that's not something you will do very often. That will definitely work but a SAR might be more appropriate than ...[config]/lib. - Original Message - From: "otisg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 2:51 PM Subject: [JBoss-user] JB 3.0.4, loading classes from JAR in EAR > Hello, > > I am trying to use JBoss 3.0.4 and have a > small problem. > My EAR contains a WAR and a JAR. I am > deploying this EAR to server/default/deploy. > > In my application I try to load a class from > the JAR by doing Class.forName( here>). > > This works fine under JBoss 2.4.4, but > doesn't seem to work under JBoss 3.0.4. > > I suspect that it's something to do with the > new Classloader in JBoss3. > I have checked the FAQ and this entry looked > promising: > http://jboss.org/faq.jsp#FAQ-BEANDEV-NORMALJARS > However, that didn't seem to solve the problem. > > I tried sticking the JAR in /lib > and server/default/lib/ but nether of those > two worked, and the latter actually gave > additional errors at boot time > (javax.management.InstanceAlreadyExistsException: > jboss.j2ee:jndiName=wgen/CommandShell,service=EJB > already registered.) > > The error actually may be a good sign, > signaling that JBoss did pick up the JAR, > but that I need to repackage thingsmaybe? > > > Any help would be very appreciated. > Thanks, > Otis > > > > > Get your own "800" number > Voicemail, fax, email, and a lot more > http://www.ureach.com/reg/tag > > > --- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Too Slow
I'm newbe, How to do that? Thanks in advance Herve Tchepannou <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent by:cc: [EMAIL PROTECTED]Subject: RE: [JBoss-user] Too Slow eforge.net No Phone Info Available 01/23/2003 03:56 AM Please respond to jboss-user or you can change the default JSP compiler of Tomcat/Jetty to Jikes which is VERY VERY fast (you'll notice the difference) --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss Project Structure Convert
Also check out jboss-head/tools/etc/buildfragments The .ent files contain many useful definitions and patterns you can use/copy/edit -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 8:18 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss Project Structure Convert onsdagen den 22 januari 2003 kl 19.07 skrev Michael Ukpong: > but I cannot find the mentioned template project!, try : http://jmvanel.free.fr/jboss3-howto.html > where can I find it and how can I convert my project structure to the > jboss standard? I can hardly wait to start using XDoclet (perhaps a > guide on xdoclet will also help). > read up on XDoclet : http://xdoclet.sourceforge.net/ also scan the source distribution's testsuite for examples --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Project Structure Convert
onsdagen den 22 januari 2003 kl 19.07 skrev Michael Ukpong: but I cannot find the mentioned template project!, try : http://jmvanel.free.fr/jboss3-howto.html where can I find it and how can I convert my project structure to the jboss standard? I can hardly wait to start using XDoclet (perhaps a guide on xdoclet will also help). read up on XDoclet : http://xdoclet.sourceforge.net/ also scan the source distribution's testsuite for examples --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JB 3.0.4, loading classes from JAR in EAR
Hello, I am trying to use JBoss 3.0.4 and have a small problem. My EAR contains a WAR and a JAR. I am deploying this EAR to server/default/deploy. In my application I try to load a class from the JAR by doing Class.forName(). This works fine under JBoss 2.4.4, but doesn't seem to work under JBoss 3.0.4. I suspect that it's something to do with the new Classloader in JBoss3. I have checked the FAQ and this entry looked promising: http://jboss.org/faq.jsp#FAQ-BEANDEV-NORMALJARS However, that didn't seem to solve the problem. I tried sticking the JAR in /lib and server/default/lib/ but nether of those two worked, and the latter actually gave additional errors at boot time (javax.management.InstanceAlreadyExistsException: jboss.j2ee:jndiName=wgen/CommandShell,service=EJB already registered.) The error actually may be a good sign, signaling that JBoss did pick up the JAR, but that I need to repackage thingsmaybe? Any help would be very appreciated. Thanks, Otis Get your own "800" number Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Can two separate client threads make simultaneous calls?
In 3.2 and higher, deadlock exceptions are automatically retried. If you're using an earlier version, you'll have to catch and retry on your client. Bill Burke Chief Architect JBoss Group, LLC > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Beau Cronin > Sent: Wednesday, January 22, 2003 3:48 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Can two separate client threads make > simultaneous calls? > > > Complete stack traces are attached. Sorry I didn't give them last time. > > You may well be right about why these deadlocks not occurring with > separate clients. If that's so, is the solution to catch the deadlock > exceptions? > > And any thoughts about the second stack trace (the iterator one)? > > Thanks, > > Beau > > Dan Christopherson wrote: > > > These deadlocks are most likely on your entity beans (the second one is > > fishy looking, but I really can't say much without seeing more (all) of > > the stack trace.). By default, JBoss only keeps one instance per bean > > identity, so each transaction from your client will block on > the entity. > > Give the full stack trace, that might be helpful. > > > > launching from different client app instances will change the > timings of > > things, making the deadlock less likely, but perhaps still possible, > > depending on your application. > > > > Beau Cronin wrote: > > > >> There are two messages which appear. The first is: > >> > >> 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application > >> deadlock detected: TransactionImpl:XidImpl [FormatId=257, > >> GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or > >> more transactions contending for same resources and each have locks > >> eachother need. > >> 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] > >> TransactionRolledbackLocalException, causedBy: > >> org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application > >> deadlock detected: Two or more transactions contention.at > >> org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock > >> Support.java:136)at > >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP > >> essimisticEJBLock.java:270)at > >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued > >> PessimisticEJBLock.java:202)at > >> org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe > >> ssimisticEJBLock.java:150) > >> > > --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Too Slow
Title: RE: [JBoss-user] Too Slow or you can change the default JSP compiler of Tomcat/Jetty to Jikes which is VERY VERY fast (you'll notice the difference) -Original Message- From: Daniel Bruce Lynes [mailto:[EMAIL PROTECTED]] Sent: 22 January 2003 16:12 To: JBoss Users Subject: Re: [JBoss-user] Too Slow On Wednesday 22 January 2003 12:31, Gabriel Pinto wrote: > I'm running JBOSS in a Pentium III 1gHz with 512MB RAM with RedHat 7.2, > but it is too slow! > > Even when I run only jsp files I can't get a reasonable speedy. > > When I run the application in a AMD Duron 800Mhz 256MB RAM it works a lot > better? > > Anyone have any idea? > > Is there any configuration that can be made to JBOSS that let it faster > running in Linux? JBoss doesn't do servlets. JBoss itself, from my experience is the fastest server of its kind on the market. Servlet engines on the other hand are slower than hell, because of the constant compile cycle when you introduce a newly timestamped jsp file. You're probably better off asking speed-related questions for the servlet engine either to the jetty mailing list, or the tomcat mailing list, depending on which servlet engine you're using. Without knowing which servlet engine you're using, it's impossible to tell you any specifics on speeding your jsp pages up. However, one method you can use that is generalized for speeding up a JSP/servlet container, w.r.t. jsp pages, is to precompile all jsp pages before deploying. This can be achieved using jspc for both Tomcat and jetty. Jetty uses Tomcat's jspc. --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Too Slow
On Wednesday 22 January 2003 12:31, Gabriel Pinto wrote: > I'm running JBOSS in a Pentium III 1gHz with 512MB RAM with RedHat 7.2, > but it is too slow! > > Even when I run only jsp files I can't get a reasonable speedy. > > When I run the application in a AMD Duron 800Mhz 256MB RAM it works a lot > better? > > Anyone have any idea? > > Is there any configuration that can be made to JBOSS that let it faster > running in Linux? JBoss doesn't do servlets. JBoss itself, from my experience is the fastest server of its kind on the market. Servlet engines on the other hand are slower than hell, because of the constant compile cycle when you introduce a newly timestamped jsp file. You're probably better off asking speed-related questions for the servlet engine either to the jetty mailing list, or the tomcat mailing list, depending on which servlet engine you're using. Without knowing which servlet engine you're using, it's impossible to tell you any specifics on speeding your jsp pages up. However, one method you can use that is generalized for speeding up a JSP/servlet container, w.r.t. jsp pages, is to precompile all jsp pages before deploying. This can be achieved using jspc for both Tomcat and jetty. Jetty uses Tomcat's jspc. --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
Complete stack traces are attached. Sorry I didn't give them last time. You may well be right about why these deadlocks not occurring with separate clients. If that's so, is the solution to catch the deadlock exceptions? And any thoughts about the second stack trace (the iterator one)? Thanks, Beau Dan Christopherson wrote: These deadlocks are most likely on your entity beans (the second one is fishy looking, but I really can't say much without seeing more (all) of the stack trace.). By default, JBoss only keeps one instance per bean identity, so each transaction from your client will block on the entity. Give the full stack trace, that might be helpful. launching from different client app instances will change the timings of things, making the deadlock less likely, but perhaps still possible, depending on your application. Beau Cronin wrote: There are two messages which appear. The first is: 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application deadlock detected: TransactionImpl:XidImpl [FormatId=257, GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or more transactions contending for same resources and each have locks eachother need. 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application deadlock detected: Two or more transactions contention.at org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock Support.java:136)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP essimisticEJBLock.java:270)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued PessimisticEJBLock.java:202)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe ssimisticEJBLock.java:150) 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application deadlock detected: TransactionImpl:XidImpl [FormatId=257, GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or more transactions contending for same resources and each have locks eachother need. 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application deadlock detected: Two or more transactions contention. at org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLockSupport.java:136) at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimisticEJBLock.java:270) at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:202) at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:150) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:103) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:69) 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 fn2.farina.server.perimeter.interceptor.PerimeterLockInterceptor.invoke(Unknown Source) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301) at org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38) at $Proxy1212.getDTO(Unknown Source) at fn2.farina.services.LookupBean.getById(Unknown Source) at fn2.farina.services.LookupBean.getById(Unknown Source) at fn2.farina.services.LookupBean.loadAll(Unknown Source) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77) 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.SecurityInterceptor.invoke(SecurityInterceptor.java:130) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.StatelessSessionC
Re: [JBoss-user] Can two separate client threads make simultaneou s calls?
JBoss 3.0.4/Tomcat 4.0.6 Beau [EMAIL PROTECTED] wrote: I might have missed this, but what version of JBoss? -Original Message- From: Beau Cronin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 2:45 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Can two separate client threads make simultaneous calls? There are two messages which appear. The first is: 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application deadlock detected: TransactionImpl:XidImpl [FormatId=257, GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or more transactions contending for same resources and each have locks eachother need. 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application deadlock detected: Two or more transactions contention.at org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock Support.java:136)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP essimisticEJBLock.java:270)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued PessimisticEJBLock.java:202)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe ssimisticEJBLock.java:150) I've read the deadlock section of the docs, but I still don't understand how this situation (separate threads in a remote client) is different from the one in which entirely different clients are making the same requests (in which case I never have problems of this sort). The other message is this one: 2003-01-22 11:34:34,195 ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR collection may only be used within the transction in which it was created; CausedByException is: The iterator of a CMR collection may only be used within the transctionin which it was created 2003-01-22 11:34:34,196 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac tTxInterceptor.java:224) 2003-01-22 11:34:34,197 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI nterceptorCMT.java:178) 2003-01-22 11:34:34,198 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT .java:60) I certainly understand the nature of the transcation/iterator restriction, but why would these calls from separate client threads be tickling this? Again, there must be something I'm just not getting. Shouldn't it be possible to do this? Thanks for your time and attention on this matter. I look forward to your response. Beau Alex Loubyansky wrote: what is the problem? what locking policy are you using? alex Wednesday, January 22, 2003, 8:43:05 PM, you wrote: BC> I have a Swing app which is essentially single-threaded, accessing the BC> server in the usual way through a session facade. I'd like to do some BC> background loading of certain data for performance reasons, but when I BC> try to do this by using a separate thread (and separate session BC> instance), I get various transaction collision problems if these two BC> threads access the server at the same time. BC> I'm obviously missing something here--shouldn't different remote client BC> threads from the same client be able to access JBoss simultaneously in BC> the same way that entirely different clients can? I.e., shouldn't they BC> spawn separate transactions which are scheduled appropriately by JBoss? BC> Any clarification appreciated, BC> Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Too Slow
How much memory are you giving the VM through your JAVA_OPTS environment variable? Have a large JSP based full-on J2EE application running on a lesser machine than that and it screams once the pages are compiled. - Original Message - From: "Gabriel Pinto" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 12:31 PM Subject: [JBoss-user] Too Slow I'm running JBOSS in a Pentium III 1gHz with 512MB RAM with RedHat 7.2, but it is too slow! Even when I run only jsp files I can't get a reasonable speedy. When I run the application in a AMD Duron 800Mhz 256MB RAM it works a lot better? Anyone have any idea? Is there any configuration that can be made to JBOSS that let it faster running in Linux? Thanks ... -- Gabriel Esteves Marques Pinto Diretor de TI [EMAIL PROTECTED] www.brainweb.com.br (19)3287-7060 Ramal:253 Núcleo SOFTEX-Campinas --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneouscalls?
These deadlocks are most likely on your entity beans (the second one is fishy looking, but I really can't say much without seeing more (all) of the stack trace.). By default, JBoss only keeps one instance per bean identity, so each transaction from your client will block on the entity. Give the full stack trace, that might be helpful. launching from different client app instances will change the timings of things, making the deadlock less likely, but perhaps still possible, depending on your application. Beau Cronin wrote: There are two messages which appear. The first is: 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application deadlock detected: TransactionImpl:XidImpl [FormatId=257, GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or more transactions contending for same resources and each have locks eachother need. 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application deadlock detected: Two or more transactions contention.at org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock Support.java:136)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP essimisticEJBLock.java:270)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued PessimisticEJBLock.java:202)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe ssimisticEJBLock.java:150) smime.p7s Description: S/MIME Cryptographic Signature
[JBoss-user] Message Sending Bean
Hi, Is there a design pattern for a session bean or entity bean which sends messages? Something akin to MDB, but in reverse? Right now I have a session bean which maintains a singleton instance of a connection, and funnels all message sends for my application through a single connection. I could create a pooling mechanism that worked similarly through a session bean, but I was wondering if there was a pattern, or better still, package that other Jbossers were using? Thanks, fawce --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Too Slow
I'm running JBOSS in a Pentium III 1gHz with 512MB RAM with RedHat 7.2, but it is too slow! Even when I run only jsp files I can't get a reasonable speedy. When I run the application in a AMD Duron 800Mhz 256MB RAM it works a lot better? Anyone have any idea? Is there any configuration that can be made to JBOSS that let it faster running in Linux? Thanks ... -- Gabriel Esteves Marques Pinto Diretor de TI [EMAIL PROTECTED] www.brainweb.com.br (19)3287-7060 Ramal:253 Núcleo SOFTEX-Campinas --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Can two separate client threads make simultaneous calls?
I might have missed this, but what version of JBoss? > -Original Message- > From: Beau Cronin [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 22, 2003 2:45 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Can two separate client threads make > simultaneous calls? > > > There are two messages which appear. The first is: > > 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application > deadlock detected: TransactionImpl:XidImpl [FormatId=257, > GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or > more transactions contending for same resources and each have locks > eachother need. > 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] > TransactionRolledbackLocalException, causedBy: > org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application > deadlock detected: Two or more transactions contention.at > org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock > Support.java:136)at > org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP > essimisticEJBLock.java:270)at > org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued > PessimisticEJBLock.java:202)at > org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe > ssimisticEJBLock.java:150) > > I've read the deadlock section of the docs, but I still don't > understand > how this situation (separate threads in a remote client) is different > from the one in which entirely different clients are making the same > requests (in which case I never have problems of this sort). > > The other message is this one: > > 2003-01-22 11:34:34,195 ERROR [STDERR] > javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR > collection may only be used within the transction in which it was > created; CausedByException is: > The iterator of a CMR collection may only be used within the > transctionin which it was created > 2003-01-22 11:34:34,196 ERROR [STDERR] at > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac > tTxInterceptor.java:224) > 2003-01-22 11:34:34,197 ERROR [STDERR] at > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI > nterceptorCMT.java:178) > 2003-01-22 11:34:34,198 ERROR [STDERR] at > org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT > .java:60) > > I certainly understand the nature of the transcation/iterator > restriction, but why would these calls from separate client > threads be > tickling this? > > Again, there must be something I'm just not getting. Shouldn't it be > possible to do this? > > Thanks for your time and attention on this matter. I look forward to > your response. > > Beau > > Alex Loubyansky wrote: > > > what is the problem? what locking policy are you using? > > > > alex > > > > Wednesday, January 22, 2003, 8:43:05 PM, you wrote: > > > > BC> I have a Swing app which is essentially > single-threaded, accessing the > > BC> server in the usual way through a session facade. I'd > like to do some > > BC> background loading of certain data for performance > reasons, but when I > > BC> try to do this by using a separate thread (and separate session > > BC> instance), I get various transaction collision problems > if these two > > BC> threads access the server at the same time. > > > > BC> I'm obviously missing something here--shouldn't > different remote client > > BC> threads from the same client be able to access JBoss > simultaneously in > > BC> the same way that entirely different clients can? > I.e., shouldn't they > > BC> spawn separate transactions which are scheduled > appropriately by JBoss? > > > > BC> Any clarification appreciated, > > > > BC> Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Compound Foreign Keys
All participating key fields must be designated CMP and you cannot have a single field designated as both CMP and CMR in the same bean - pretty sure those assertions are correct. Therefore you cannot have a compound key that contains a CMR field. - Original Message - From: "Hanson, Matthew" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 22, 2003 9:20 AM Subject: [JBoss-user] Compound Foreign Keys > Hi - I am using jboss-3.0.4_tomcat-4.1.12 with interfaces generated via > xdoclet1.1.2. I have seen a lot of talk in the jboss forums about compound > foreign keys in cmr. Most of the messages are of the type this/that version > does/not support compound keys. Is it rude to post for a clear direction on > this subject, specifically for my version? If it's possible, where might I > look for documentation? > > Thanks! > Matt Hanson > > > --- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
Muntean Horia wrote: Beau Cronin wrote: I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time. I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss? Any clarification appreciated, Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Try to do the same thing u are doing with 2 threads in the same VM, in 2 different JVMs. And (as I suspect it would be) if u get the same collisions (tx deadlocks?), your problem resides at the server side. The problem does not occur when multiple users (i.e., many different clients, each with its own JVM) are on the system. This leads me to believe it is not a fundamental server-side problem. It only occurs when two threads from the same client make simultaneous calls. Please see my reply to Alex Loubyansky for the relevant stack traces. Thanks, Beau Regards, Horia --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
I forgot to say that I'm using commit option A for performance reasons, with the default bean locking. Beau Alex Loubyansky wrote: what is the problem? what locking policy are you using? alex Wednesday, January 22, 2003, 8:43:05 PM, you wrote: BC> I have a Swing app which is essentially single-threaded, accessing the BC> server in the usual way through a session facade. I'd like to do some BC> background loading of certain data for performance reasons, but when I BC> try to do this by using a separate thread (and separate session BC> instance), I get various transaction collision problems if these two BC> threads access the server at the same time. BC> I'm obviously missing something here--shouldn't different remote client BC> threads from the same client be able to access JBoss simultaneously in BC> the same way that entirely different clients can? I.e., shouldn't they BC> spawn separate transactions which are scheduled appropriately by JBoss? BC> Any clarification appreciated, BC> Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
There are two messages which appear. The first is: 2003-01-22 11:31:08,725 ERROR [org.jboss.ejb.BeanLock] Application deadlock detected: TransactionImpl:XidImpl [FormatId=257, GlobalId=redbull//3324, BranchQual=] has deadlock conditions. Two or more transactions contending for same resources and each have locks eachother need. 2003-01-22 11:31:08,728 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: org.jboss.ejb.plugins.lock.ApplicationDeadlockException: Application deadlock detected: Two or more transactions contention.at org.jboss.ejb.plugins.lock.BeanLockSupport.deadlockDetection(BeanLock Support.java:136)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedP essimisticEJBLock.java:270)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(Queued PessimisticEJBLock.java:202)at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPe ssimisticEJBLock.java:150) I've read the deadlock section of the docs, but I still don't understand how this situation (separate threads in a remote client) is different from the one in which entirely different clients are making the same requests (in which case I never have problems of this sort). The other message is this one: 2003-01-22 11:34:34,195 ERROR [STDERR] javax.ejb.TransactionRolledbackLocalException: The iterator of a CMR collection may only be used within the transction in which it was created; CausedByException is: The iterator of a CMR collection may only be used within the transctionin which it was created 2003-01-22 11:34:34,196 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:224) 2003-01-22 11:34:34,197 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) 2003-01-22 11:34:34,198 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) I certainly understand the nature of the transcation/iterator restriction, but why would these calls from separate client threads be tickling this? Again, there must be something I'm just not getting. Shouldn't it be possible to do this? Thanks for your time and attention on this matter. I look forward to your response. Beau Alex Loubyansky wrote: what is the problem? what locking policy are you using? alex Wednesday, January 22, 2003, 8:43:05 PM, you wrote: BC> I have a Swing app which is essentially single-threaded, accessing the BC> server in the usual way through a session facade. I'd like to do some BC> background loading of certain data for performance reasons, but when I BC> try to do this by using a separate thread (and separate session BC> instance), I get various transaction collision problems if these two BC> threads access the server at the same time. BC> I'm obviously missing something here--shouldn't different remote client BC> threads from the same client be able to access JBoss simultaneously in BC> the same way that entirely different clients can? I.e., shouldn't they BC> spawn separate transactions which are scheduled appropriately by JBoss? BC> Any clarification appreciated, BC> Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Can two separate client threads make simultaneous calls?
you need to actually provide a stack trace or we can't help you. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Alex > Loubyansky > Sent: Wednesday, January 22, 2003 1:56 PM > To: Beau Cronin > Subject: Re: [JBoss-user] Can two separate client threads make > simultaneous calls? > > > what is the problem? what locking policy are you using? > > alex > > Wednesday, January 22, 2003, 8:43:05 PM, you wrote: > > BC> I have a Swing app which is essentially single-threaded, > accessing the > BC> server in the usual way through a session facade. I'd like > to do some > BC> background loading of certain data for performance reasons, > but when I > BC> try to do this by using a separate thread (and separate session > BC> instance), I get various transaction collision problems if these two > BC> threads access the server at the same time. > > BC> I'm obviously missing something here--shouldn't different > remote client > BC> threads from the same client be able to access JBoss > simultaneously in > BC> the same way that entirely different clients can? I.e., > shouldn't they > BC> spawn separate transactions which are scheduled appropriately > by JBoss? > > BC> Any clarification appreciated, > > BC> Beau Cronin > > > > > --- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneouscalls?
Beau Cronin wrote: I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time. I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss? Any clarification appreciated, Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Try to do the same thing u are doing with 2 threads in the same VM, in 2 different JVMs. And (as I suspect it would be) if u get the same collisions (tx deadlocks?), your problem resides at the server side. Regards, Horia --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] classpath order in jboss-service.xml
jars are added in the order of the classpath declarations. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "Muruga Chinnananchi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 20, 2003 3:04 PM Subject: [JBoss-user] classpath order in jboss-service.xml > Hi, > > i have the following configuration in my > jboss-service.xml. for loading MyClass.class. > > > archives="myapp.jar/> > > MyClass.class is present in myapp.jar as well as > c:/class/ directory. when i instantiate the MyClass > which MyClass version will get loaded? My question, > How do i specify the classpath order in jboss? I want > to load the c:/classes version of MyClass instead of > lib/myapp.jar version. > > How do i do it in JBoss 3.2? > > Thanks for your help. > > thanks, > > -muruga > > __ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > --- > This SF.NET email is sponsored by: FREE SSL Guide from Thawte > are you planning your Web Server Security? Click here to get a FREE > Thawte SSL guide and find the answers to all your SSL security issues. > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
All session beans are stateless. I've read the relevant portions of the spec, and I haven't seen anything to indicate that what I'm doing is illegal (although I could certainly have missed something...) Beau David Ward wrote: Are you hitting a Stateful Session Bean or a Stateless one? According to the EBJ spec, it is illegal to hit a transactional Stateful one from two threads simultaneously that have the same bean handle. David -- Beau Cronin escribió:: I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time. I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss? Any clarification appreciated, Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneouscalls?
Are you hitting a Stateful Session Bean or a Stateless one? According to the EBJ spec, it is illegal to hit a transactional Stateful one from two threads simultaneously that have the same bean handle. David -- Beau Cronin escribió:: I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time. I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss? Any clarification appreciated, Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Can two separate client threads make simultaneous calls?
what is the problem? what locking policy are you using? alex Wednesday, January 22, 2003, 8:43:05 PM, you wrote: BC> I have a Swing app which is essentially single-threaded, accessing the BC> server in the usual way through a session facade. I'd like to do some BC> background loading of certain data for performance reasons, but when I BC> try to do this by using a separate thread (and separate session BC> instance), I get various transaction collision problems if these two BC> threads access the server at the same time. BC> I'm obviously missing something here--shouldn't different remote client BC> threads from the same client be able to access JBoss simultaneously in BC> the same way that entirely different clients can? I.e., shouldn't they BC> spawn separate transactions which are scheduled appropriately by JBoss? BC> Any clarification appreciated, BC> Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Can two separate client threads make simultaneous calls?
I have a Swing app which is essentially single-threaded, accessing the server in the usual way through a session facade. I'd like to do some background loading of certain data for performance reasons, but when I try to do this by using a separate thread (and separate session instance), I get various transaction collision problems if these two threads access the server at the same time. I'm obviously missing something here--shouldn't different remote client threads from the same client be able to access JBoss simultaneously in the same way that entirely different clients can? I.e., shouldn't they spawn separate transactions which are scheduled appropriately by JBoss? Any clarification appreciated, Beau Cronin --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBossMQ / MDB extensions
Submit a patch to sourceforge with code as an attachment. Scott StarkChief Technology OfficerJBoss Group, LLC - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 22, 2003 3:28 AM Subject: [JBoss-user] JBossMQ / MDB extensions How is it possible to include major source upgrades ( some new classes, some modifcations of existing classes ) into the regular JBoss/JBossMQ source WITHOUTdeveloper CVS access ? We have developped some missing - but for JBoss usage in a more complex JMS production environment vital - JBossMQ / JBoss MDBContainer extension features ( e.g. global destination message counter / queue depth state informations, performance counter and redelivery delay for MDB's invocations ). We would like to include these features into the regular JBoss distribution for avoiding maintenance of a proprietary JBoss version ( maybe some other JBoss JMS user also need these features ?!? ) Regards Ulf
[JBoss-user] JBoss Project Structure Convert
I have been using JBoss Appserver for well over a year now. I use Sun One Studio for development and deploy in Jboss using Ant. I have been working all this while with virtually no documentation (dont blame me! read on). I recently stumbled on the "Jboss 3.0 Quick Start Guide - Andreas Schaffer", The pdf was VERY scanty (apologies) but the template project of chapter 3 gave me a good insight on how JBoss projects are structured. I have fallen in love with the structure and I have gone ahead to check out jboss head. but I cannot find the mentioned template project!, where can I find it and how can I convert my project structure to the jboss standard? I can hardly wait to start using XDoclet (perhaps a guide on xdoclet will also help). thanks in advance. ps: please no body should suggest that I subscribe for the official docs. we in Nigeria do not have access to credit cards so I cant purchase it online. I have asked a friend who is based in US to help me purchase it, but that will take time. -Michael UkpongEnterprise Portal ArchitectSocketWorks Ltd+2348033473455-With Yahoo! Mail you can get a bigger mailbox -- choose a size that fits your needs
Re: [JBoss-user] Compound Foreign Keys
- compound foreign keys are supported by all JBoss versions; - foreign key fields mapped to primary key fields are supported only since JBoss-3.2; - foreign key fields mapped to non-primary key CMP fields are not supported at all. It's not documented yet. Ask your questions here, but, please, try searching the archive first. alex Wednesday, January 22, 2003, 7:20:55 PM, you wrote: HM> Hi - I am using jboss-3.0.4_tomcat-4.1.12 with interfaces generated via HM> xdoclet1.1.2. I have seen a lot of talk in the jboss forums about compound HM> foreign keys in cmr. Most of the messages are of the type this/that version HM> does/not support compound keys. Is it rude to post for a clear direction on HM> this subject, specifically for my version? If it's possible, where might I HM> look for documentation? HM> Thanks! HM> Matt Hanson --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Compound Foreign Keys
Hi - I am using jboss-3.0.4_tomcat-4.1.12 with interfaces generated via xdoclet1.1.2. I have seen a lot of talk in the jboss forums about compound foreign keys in cmr. Most of the messages are of the type this/that version does/not support compound keys. Is it rude to post for a clear direction on this subject, specifically for my version? If it's possible, where might I look for documentation? Thanks! Matt Hanson --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JMS ping timeout exception
Sorry, I was working against head, and wasn't even aware that this fix existed. Wish I had known, since I spent the better part of a day finding the old deadlock. Shame on me for not looking at 3.2 I guess. On the positive side, the current implementation looks slick to me. Much better than the bandaid I was trying to apply. Thanks, fawce -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scott M Stark Sent: Tuesday, January 21, 2003 9:23 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JMS ping timeout exception Main never had the UIL deadlock fix ported from 3.0 and 3.2 so this really does not apply here. I need to see the thread dump of the main deadlock or else I'm just going to update main with the 3.2 changes. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: "John Fawcett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 21, 2003 1:04 PM Subject: RE: [JBoss-user] JMS ping timeout exception > Hi, > > There is a deadlock bug in the org.jboss.mq.il.uil.multiplexor > package. I submitted a patch to this a few days ago, and this is the > behavior that lead me to it. > > I don't know whether the patch is, was or will be applied. > > Good luck, > fawce > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of Sebastian > Hauer > Sent: Tuesday, January 21, 2003 1:20 PM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] JMS ping timeout exception > > > > Hi, > > Lately we experience more of these JMS ping timeouts in one of our > "almost production" installations. We get these exceptions on the > client side. On the server side we use JBoss 3.0.5 with the UIL IL. > > Here is the exception: > - > 17:47:39,093 WARN Connection - Connection failure: > org.jboss.mq.SpyJMSException: Connection Failed; - nested throwable: > (java.io.IOException: ping timeout.) > at org.jboss.mq.Connection.asynchFailure(Connection.java:606) > at org.jboss.mq.Connection$PingTask.run(Connection.java:1190) > at > EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.jav > a:364) > at java.lang.Thread.run(Unknown Source) > + nested throwable: > java.io.IOException: ping timeout. > at org.jboss.mq.Connection$PingTask.run(Connection.java:1182) > at > EDU.oswego.cs.dl.util.concurrent.ClockDaemon$RunLoop.run(ClockDaemon.jav > a:364) > at java.lang.Thread.run(Unknown Source) > - > > The client still seems to work, except that we see a lot of these > messages in the log output. What could be a cause of this? Could it be > related to a slow network? And finally will JMS continue to work > reliably? > > Regards, > Sebastian > > > --- > This SF.net email is sponsored by: Scholarships for Techies! Can't > afford IT training? All 2003 ictp students receive scholarships. Get > hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > --- > This SF.net email is sponsored by: Scholarships for Techies! Can't > afford IT training? All 2003 ictp students receive scholarships. Get > hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Session Id not reinitialized
3.0.6 will be out soon (early next week?) Please repeat the test in that and if the problm persists, mail again with more detail - i.e. a blow-by-blow account of exactly what you did from both boxes and what behaviour you observed. Jules kiuma wrote: Hello, I'm having the following problem: I'm using JBoss 3.0.4 with Jetty my login.jsp is: <%@page language="java" contentType="text/html;charset=UTF-8" session="true" isThreadSafe="true" isErrorPage="false" import="javax.naming.*, com.wingstech.webappointments.interfaces.*, java.util.*" %> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %> <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <%@ taglib uri="/WEB-INF/x.tld" prefix="x" %> : When I log from a computer of my lan the other Pc shares the same connection, so it doesn't ask me to log into my app. Can you explain me where is the bug? (this is my 1st web application and so I've not much experience about these sort of problems) Thanks in advance! kiuma --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Session Id not reinitialized
Hello, I'm having the following problem: I'm using JBoss 3.0.4 with Jetty my login.jsp is: <%@page language="java" contentType="text/html;charset=UTF-8" session="true" isThreadSafe="true" isErrorPage="false" import="javax.naming.*, com.wingstech.webappointments.interfaces.*, java.util.*" %> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %> <%@ taglib uri="/WEB-INF/struts-logic-el.tld" prefix="logic-el" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <%@ taglib uri="/WEB-INF/x.tld" prefix="x" %> : When I log from a computer of my lan the other Pc shares the same connection, so it doesn't ask me to log into my app. Can you explain me where is the bug? (this is my 1st web application and so I've not much experience about these sort of problems) Thanks in advance! kiuma --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to store the persistent messages?
Hi, I am using Jboss 3.0.0 and in my application i want to get(track)all the persistent messages in my JMS module, In Jboss all the persistent messages are stored on hard disk or database, i want to store all these messages into my own database for further processing, Jboss by default it is using HSQL database and i am able to see all the messages but i am not able to store all the massages into my own databse(like mysql), i tried to change the database to mysql but it's not reflecting, how to store all these messages into my own database? Any idea? thanks , madhu sudhan --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ConnectionFactories in JMS
Hi, Is there any way to create or set the ConnectionFactories dynamically in JMS? Any idea? thnaks in advance --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBossMQ / MDB extensions
How is it possible to include major source upgrades ( some new classes, some modifcations of existing classes ) into the regular JBoss/JBossMQ source WITHOUTdeveloper CVS access ? We have developped some missing - but for JBoss usage in a more complex JMS production environment vital - JBossMQ / JBoss MDBContainer extension features ( e.g. global destination message counter / queue depth state informations, performance counter and redelivery delay for MDB's invocations ). We would like to include these features into the regular JBoss distribution for avoiding maintenance of a proprietary JBoss version ( maybe some other JBoss JMS user also need these features ?!? ) Regards Ulf
Re: [JBoss-user] LDAP configuration
the most comfortable way will be the jndi path. the jndi namespace in jboss is a federated one, so you are able to integrate external namespaces like dns, ldap, filesystems, c++ or your anchestry tree seamlessly into the jndi tree. you may then manipulate the objects via normal jndi lookup and search routines, respective the appropriate object factories. it is explicitely described in chapter 3 "Naming on JBoss - The JNDI Naming Service" of the jboss book, in the ExternalContext MBean config: ldap example with parameters in jboss.ldap : external/ldap/jboss jboss.ldap javax.naming.ldap.InitialLdapContext true here we will bind the filesystem according to local.props : external/fs/usr/local local.props javax.naming.InitialContext jboss.ldap: java.naming.factory.initial= com.sun.jndi.ldap.LdapCtxFactory java.naming.provider.url= ldap://ldaphost.jboss.org:389/o=jboss.org java.naming.security.principal=cn=Directory Manager java.naming.security.authentication=simple java.naming.security.credentials=secret local.props: java.naming.factory.initial= com.sun.jndi.fscontext.RefFSContextFactory java.naming.provider.url=file:///usr/local for your anchestry tree please use the settings accordingly ;-) bax > Von: madhu sudhan <[EMAIL PROTECTED]> > Organisation: infoglyptic > Antworten an: [EMAIL PROTECTED] > Datum: Wed, 22 Jan 2003 16:15:57 +0530 > An: [EMAIL PROTECTED] > Betreff: [JBoss-user] LDAP configuration > > Any one having any idea about how to connfigure External LDAP server in > jboss3.0.0 . > thanks in advance > > > --- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] LDAP configuration
Any one having any idea about how to connfigure External LDAP server in jboss3.0.0 . thanks in advance --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user