[JBoss-user] error while connecting to Database

2003-09-24 Thread rajeshnn
Title: error while connecting to Database Hi I will try to give u as much info as possible 1) we are looking up the data source only once and keeping it in a static reference 2) getConnection is invoked from the helper class for the stateful session bean 3) the connection is stored in a m

RE: [JBoss-user] error while trying to open a new connection

2003-09-24 Thread rajeshnn
Hi I will try to give u as much info as possible 1) we are looking up the data source only once and keeping it in a static reference 2) getConnection is invoked from the helper class for the stateful session bean 3) the connection is stored in a member variable in the helper class 4) Auto commit is

Re: [JBoss-user] ejbStore() is not called

2003-09-24 Thread Yasuhiro Takahashi
I wrote wrong. (Wrong) > Here is the problem. > In stem 3(or after step3), ejbStore() of E1 is never called. (Correct) Here is the problem. In step *4* (or after step *4*), ejbStore() of E1 is never called. Thanks, Taka --- This sf.net em

[JBoss-user] ejbStore() is not called

2003-09-24 Thread Yasuhiro Takahashi
Hello, I am converting a system from Weblogic 6.1(sp3) to JBoss 3.2.1. I got a strange phenomenon about BMP Entity Bean. The process is like followings; 1. Create a entity bean by calling home.create(); 2. Set Object to by calling E1.setXXX(O1); 3. Get entity bean by calling home.findByPrima

Re: [JBoss-user] Async replication messages possible?

2003-09-24 Thread Bela Ban
Which repl are you referring to ? Session (Tomcat, Jetty) ? EJBs ? I think replis async by default. Joao Clemente wrote: Hi. (This message is in particular for Bela, but others feedback is welcome) I'm running some tests and even with a very low request rate (5 req / minute = 1 request / 12 sec)

RE: [JBoss-user] Re: [JBoss-user]ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Adrian Brock
On Wed, 2003-09-24 at 19:54, Robert Cauble wrote: > > Multiple classloaders is more restrictive when it comes to > > the security model. Classes in the same package cannot access > > package private methods if the classes are in different classloaders. > > Got it. Thanks. > > > > You can also ge

RE: [JBoss-user] Re: [JBoss-user]ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble
> Multiple classloaders is more restrictive when it comes to > the security model. Classes in the same package cannot access > package private methods if the classes are in different classloaders. Got it. Thanks. > You can also get errors when instances of the same class name > but different cla

Re: [JBoss-user] CMP, 3.2.2RC4, auto-increment

2003-09-24 Thread Dennis Gesker
Matt: Matt I still seem to be headed in the wrong direction. Below is my code as it stands now and the log entries. Am I missing something obvious? I would be very greatful if you could shed any light on where I'm going wrong. Ant seems to generate the appropriate java files and deployment des

[JBoss-user] Wacky JSP Tag Behavior

2003-09-24 Thread Rod Macpherson
Title: Message The proper method for resetting the state of a JSP tag is to re-initialize fields in doEndTag(). The proper method for releasing resources shared across all occurences of the tag (e.g., a JDBC connection) is the release() method. In a couple of instances we put our re-initiali

RE: [JBoss-user] error while trying to open a new connection

2003-09-24 Thread Adrian Brock
I just tested it with 3.2.2RC5 (same as 3.2.2RC4 for this code), it works for me. You have your resource-ref declared as Unshareable (turns off pooling)? e.g. in ejb.jar.xml Stateful test.ejb.TestStatefulSessionHome test.ejb.TestSession test.ejb.TestSessi

RE: [JBoss-user] Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Adrian Brock
On Wed, 2003-09-24 at 16:21, Robert Cauble wrote: > Thanks for your quick response. That helps a lot. > > I have a couple more questions though... > > In the parent-delegation model, as long as the class of the shared > object is present in a parent class loader of the two classes which are > sh

RE: [JBoss-user] error while trying to open a new connection

2003-09-24 Thread rajeshnn
Hi I will try to give u as much info as possible 1) we are looking up the data source only once and keeping it in a static reference 2) getConnection is invoked from the helper class for the stateful session bean 3) the connection is stored in a member variable in the helper class 4) Auto commit is

RE: [JBoss-user] Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble
Thanks for your quick response. That helps a lot. I have a couple more questions though... In the parent-delegation model, as long as the class of the shared object is present in a parent class loader of the two classes which are sharing the object, there should be no need to marshall the object

[JBoss-user] JBossSX Question

