[JBoss-user] Setting number of threads.

2003-11-26 Thread David Wade
How do I configure the number of threads available in Jboss. I have seen posts on doing this in Jetty on this list, but not for Jboss itself in terms of available threads for message driven Beans etc. Thanks. David --- This SF.net email is

Re: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Bill Burke
Is the JSP and SessionBean within same VM? Then just do new InitialContext(); make sure that jboss/server/xxx/conf/jndi.properties has the Provider URL commented out. This will force JBoss to connect locally rather than going over net. Maybe you have a jndi.properties file? Or maybe you hav

RE: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
Thanks Bill, Scott posted this as well. I am using that but here is the problem 1. Have a box with three virtual IP addresses we will call default, primary and secondary. 2. Launch JBoss on primary using "--host primary" with nothing running on the others. 3. Telnet to primary port 1099 reveals

Re: [JBoss-user] Shared ejb-jars, scoped ears and MDBs

2003-11-26 Thread Neal Sanche
Oh how clever, sorry the correct URL is: http://tinyurl.com/wpi1 -Neal On November 26, 2003 04:50 pm, Neal Sanche wrote: > My patch was successful, I've started an issue on the XDoclet site > for this: > > http://tinyurl.com/czcn > > I've tested this, and it works, putting my MDB beans into the

Re: [JBoss-user] Shared ejb-jars, scoped ears and MDBs

2003-11-26 Thread Neal Sanche
My patch was successful, I've started an issue on the XDoclet site for this: http://tinyurl.com/czcn I've tested this, and it works, putting my MDB beans into the JNDI tree with nice names. -Neal On November 26, 2003 04:25 pm, Neal Sanche wrote: > I finally got around to checking out why XD

Re: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Bill Burke
System.getProperty("jboss.bind.address"); Rod Macpherson wrote: I use this to get the JNDI properties and bind Globals.HOST in a static class initializer using java.net.InetAddress.getLocalHost().getHostName(). The problem is that method returns the hostname of my box NOT the hostname that JB

Re: [JBoss-user] Shared ejb-jars, scoped ears and MDBs

2003-11-26 Thread Neal Sanche
I finally got around to checking out why XDoclet doesn't honour the local-jndi-name @ejb.bean attribute when generating MDB beans. In jboss_xml.xdt the generation section doesn't do anything with it, so effectively it can't generate the parameter without a patch. I'm currently writing such a p

