Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread Peter Shillan
Hi All, Can the people who next respond to this thread *PLEASE* trim their posts? Digest format can be long enough but this is making it enormous. Many thanks, --gps E-mail is an informal method of communication and may

Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread rahul ganjoo
In our case the parallelism is a requirement. We wait for threads to return and then proceed. So ideally we would want to send messages to a q where they get consumed simultaneously. Pete Beck wrote: > I'm not entirely sure how this would be handled in JBoss, but in > principle you could send ou

Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread Pete Beck
I'm not entirely sure how this would be handled in JBoss, but in principle you could send out a bunch of JMS messages to a topic or queue. The EJB container then launches threads to process the messages through MDB instances. Therefore potentially, your code will be executed in parallel. Of cour

Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread rahul ganjoo
Hi Pete! What was being acheived using threads obviously was some parallelism...as in we wanted some actions to be executed simulataneously. Now I have not worked with MDBs,JMS etc yet. Are you suggesting using MDBs its possible to acheive the same and avoid violating the spec? Any ellaboration is

Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread Pete Beck
; > Mob: +353 86 824 9736 > > Fax: +353 1 873 3612 > > > > "rahul ganjoo" <[EMAIL PROTECTED]> > > Sent by: [EMAIL PROTECTED] > > 15.10.2002 13:46 > > Please respond to jboss-user > > > > > > To: [EMAIL PROTECTED] &g

Re: [JBoss-user] Strange Problem on Linux

2002-10-17 Thread Pete Beck
I think there is a very simple solution to this which is much safer. Instead of triggering threads off in your class, move the thread body into a MDB and then simply send several messages from your session bean. The MDB will enable your code to run asynchronously which is probably the effect you

Re: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread Michael Bartmann
>I am looking forward to some good design practices on Worker Thread >examples. > >TIA, >Saroj > > > > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] On Behalf Of Marius >Kotsbak >Sent: Saturday, October 12, 2002 3:00 AM >

Re: RE: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread rahul ganjoo
Thanks Dude,I appreciate the help.. funnily enough we got it to work somehow though the design needs to change... - Original Message - From: "Geer, Benjamin" <[EMAIL PROTECTED]> Date: Wednesday, October 16, 2002 2:53 pm Subject: RE: [JBoss-user] Strange Problem on Linux

RE: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread saroj kumar
Marius Kotsbak Sent: Saturday, October 12, 2002 3:00 AM 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/Ora

RE: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread Geer, Benjamin
rahul ganjoo wrote: > Yes Ofcourse the EJB spec doesnt recommend threading > in EJBs... It specifically *prohibits* threading. Section 24.1.2 of the EJB 2.0 spec says: "The enterprise bean must not attempt to manage threads. The enterprise bean must not attempt to start, stop, suspend, or resum

RE: [JBoss-user] Strange Problem on Linux

2002-10-16 Thread Geer, Benjamin
rahul ganjoo wrote: > Yes Ofcourse the EJB spec doesnt recommend threading > in EJBs... Section 24.1.2 of the EJB 2.0 spec says: An enterprise Bean must not use thread synchronization primitives to synchronize execution of multiple instances. --

Re: [JBoss-user] Strange Problem on Linux

2002-10-15 Thread rahul ganjoo
gt; > > To: [EMAIL PROTECTED] > cc: > Subject:Re: [JBoss-user] Strange Problem on Linux > > Guys any help with this would be much appreciated. > I am repeating the scenario here: > Environment: Jboss 3.0.3 ,Red hat Linux 7.2 > >

Re: [JBoss-user] Strange Problem on Linux

2002-10-15 Thread Jonathan . O'Connor
ECTED]> Sent by: [EMAIL PROTECTED] 15.10.2002 13:46 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject: Re: [JBoss-user] Strange Problem on Linux Guys any help with this would be much appreciated. I am repeating the scenario here: Environment: Jbos

Re: [JBoss-user] Strange Problem on Linux

2002-10-15 Thread rahul ganjoo
ead.run > (AbstractDeploymentScanner.java:202) > > "Thread-3" daemon prio=1 tid=0x0x4d483d80 nid=0x5d9 waiting on monitor > [4e123000..4e12386c] > at java.lang.Object.wait(Native Method) > - waiting on <0x44c52c70> (a java.util.TaskQueue) >

RE: [JBoss-user] Strange Problem on Linux

2002-10-14 Thread saroj kumar
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=1 tid=0x0x80b1748 nid=0x5cf waiting on monitor [4c4c1000..4c4c186c] at java.lang.Object.wait(Native Method) - waiting on <0x44afa740> (a java.lang.ref.Reference$Lock)

RE: [JBoss-user] Strange Problem on Linux

2002-10-12 Thread Bill Burke
tsbak > 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

Re: [JBoss-user] Strange Problem on Linux

2002-10-12 Thread Alex Loubyansky
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 i

Re: [JBoss-user] Strange Problem on Linux

2002-10-11 Thread Marius Kotsbak
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 w