[JBoss-user] Apple and JBoss
Just found this in an Apple developer newsletter: [5] Internet Developer Article: "Enterprise Java on Mac OS X" ADC has updated its article on installing and using JBoss and Jetty on Mac OS X. This article also includes examples on how to use JBoss 3.0.2, an open-source J2EE application server. http://developer.apple.com/internet/java/enterprisejava.html Stefan --- 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
RE: [JBoss-user] Strange Problem on Linux
you can generate threads anytime within a JBoss application. Just remember, you lose any transaction or security context when you spawn the thread. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:jboss-user-admin@;lists.sourceforge.net]On Behalf Of Marius > Kotsbak > Sent: Friday, October 11, 2002 5:30 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Strange Problem on Linux > > > saroj kumar wrote: > > >HI All, > > > >I am facing "Transaction Timeout " exception while running > >the code on Redhat Linux 7.3/JDK1.4/JBOSS 3.0.3/Oracle9i. > > > >Same code is working fine on Win2k/JBOSS 3.0.3/jdk1.4/Oracle9i. > > > >Scenario is: > > > >UI Layer makes a call to SLSB. This SLSB makes a call to another > >SLSB which uses a class. This class spawns two threads > >And one of these threads operates on Entity Bean using a Session Bean. > >When we make 1st call, it works fine but 2nd time onwards same call > >fails with Exception "TX marked for rollback. Possibly timeout". > > > We actually get this too on linux, but probably because of a long > transaction. But I think you arn't allowed to create any threads in jboss. > > > > >Any help would be more than welcome. > > > >TIA, > >Saroj > > > > > > > >--- > >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: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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] OT Wiki in jboss
Peter Fagerlund <[EMAIL PROTECTED]> writes: > Any under JavaLanguage @ http://c2.com/cgi/wiki?WikiEngines That's how I found JSPWiki, which has been working well here for a few months. -mc -- Mike Coleman <[EMAIL PROTECTED]> Five Bats Research, Portland Oregon --- 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
Re: [JBoss-user] JBoss only using 1 of 8 cpu's
I saw similar behavior on my 2 cpu Ultra 2 running Linux (Blackdown JVM 1.4.1 beta). It wasn't exclusively using 1 CPU but it almost always had just one java process constantly at 99% cpu utilization. I could perform certain operations that would cause another java process to be runnable. From what I could tell it was the entity bean locking and CMR updates that caused this to happen. The operations I would perform to get another process running were using reporting functions that bypass entity beans (no way I'm going to try to use entity beans to report on 10,000 out of 3million entity beans). My application has been painfully slow because of this so yesterday I completely stripped CMR from the system. This was very easy to do as I have ints as primary keys for all my objects and ejbCreate takes FooData and the CMR objects as parameters... - Change setBar and getBar to set/return int - Add getBarOb() to return the related object - Remove CMR objects from ejbCreate and ejbPostCreate - Fix uses of create to remove CMR objects and call appropriate FooData.set* methods instead - Fix finder methods to take int instead of the object The only tricky part was when I had a finder query that utilitized the CMR relationship to do cross table queries. In my instance I simply implemented the select in JDBC as a home method and returned the ints. Also, making sure to throw ObjectNotFoundException so I didn't have to change logic throughout the code. This works well for simple data types (integer, real, string, etc) which are the same across DBs but not so well for things like boolean (I forcefully map String types to VARCHAR when I need to query them for reporting so that isn't an issue). I had a case where I had a CMR boolean field to check and I chose to leave the finder method intact and perform a check on the objects via getBarOb().getSomeFlag() on the results returned. The short of this is I now have a load of 1.0 instead of 8 on my little box and application response is wonderful. The JVM is also less than 75M where it was around 280M (I set the heap at 256M). And both processors are being used (totaly java process load exceeds 1 cpu when needed). BTW has anyone else noticed Sun JVM 1.4.1 corrupting the heap and crashing on x86 Linux? Brian Macy Fredrik Lindgren wrote: This could also be due to synchronization somewhere in your code. Something to look for is heavy usage of System.out. Writing using System.out is synchronized and can be really slow if you have the console open. I've seen this once on a really powerful AIX cluster (Jboss was not part of that setup though) When tracking the problem we added more trace messages to System.out. That did not help :-) I hope this helped /Fredrik Lindgren Alwyn Schoeman wrote: I get the idea that this is Sparc specific problem, anyone with sparc success? On Fri, Oct 11, 2002 at 09:25:24AM +0200, [EMAIL PROTECTED] wrote: Jboss (3.0.2 at least) is using both of our 2 CPUs on 2.2.* SuSE kernel on intel. On Fri, Oct 11, 2002 at 12:06:23PM +0800, Alwyn Schoeman wrote: Hi, I'm running JBoss 3.0.3 on a Sun Fire 880 with 8 cpu's. Even though I have about 450 threads going it uses only 1 cpu and not very well at that. I have tried all the JVM options for 1.4.1, but no difference. Anyone have any ideas? -- Alwyn Schoeman SMART Money Inc. "The clock on the wall keeps moving, time stands still... No matter how the dice may fall, someone else always gets to call the number..." -- MVH Marius Kotsbak Boost communications AS --- 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: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: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] JBoss foreign key relationships
Yesterday I removed CMR from my applicaton after discovering that it was killing performance (order of magnitude, from cache updates and foreign key constraint checks) and eating resources (cache I think). I'm sure there are things I'm doing wrong to worsen the issue but it's not at issue as the code is cleaner and more effecient without CMR anyways. Without CMR relationships I do lose JBoss' built in foreign key constraints so I would like to move those constraints to the database. I can of course use a SQL script to do it (I already have some indices created this way) but I'd prefer for the EJB deployment to create the foreign keys. Is it possible to configure a foreign key relationship that JBoss will ignore after EJB deployment? I don't want to end up back at the performance hit though. Brian Macy --- 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
Re: [JBoss-user] Strange Problem on Linux
Hello saroj, it can be a locking problem. Is there a chance the second call spawns a thread that calls entity bean that is currently involved in the transaction initiated by the first call? Why it doesn't happen on windows?.. Probably, on windows the transaction needs less time to complete. May it take place? alex Friday, October 11, 2002, 9:50:27 PM, you wrote: sk> HI All, sk> I am facing "Transaction Timeout " exception while running sk> the code on Redhat Linux 7.3/JDK1.4/JBOSS 3.0.3/Oracle9i. sk> Same code is working fine on Win2k/JBOSS 3.0.3/jdk1.4/Oracle9i. sk> Scenario is: sk> UI Layer makes a call to SLSB. This SLSB makes a call to another sk> SLSB which uses a class. This class spawns two threads sk> And one of these threads operates on Entity Bean using a Session Bean. sk> When we make 1st call, it works fine but 2nd time onwards same call sk> fails with Exception "TX marked for rollback. Possibly timeout". sk> Any help would be more than welcome. sk> TIA, sk> Saroj -- Best regards, Alex Loubyansky --- 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
Re: [JBoss-user] Access to archives of this list - (want to researchto avoid asking a FAQ)
Thorbjørn Ravn Andersen wrote: I have a rather tricky problem with jboss-web.xml where a does not show up in JNDI for one webapp, although the identical file shows up in another webapp in the same EAR, and I would like to search the archives before asking for help debugging JNDI configuration. For the archives: My jboss-web.xml entry was silently ignored, as there was no corresponding entry in web.xml. After adding that, it worked a lot better. -- Thorbjørn Ravn Andersen Scandiatransplant Skejby Sygehus, indgang 3 +45 89 49 53 01 DK-8200 Århus N http://biobase.dk/~tra --- 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
Re: [JBoss-user] OT Wiki in jboss
lördagen den 12 oktober 2002 kl 01.03 skrev Stefan Groschupf: sorry be out topic, someone know a wiki software running under jboss with jetty? Any under JavaLanguage @ http://c2.com/cgi/wiki?WikiEngines --- 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