Re: [JBoss-user] Number of active EJBs

2003-11-12 Thread Adrian Brock
On Wed, 2003-11-12 at 17:39, Podgaetsky, Genady wrote: > Hi > I'm trying to get started with EjB on JBoss and wondering can I get a > number of active EJB's? > I looked at the JMX console and saw no details under > jndiName=EJBName,service=EJB > Can anyone elaborate on this? http://localhost:8080/

Re: [JBoss-user] Load Balancing & Failover For JMX RMIAdapter - Solved - But One More Thing...

2003-11-12 Thread Adrian Brock
Hi, You will find an example for load balancing an MBean in the jmx tests in the testsuite of 3.2.2 There is now a generic HA proxy factory extending the one described in Chapter 2 of the admin docs. To avoid your particular problem, you'll need something similar to the clean shutdown interceptor

Re: [JBoss-user] Commit option C BIG PROBLEM with 3.2.2 final release

2003-11-12 Thread Adrian Brock
On Wed, 2003-11-12 at 21:55, Boulatian, Misak wrote: > Hi all, > > I've just downloaded the latest release 3.2.2. The release 3.2.1 had a > problem with commit option c unable to passivate due to ctx lock. I've > tried to use 3.2.2 to see if this problem is fixed. It seems like it > got worse. One

[JBoss-user] How to develop Weblogic Startup Class like feature in JBoss 3.2? Please Help

2003-11-12 Thread Sasidharan, Manoj
Hello All, I am desperately looking for some help in developing a JBoss Mbean to solve our application startup logic issue. We are moving from Weblogic 7.0 to JBoss 3.2. So looking for some way to implement the Weblogic Startup Class functionality in JBoss. Any help on this would be highly appre

[JBoss-user] XMLLoginConfig doesn't clear JaasSecurityManager cache when redeployed

2003-11-12 Thread Chris Bonham
JBoss 3.2.2 final Windows XP Pro SP1 Sun JDK 1.4.1_04 I've implemented a stackable SecurityConfig bean as described chapter 8 of the JBoss documentation and added as Patch [ 828977 ]: http://sourceforge.net/tracker/?func=detail&aid=828977&group_id=22866&atid=376687 I've included the implementati

Re: [JBoss-user] EJB not bound / Fail to lookup MEJB (JSR-77)

2003-11-12 Thread Scott M Stark
The jsr77 MEJB is not deployed by default in 3.2.2. Its sitting in the jboss-3.2.2/docs/examples/jmx/ejb-management.jar so copy that to the deploy directory. -- Scott Stark Chief Technology Officer JBoss Group, LLC Mariano Kamp wrote: -BEGIN PG

Re: [JBoss-user] JNDIView Classloading deadlock?

2003-11-12 Thread Scott M Stark
Deadlock is not going to produce 100% cpu usage, and I see no class loading going on in this dump. The JNDIView is recursing resolving child contexts and is 519 deep. I doubt you actually have that nested a namespace so there must be a cycle in the JNDI tree that is causing the looping. --

[JBoss-user] Re: Problem with SQL query for MySQL

2003-11-12 Thread Paul Ekeland
sorry, my mistake. I pasted the corrected SQL query. The generated one does not have a space between the table name and the opening parenthesis "(", as you can see: "CREATE TABLE user(user_id INTEGER NOT NULL,login VARCHAR(250) BINARY, password_ VARCHAR(250) BINARY, first_name VARCHAR(250) BINA

[JBoss-user] EJB not bound / Fail to lookup MEJB (JSR-77)

2003-11-12 Thread Mariano Kamp
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, after reading this: http://www.onjava.com/pub/a/onjava/2002/03/27/ jsr77.html?page=2 I wanted to run the following code, but with no success so far: log("started.\n"); Properties p = new Properties();

[JBoss-user] Commit option C BIG PROBLEM with 3.2.2 final release

2003-11-12 Thread Boulatian, Misak
Hi all,I've just downloaded the latest release 3.2.2. The release 3.2.1 had a problem with commit option c unable to passivate due to ctx lock. I've tried to use 3.2.2 to see if this problem is fixed. It seems like it got worse. One thing I noticed is with commit option c jboss returns or de

Re: [JBoss-user] error in cvs tree