Re: [JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-26 Thread Mike Lindsey
I'm not using mod_jk2. Sacha Labourey wrote: Rémy posted a messsage recently on tomcat-dev: there seem to be a bug in the latest mod_jk2 release. Can you try a mod_jk (release 1.xxx) instead? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Linds

RE: [JBoss-user] RE: Classloader issues

2003-11-26 Thread Rod Macpherson
We do not use WEB-INF/lib or WEB-INF/classes to avoid this. Instead we share jars across all tiers and stipulate what jar uses what in the Class-Path for each jar we assemble. We are guaranteed that there is one and only one image of a class in the whole system and, the class loader being part o

RE: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
Here's the gook. C:\ Telnet sandbox 1099 ÂÏsrâjava.rmi.MarshalledObject|ââÃÏcâ>ââIâhashlocBytestâ[BobjBytesq~âxpÃ?ÂÎurâ[BÂââÂTÎâxp)ÂÏthttp://sandbox:8083/q~q ~uq~ââÂÏsr org.jnp.server.NamingServer_Stubââxrjava.rmi.server.RemoteStubÎâââÃÃeâxrâjava.rmi.server.RemoteObjectâaâÃ

RE: [JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-26 Thread Sacha Labourey
Rémy posted a messsage recently on tomcat-dev: there seem to be a bug in the latest mod_jk2 release. Can you try a mod_jk (release 1.xxx) instead? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Mike Lindsey > Sent: mercredi, 26. novembre 2003 2

Re: [JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-26 Thread Mike Lindsey
Hrm. Not working for me. Ideas? (If the solution is glaringly simple, forgive me. I've got the flu) If I stick two jvmRoute statements in the engine block, I get this error: 10:30:41,875 INFO [MainDeployer] Starting deployment of package: file:/usr/local/jboss-3.2.2/server/test/deploy/jbos

RE: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
OK, added the code java.bind.address to the JNDI properties and now we get the IP proper IP address back but still connection refused. Again, this is only when using the --host switch and the same thing works fine when multihoming my home PC. javax.naming.CommunicationException [Root exception is

Re: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Scott M Stark
Show the gook as this is the marshalled rmi stub that the NamingContext is trying to use, and it contains the address/port the is causing the connection failure. SANDBOX:1099 is only the bootstrap port used to obtain the rmi stub. The rmi address should be the same as the --host value. -- x

[JBoss-user] RE: Classloader issues

2003-11-26 Thread Alastair Rodgers
I found the source of my problem. Thankfully I came across Scott's classloading debug sample in the Jboss 3.2 admin doc. This revealed that I did in fact have another copy of the class available to my web app - it had been unexpectedly included in a dependency jar in WEB-INF/lib even though tha

RE: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
Thanks, I will try that. All the sudden started getting this error on any machine that I try to multihome at the office. It used to work AFAIK. Works if no --host is specified, otherwise my session bean lookups generate this: 10:25:21,281 WARN [NamingContext] Failed to connect to SANDBOX:1099 jav

RE: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
Title: Message When running multihome I am getting this on all of the office machines but not on my home network: same version of JBoss, same JDK, same application works fine at home.    [NamingContext] Failed to connect to SANDBOX:1099   Ironically this used to work on this very machine. W

Re: [JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Scott M Stark
System.getProperty("jboss.bind.address") == --host value -- Scott Stark Chief Technology Officer JBoss Group, LLC Rod Macpherson wrote: I use this to get the JNDI properties and bind Globals.HOST in a static class initializer using java.net.InetA

[JBoss-user] Multihome JBoss Issue

2003-11-26 Thread Rod Macpherson
Title: Message I use this to get the JNDI properties and bind Globals.HOST in a static class initializer using java.net.InetAddress.getLocalHost().getHostName(). The problem is that method returns the hostname of my box NOT the hostname that JBoss was started with using the --host switch. Gi

Re: [JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-26 Thread Mike Lindsey
Olve Hansen wrote: On 25.11.2003 03:27 Mike Lindsey wrote: I've got apache talking to a clustered jboss setup, using mod_jk, but I cannot get the load balacing to work. I can force connections to a specific app server, but no matter what I do, I can't get the initial connection to hit a 'ran

Re: [JBoss-user] apache + mod_jk + jboss*2 = no load balancing.

2003-11-26 Thread Mike Lindsey
I'll try that today. Bob Cotton wrote: Make sure the tomcat config includes a jvmRoute="node1" in your for each of the nods. -Bob Mike Lindsey <[EMAIL PROTECTED]> writes: I've got apache talking to a clustered jboss setup, using mod_jk, but I cannot get the load balacing to work

Re: [JBoss-user] WrappedConnection problem

2003-11-26 Thread Adrian Brock
On Wed, 2003-11-26 at 16:34, Bill Burke wrote: > Actually, turning it off in transaction-service.xml has a tiny > performance improvement as well. It is a bit more than tiny since the WeakHashMap storing the debug information is a global point of contention. Regards, Adrian > > Adrian Brock wr

Re: [JBoss-user] WrappedConnection problem

2003-11-26 Thread Bill Burke
Actually, turning it off in transaction-service.xml has a tiny performance improvement as well. Adrian Brock wrote: On Sat, 2003-11-15 at 01:22, mark pope wrote: Hi, I'm passing a JDBC Connection between two stateless beans. The called bean uses it and closes its Statement and ResultSet. When

[JBoss-user] what means cluster of ejb? stateless/stateful session beans, entity beans

2003-11-26 Thread Pedro Salazar
Greetings, What means the cluster of ejb? Its behavior must differs for each type of bean, right? I put below a few more questions about the clustering of ejb: - If I put EJBs in the farm, they will be deployed in an jboss instances. Without any jboss cluster descriptors in them, the farm only

[JBoss-user] stateless session bean OR ordinary java class ? (off-topic)

2003-11-26 Thread Pedro Salazar
Greetings, I wonder what should I use for executing some business logic and call stored procedures: ordinary classes or stateless session beans? For stateless session beans it's possible to cache somewhere the datasource factory or must I lookup always for the jndi connection pool? thanks. P.S.

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Adrian Brock
On Wed, 2003-11-26 at 13:53, Alexey Loubyansky wrote: > I would think this is absolutely fine if the bean is read-only=false and > just the method is read-only=true. > If caching is the requirement then commit option A should be used. What > do you think, Adrian? > I don't see any other way to

Re: [JBoss-user] BindAddress and Remote JMS (was JMS to remote hosts doesn't work any more)

2003-11-26 Thread Adrian Brock
On Wed, 2003-11-19 at 15:36, Didi Posselt wrote: > Hi, > > Since the option --host=yourhost causes lots of problems in applications > that don't specify a host to connect to, I cannot use it for my JMS-problem. > > I figured, that everything works fine, if I drop the Attribute BindAddress > in th

[JBoss-user] RE: Classloader issues

2003-11-26 Thread Alastair Rodgers
I've found the source of my problem. Thankfully I came across Scott's classloading debug sample in the Jboss 3.2 admin doc. This revealed that I did in fact have another copy of the class available to my web app - it had been unexpectedly included in a dependency jar in WEB-INF/lib even though

Re: [JBoss-user] mdb-client-id and mdb-subscription-id

2003-11-26 Thread Adrian Brock
You need both. The client id stops other people trying to access the same subscription at the same time. Likely, you've been using anonymous client ids ID:1 or similar which won't necessarily be the same next time you restart your MDB. Regards, Adrian On Tue, 2003-11-18 at 06:15, Brian Wallis wr

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Alexey Loubyansky
I would think this is absolutely fine if the bean is read-only=false and just the method is read-only=true. If caching is the requirement then commit option A should be used. What do you think, Adrian? Adrian Brock wrote: The obvious fix would be to add what is done for no transaction in the Ent

Re: [JBoss-user] WrappedConnection problem

2003-11-26 Thread Adrian Brock
On Sat, 2003-11-15 at 01:22, mark pope wrote: > Hi, > > I'm passing a JDBC Connection between two stateless beans. The called bean uses > it and closes its Statement and ResultSet. When the method returns to the > caller I get a WrappedConnection msg on the console. Both EJBs have local > interfac

RE: [JBoss-user] Weblogic to JBoss Migration - Differences in XA and Non-XA DataSource handling (Stack Trace)

2003-11-26 Thread Adrian Brock
This method says the connection is already enlisted in a transaction and you are trying to use setAutoCommit() to change that attribute. Obviously, that is not allowed. My guess is that you already asked for the NonXA variant already in the transaction. Regards, Adrian On Fri, 2003-11-14 at 17:5

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Adrian Brock
On Wed, 2003-11-26 at 12:47, Alexey Loubyansky wrote: > Thanks for the test. > As for me, it is definitely a bug and it should work with any commit option. > read-only is currently an overloaded notion. read-only in jboss.xml > should have been better named no-lock or like that to avoid the > con

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Rafal Kedziorski
At 13:47 26.11.2003, you wrote: Thanks for the test. :) no problem. As for me, it is definitely a bug and it should work with any commit option. Would you fix this or somebody else? And will be thix fixed in 3.2.3 release? Regards, Rafal ---

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Alexey Loubyansky
Thanks for the test. As for me, it is definitely a bug and it should work with any commit option. read-only is currently an overloaded notion. read-only in jboss.xml should have been better named no-lock or like that to avoid the confusion with real read-only from jbosscmp-jdbc.xml. Rafal Kedzio

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Rafal Kedziorski
At 11:54 26.11.2003, Alexey Loubyansky wrote: Is the table updated from another application? There are no UPDATEs in the log. I wanted you to try with read-only = false for the methods that have read-only = true. o.k. I tryied this and now commit option C is working. Is this now a small "bug" o

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Alexey Loubyansky
Rafal Kedziorski wrote: At 11:54 26.11.2003, Alexey Loubyansky wrote: Is the table updated from another application? There are no UPDATEs in the log. The table was updated from JBoss thru direct SQL. I wanted you to try with read-only = false for the methods that have read-only = true. o.k

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Rafal Kedziorski
At 11:54 26.11.2003, Alexey Loubyansky wrote: Is the table updated from another application? There are no UPDATEs in the log. The table was updated from JBoss thru direct SQL. I wanted you to try with read-only = false for the methods that have read-only = true. o.k. I have missunderstand you. I

[JBoss-user] RE: Classloader issues

2003-11-26 Thread Alastair Rodgers
> app I get a ClassCastException doing PortableRemoteObject.narrow() on > the remote interface Sorry, I meant the Home interface. > -Original Message- > From: Alastair Rodgers > Sent: 26 November 2003 11:22 > To: '[EMAIL PROTECTED]' > Subject: Classloader issues > > > Hi, > > I h

Re: [JBoss-user] Optimistic locking and Commit Option A

2003-11-26 Thread Pete Beck
Aha! :-) This would explain why I am getting locking even when I'm not expecting it. Thanks guys On Tue, 2003-11-25 at 17:37, Alexey Loubyansky wrote: > The read-only is applied to the specific bean/method as defined in the > DDs. No inheritance rules. -- Peter Beck BEng (hons) MIEE GIinstIT -

[JBoss-user] Classloader issues

2003-11-26 Thread Alastair Rodgers
Hi, I have a legacy EAR which is currently deployed on JBoss 3.0.8. This contains a WAR & an EJB JAR, and the web app invokes an EJB in the EJB JAR. This has always worked fine using the UCL and with Jetty's Java2ClassLoadingCompliance set to true. However, I now need to deploy a new EAR alon

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Alexey Loubyansky
Is the table updated from another application? There are no UPDATEs in the log. I wanted you to try with read-only = false for the methods that have read-only = true. Rafal Kedziorski wrote: At 15:39 25.11.2003, Alexey Loubyansky wrote: Could you try with false? We don't try this, cause by

Re: [JBoss-user] Switch off caching ...

2003-11-26 Thread Rafal Kedziorski
At 15:39 25.11.2003, Alexey Loubyansky wrote: Could you try with false? We don't try this, cause by default all entity beans are not read-only. But we try this. We user for all our entity beans this container configuration: Standard CMP 2.x EntityBean. And we changed commit option (line 227, sta

Re: [JBoss-user] Optimistic locking and Commit Option A

2003-11-26 Thread Kevin Conner
Pete Beck wrote: Yep, we've walked that same path too. Unfortunately there are few long running transactions which need write access and these seem to screw things up. We also have long running transactions, calling potentially external applications from our workflow app, but we have chosen to re