2003-09-24 Thread rickmacc
Hi, I've got a webapp deployed in a JBoss 3.2.2 server making RMI calls to some EJB's deployed in a remote JBoss 3.2.2 server. I've got method permissions on the remote EJB's and I'm trying to work through the most efficient way to maintain the correct security credentials as I make the EJB

[JBoss-user] Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Adrian Brock
On Wed, 2003-09-24 at 14:49, Robert Cauble wrote: > Can someone please point me towards some documentation which describes > the advantage of the UnifiedClassLoader model over the tree-based > class loading model? We purchased the JBoss documentation and all it > says in the administrators guide is

Re: [JBoss-user] ClassCircularityError-QueuedPessimisticEJBLock$TxLock

2003-09-24 Thread Robert Cauble
Can someone please point me towards some documentation which describes the advantage of the UnifiedClassLoader model over the tree-based class loading model? We purchased the JBoss documentation and all it says in the administrators guide is that “JBoss 3.x employs a new class loading archi

Re: [JBoss-user] RE: method-intf tag should be one of: 'Home', 'Remote', 'LocalHom e', 'Local

2003-09-24 Thread Adrian Brock
On Wed, 2003-09-24 at 10:49, Amit Ashok wrote: > Hi All , > As per MethodMetaData in Jboss method-intf tag is fully > supported > my ejb-jar.xml has method-intf tag . and it uses Remote as the > attribute but while deploying I always get the error message >

RE: [JBoss-user] Exception Sorter Information

2003-09-24 Thread Adrian Brock
On Wed, 2003-09-24 at 12:49, Ricardo Coutinho wrote: > Hi Adrian, > > I downloaded 3.2.2rc4 and it showed the problem :) Thanks a lot. > Working great now. > > Do you have an idea of when 3.2.2 will be finalised and released? I > prefer the approach to the > > As always, it will be released w

Re: [JBoss-user] Application is hanging

2003-09-24 Thread Adrian Brock
If it is a hang press ctrl-\ or kill -3 {jboss_pid} to get a threaddump. This should tell you where it is hanging. Regards, Adrian On Wed, 2003-09-24 at 11:42, Jon Haugsand wrote: > A possible dead lock in our application. Shouldn't this be detected? > And since everything runs in the same trans

RE: [JBoss-user] error while trying to open a new connection

2003-09-24 Thread Adrian Brock
Again you'll have to give me some information. Where is getConnection() invoked and where do you store the connection? What is done between getting the connection and the commit()? Is this a StatefulSessionBean? What is the deployment descriptor for the resource-ref? What does the following return

Re: [JBoss-user] Bad SQL generated for Sybase 12.0

2003-09-24 Thread Adrian Brock
You can limit the ORs generated using the on the . Regards, Adrian On Wed, 2003-09-24 at 11:01, Jonathan.O'[EMAIL PROTECTED] wrote: > Running JBoss 3.0.6, running a finder on a entity bean, JBoss generates a > load query like: > select field1, field2, field3 from MY_TABLE where ID = 1 or ID = 2

RE: [JBoss-user] Exception Sorter Information

2003-09-24 Thread Ricardo Coutinho
Title: RE: [JBoss-user] Exception Sorter Information Hi Adrian, I downloaded 3.2.2rc4 and it showed the problem :) Thanks a lot. Working great now. Do you have an idea of when 3.2.2 will be finalised and released? I prefer the approach to the Ricardo > Ricardo Coutinho > Software Engi

[JBoss-user] Application is hanging

2003-09-24 Thread Jon Haugsand
A possible dead lock in our application. Shouldn't this be detected? And since everything runs in the same transaction context, I cannot think of any reason for it: 12:19:59,720 WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=[.100078.] 12:19:59,720 WARN [AbstractInstanceC

[JBoss-user] RE: method-intf tag should be one of: 'Home', 'Remote', 'LocalHom e', 'Local

2003-09-24 Thread Amit Ashok
Hi All , As per MethodMetaData in Jboss method-intf tag  is fully supported my ejb-jar.xml has method-intf tag . and it uses Remote as the attribute but while deploying I always get the error message  method-intf tag should be one of: 'Home', 'Remote', 'LocalHome', 'Local.

[JBoss-user] Bad SQL generated for Sybase 12.0

2003-09-24 Thread Jonathan . O'Connor
Running JBoss 3.0.6, running a finder on a entity bean, JBoss generates a load query like: select field1, field2, field3 from MY_TABLE where ID = 1 or ID = 2 or ID = 3 ... Normally this code is fine, however, the finder happens to find more than 250 rows, and Sybase ASE12.0 does not like where c