2003-11-12 Thread Ionel GARDAIS
What is the -Pd option for ? I do a full co and it worked. ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This SF.Net ema

Re: [JBoss-user] error in cvs tree

2003-11-12 Thread Juha Lindfors
cvs update -Pd ? On Wed, 12 Nov 2003, Ionel GARDAIS wrote: > Well, > I've just updated for the n'th time the jboss-head and > I get the same error. > > Should I try with a clean checkout ? > > ___ > Do You Yahoo!? -- Une adresse @yahoo.fr g

[JBoss-user] error in cvs tree

2003-11-12 Thread Ionel GARDAIS
Well, I've just updated for the n'th time the jboss-head and I get the same error. Should I try with a clean checkout ? ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --

[JBoss-user] Jetty Thread Count: Recommendations?

2003-11-12 Thread Peter Luttrell
Each of our servers handles roughly 50k jsp pages + 450k other files each day. We're using JBoss3.2.1 + Jetty 4.2.9. Does anyone have a recommendation as to how many threads we should allow Jetty to have? We've got it currently set to the default (100), but periodicly we're running out of threads w

Re: [JBoss-user] Load Balancing & Failover For JMX RMIAdapter - Solved - But One More Thing...

2003-11-12 Thread Nicholas
I figured out what I was doing wrong after some drifting through the source code. Anyways, now it load balances fine. (Instead of sourceObject.getClass(), I used org.jboss.jmx.adaptor.rmi.RMIAdaptor.class.) However, I observed that when I tried to test the failover by stopping one of my servers,

[JBoss-user] Jetty Thread Count: Recommendations?

2003-11-12 Thread Peter Luttrell
Each of our servers handles roughly 50k jsp pages + 450k other files each day. We're using JBoss3.2.1 + Jetty 4.2.9. Does anyone have a recommendation as to how many threads we should allow Jetty to have? We've got it currently set to the default (100), but periodicly we're running out of threa

Re: [JBoss-user] error in cvs tree

2003-11-12 Thread Juha Lindfors
It worked for me today. -- Juha On Wed, 12 Nov 2003, Ionel GARDAIS wrote: > hi, > > it's been a few days since the jboss-head build fails > because of this error : > > BUILD FAILED > file:C:/java/jboss/varia/build.xml:539: Deployment > descriptor: > C:\java\jboss\varia\output\resources\loadbala

[JBoss-user] error in cvs tree

2003-11-12 Thread Ionel GARDAIS
hi, it's been a few days since the jboss-head build fails because of this error : BUILD FAILED file:C:/java/jboss/varia/build.xml:539: Deployment descriptor: C:\java\jboss\varia\output\resources\loadbalancer\web.xml does not exist. It seems that the loadbalancer directory is not in the src\resou

[JBoss-user] REPOST: Can an ear be used in user-service.xml MBeans?

2003-11-12 Thread Sasidharan, Manoj
Hello All, Is it possible to use an ear file to create a custom MBean in JBoss 3.2.x (*-service.xml)? Thanks in advance for your time. Best Regards MS --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn fir

[JBoss-user] How to write a custom MBean??

2003-11-12 Thread Sasidharan, Manoj
Hello All, I am looking for some help on writing a custom MBean for JBoss 3.2.x. Can somebody please help. Any source/suggestions would be highly appreciated. Thanks in advance for your help. rgds MS --- This SF.Net email sponsored by: Apach

[JBoss-user] Load Balancing & Failover For JMX RMIAdapter

2003-11-12 Thread Nicholas
I am trying to set up a cluster of MBean services where we have a set of custom MBeans. I would like to use load balancing and failover for the MBean clients, but it I realize that jmx/rmi/RMIAdaptor is not "HA ready". (Using 3.2.1, 3.2.2 and 3.2.3RC1) Reviewing the docs, I tried to implement thi

[JBoss-user] upgrade from jboss 2.2/tomcat 3.3 to jboss 3.2.2

2003-11-12 Thread C King
I have a web application that was setup 3 years ago on Windows NT using Apache 1.3.9 as the web server and Jboss 2.2 integrated with Tomcat 3.2.1 for the JSPs, servlets, and EJBs on JDK 1.3.  The database server is Sybase Adaptive Server 12.5 on Windows NT.   I am attempting to upgrade the web/app

RE: [JBoss-user] ROOT.war

2003-11-12 Thread Robert Cauble
Sorry - I guess I didn't look hard enough. > -Original Message- > From: [EMAIL PROTECTED] [mailto:jboss-user- > [EMAIL PROTECTED] On Behalf Of Scott M Stark > Sent: Wednesday, November 12, 2003 11:05 AM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] ROOT.war > > The context-root jbos

Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Alexey Loubyansky
No, it doesn't. In fact, read-only fields are not included in neither INSERT nor UPDATE. But that does not help you, probably. Marek Lange wrote: Alexey Loubyansky schrieb: You have no other choice than initializing the fields in the ejbCreate. Not all databases allows you to skip values in IN

Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Marek Lange
Alexey Loubyansky schrieb: You have no other choice than initializing the fields in the ejbCreate. Not all databases allows you to skip values in INSERT. Thanks for your answer Alex, I did it this way as there seemed to be no better solution. Setting db default values does not make sense in EJB t

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Alexey Loubyansky
Pedro Salazar wrote: On Wed, 2003-11-12 at 16:30, Alexey Loubyansky wrote: The store() is called each time when the synchronization should occur according to the spec. The question is when and why the synchronization occurs? Why is that the JBOSS is requiring synchronization? Has the cluster

Re: [JBoss-user] Spurious fields in the SQL Insert of a EJB 2.0 bean with One-to-One relations

2003-11-12 Thread Percy Christian
Thanks again for your help. Indeed that doctype definition is missing! I will add it and try the key trick and report later on the result Thanks again Christian From: Alexey Loubyansky <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Spurious fields

[JBoss-user] Number of active EJBs

2003-11-12 Thread Podgaetsky, Genady
Hi I'm trying to get started with EjB on JBoss and wondering can I get a number of active EJB's? I looked at the JMX console and saw no details under jndiName=EJBName,service=EJB Can anyone elaborate on this? Thanks, Genady NOTICE: This communication contains information which may be prop

Re: [JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Alexey Loubyansky
Marek Lange wrote: I have defined some default values in my database. They should be used when a table record is inserted and the corresponding field is missing in the ejb call. This was my understanding of doing this with ejbCreate(): If I want the default value to be used, the record is inser

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Pedro Salazar
On Wed, 2003-11-12 at 16:30, Alexey Loubyansky wrote: > The store() is called each time when the synchronization should occur > according to the spec. > The question is when and why the synchronization occurs? Why is that the JBOSS is requiring synchronization? Has the cluster option have anythi

Re: [JBoss-user] ROOT.war

2003-11-12 Thread Scott M Stark
The context-root jboss-web.xml element discussed (I guess too briefly) in chap 9 is the answer: The context-root element allows one to specify the prefix under which web application is located. This is only applicable to stand-alone web application deployment as a WAR file. Web applications inclu

RE: [JBoss-user] server vs client Sun VM

2003-11-12 Thread Yates, Danny
Title: Message Putting:     "server vm" "client vm" site:java.sun.com   into Google provides some useful points to start with.   -- Danny Yates -Original Message-From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: 12 November 2003 16:36To: [EMAIL PROTECTED]Subject: [J

RE: [JBoss-user] optimize question

2003-11-12 Thread Yates, Danny
I think you are mis-reading the documentation. My (maybe incorrect) understanding is that commit option A causes the instance to be cached inside JBoss between uses (which is what your quote says). This corresponds with the original poster's requirements. -- Danny Yates -Original Message--

RE: [JBoss-user] ROOT.war

2003-11-12 Thread Yates, Danny
Title: Message Have you typed "JBoss ROOT.war" into Google?   You need to either:   a) Add a JBoss-specific descriptor (jboss-web.xml) to your WAR file which describes the context root ("/"), or b) Package your WAR inside an EAR and follow the EAR spec for specifying the context root   --

Re: [JBoss-user] optimize question

2003-11-12 Thread Alexey Loubyansky
You are correct. Just read the comments from the spec Olve posted. Brian McSweeney wrote: I must say, I understood it to be the total opposite. I thought commit option A requires the least number of db lookups because it's all in the jboss cache. Please correct me if I am wrong. This means that

[JBoss-user] ROOT.war

2003-11-12 Thread Robert Cauble
If I take jboss 3.2.2 out-of-the-box and rename server/default/deploy/jmx-console.war to ROOT.war and I  try going to the url http://localhost:8080 I get a “HTTP Status 500 – No Content configured to process this request” response.   I can then go to http://localhost:8080/ROOT and it wor

[JBoss-user] server vs client Sun VM

2003-11-12 Thread Brian McSweeney
Sorry if this is a bit off topic,   But does anyone have experience with running jboss using the sun jvm in client vs server mode.   I presume I should be running in server mode, but I’m wondering if anyone knows if there is a performance difference. I’m using jdk1.4.2     Thanks,

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Alexey Loubyansky
The store() is called each time when the synchronization should occur according to the spec. Pedro Salazar wrote: On Wed, 2003-11-12 at 14:07, Alexey Loubyansky wrote: It should be the same in 3.2.2 I may have understood it wrong but do you mean that entity beans CMP always call the store()

RE: [JBoss-user] optimize question

2003-11-12 Thread Brian McSweeney
I must say, I understood it to be the total opposite. I thought commit option A requires the least number of db lookups because it's all in the jboss cache. Please correct me if I am wrong. >This means that the commit-option a is the one requiring most DB >lookups. We switched from A to B and n

[JBoss-user] [CMP] using db default values when inserting record with entity bean

2003-11-12 Thread Marek Lange
I have defined some default values in my database. They should be used when a table record is inserted and the corresponding field is missing in the ejb call. This was my understanding of doing this with ejbCreate(): If I want the default value to be used, the record is inserted via an ejbCreat

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Pedro Salazar
On Wed, 2003-11-12 at 14:07, Alexey Loubyansky wrote: > It should be the same in 3.2.2 > I may have understood it wrong but do you mean that entity beans CMP always call the store() to do some business code even the synchronization by container won't occur, and creating a cpu waste time like a po

Re: [JBoss-user] optimize question

2003-11-12 Thread Olve S. Hansen
[EMAIL PROTECTED] wrote: Hi all, I have modifieed my beans as follows in the deployment descriptor (jboss.xml): [snip] I also switched to commit option 'A', because the container is the only application modifying the database data: CMP 2.x and Cache A Look at the

Re: [JBoss-user] optimize question

2003-11-12 Thread Rafal Kedziorski
hi, I think, You have to change 600 -> means 600 seconds which is defined by default in standardjboss.xml. Regards, Rafal At 15:36 12.11.2003, [EMAIL PROTECTED] wrote: Hi all, I have modifieed my beans as follows in the deployment descriptor (jboss.xml): Relation Relation

Re: [JBoss-user] Deployment warning on jboss 3.2.2RC3

2003-11-12 Thread Pedro Salazar
On Wed, 2003-08-27 at 11:23, Christofer Dutz wrote: > I have found the solution to my deployment warnings and > load-balancing problems. > > I simply forgot to set the configuration-name to "Clustered CMP 2.x EntityBean" > > I could punch myself for this. Now everythng is working fine. > Now I

[JBoss-user] optimize question

2003-11-12 Thread harm
Hi all, I have modifieed my beans as follows in the deployment descriptor (jboss.xml): Relation Relation get* true I also switched to commit option 'A', because the container is the only application modifying the database data: CMP 2.x a

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Alexey Loubyansky
It should be the same in 3.2.2 Pedro Salazar wrote: On Wed, 2003-11-12 at 12:23, Alexey Loubyansky wrote: It is called but the synchronization does not occur, right? Till the 3.2.2 it was not easy to avoid this. I'll look at it. Alexey, I tried on 3.2.1 but since you have referred that issue

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Pedro Salazar
On Wed, 2003-11-12 at 12:23, Alexey Loubyansky wrote: > It is called but the synchronization does not occur, right? > Till the 3.2.2 it was not easy to avoid this. I'll look at it. Alexey, I tried on 3.2.1 but since you have referred that issue I'll try the 3.2.2. -- -PS -

Re: [JBoss-user] (no subject)

2003-11-12 Thread Alexey Loubyansky
[EMAIL PROTECTED] wrote: Hi all, I have been following the thread started by Pedro Salazar. jboss.xml: CorrectionFile CorrectionFile True Am I correct in the following assumption: By default this entity bean has a transaction

[JBoss-user] (no subject)

2003-11-12 Thread harm
Hi all, I have been following the thread started by Pedro Salazar. jboss.xml: CorrectionFile CorrectionFile True Am I correct in the following assumption: By default this entity bean has a transaction-type of: "Required". Wh

Re: [JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Alexey Loubyansky
It is called but the synchronization does not occur, right? Till the 3.2.2 it was not easy to avoid this. I'll look at it. Pedro Salazar wrote: Greetings, Why is that my entity beans are always calling the ejbStore() (I put there a print message to watch) when I'm not updating none of them? I eve

[JBoss-user] log analyse

2003-11-12 Thread konf
Hallo, what do you use for log analysing in JBoss? Is there something in java or it is better to use webalizer? Thanks, Jiri --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest development

[JBoss-user] Entity beans (CMP) are always calling ejbStore()

2003-11-12 Thread Pedro Salazar
Greetings, Why is that my entity beans are always calling the ejbStore() (I put there a print message to watch) when I'm not updating none of them? I even put the jboss.persistence the tag read-only to "true"!!! @jboss.persistence * datasource="java:/OracleDS" * datasource-mapping="Oracle9

Re: [JBoss-user] Spurious fields in the SQL Insert of a EJB 2.0 bean with One-to-One relations

2003-11-12 Thread Alexey Loubyansky
Percy Christian wrote: Thanks for your kind support. Here is the insert SQL INSERT INTO CONTACT (CONTACT_ID, NAME, ADDRESS, TEL1, TEL2, TEL3, GSM, FAX, EMAIL, URL, IBAN_CODE, BIC, COMMENTS, CREATION_DATE, LOCALITY_ID, Manufacturer_contact) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?

Re: [JBoss-user] Problem with SQL query for MySQL

2003-11-12 Thread Alexey Loubyansky
As far as I remember, Rafal's problem was "no space after table name". What's your problem? I just executed your DDL in MySql w/o problems. Paul Ekeland wrote: Hello, I have exactly the same problem as Rafal, but with the following JBoss-generated query: "CREATE TABLE user (user_id INTEGER NOT

[JBoss-user] Can an ear be used for -service.xml MBeans?

2003-11-12 Thread Sasidharan, Manoj
Hello All,, Is it possible to use an ear file to create a custom MBean in JBoss 3.2.x (-service.xml)? Please advice. Thanks in advance and Best Regards MS --- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn

[JBoss-user] RE: Virtual Directory creation for Jboss-Done

2003-11-12 Thread Ivaturi,Srinivas
Hi Scott Thanks for your Help and I am able to create Virtual Directory and access required. I have posted the same in several different forums you are the only one to reply my question. (Jboss, JavaRanch) Thanks Srinivas Ivaturi --- This

Re: [JBoss-user] 3.2.3RC1 available

2003-11-12 Thread Phil Shrimpton
On Wednesday 12 November 2003 04:15, Scott M Stark wrote: Hi, > Dec 1 is the target date. Super, thanks Phil -- 9:13am up 64 days, 11:23, 1 user, load average: 0.43, 0.28, 0.19 ICQ: 760757 | AIM: pjshrimpton | Y!: pjshrimpton | [EMAIL PROTECTED]

Re: [JBoss-user] MORE: PostgreSQL and NOT NULL integer fields

2003-11-12 Thread Mykola A. Nickishov
On Fri, Oct 31, 2003 at 03:31:45PM -0200, Ivens Porto wrote: > Doing more tests I came to a situation that I cannot get out. > > When creating a bean on the N side of the relation I'm getting the > exception: > > java.sql.SQLException: ERROR: ExecInsert: Fail to add null value in not > null at

Re: [JBoss-user] Spurious fields in the SQL Insert of a EJB 2.0 bean with One-to-One relations

2003-11-12 Thread Percy Christian
Thanks for your kind support. Here is the insert SQL INSERT INTO CONTACT (CONTACT_ID, NAME, ADDRESS, TEL1, TEL2, TEL3, GSM, FAX, EMAIL, URL, IBAN_CODE, BIC, COMMENTS, CREATION_DATE, LOCALITY_ID, Manufacturer_contact) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) And yes i