RE: [JBoss-user] JBoss Clustering
Yes, this is a problem on recent JBoss version (or more accuratly, the doco doesn't reflect this recent change). You need to change the farm MBean definition: Add a line: attribute name=Deployerjboss.system:service=MainDeployer/attribute Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Mokas Vassilis ([EMAIL PROTECTED]) Envoye : mercredi, 23 octobre 2002 16:22 A : [EMAIL PROTECTED] Objet : [JBoss-user] JBoss Clustering Hi, I am trying to configure JBoss clustering. I am following the instructions from the documentation (JBoss clustering) but when I start JBoss an exception (sax.parser.) is thrown saying that an attribute Deployer cannot be found. (I think it is about farm-service). But I cannot find any Deployer attribute in the documentation. Any ideas for help? Vassilis --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JNDI problem on Redhat 7.3 and JBoss 3.0.2
Do you have any stacktrace to show? thank's. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Jonathan.O'[EMAIL PROTECTED] Envoye : mercredi, 23 octobre 2002 11:17 A : [EMAIL PROTECTED] Objet : [JBoss-user] JNDI problem on Redhat 7.3 and JBoss 3.0.2 Folks, Has anyone seen any problems with Redhat Linux 7.3 and JBoss? We recently installed Redhat 7.3 on a test box. We installed JBoss 3.0.2 on it and added our EAR. We can connect to our application via the web interface, including the jmx-console. The application works. But, when we try running our JUnit tests, we always fail to get a JNDI connection. We have tried connecting locally as well as remotely. It makes no difference. Does anyone know what we are doing wrong? We have put Windows 2000 on instead and our setup worked fine. Finally, we have our app and JBoss 3.0.0 running with no problems on Redhat Linux 6.2 Can anyone suggest a fix? Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBoss Clustering
Thanks. I add this attribute and the deployment was fine. My client is able to lookup EJB, finds its HomeInterface, but when I call create() method of the HomeInterface, I jet UnmarshalException! Any ideas? V. -Original Message- From: Barlow, Dustin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 23, 2002 7:37 PM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] JBoss Clustering The docs are missing this line: attribute name=Deployerjboss.system:service=MainDeployer/attribute Add this and it will work.. Dustin -Original Message- From: Mokas Vassilis ([EMAIL PROTECTED]) [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 23, 2002 10:22 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBoss Clustering Hi, I am trying to configure JBoss clustering. I am following the instructions from the documentation (JBoss clustering) but when I start JBoss an exception (sax.parser.) is thrown saying that an attribute Deployer cannot be found. (I think it is about farm-service). But I cannot find any Deployer attribute in the documentation. Any ideas for help? Vassilis --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ### This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange. --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Authentification in Tomcat possible?
I want to use the LDAP Authentication Modules of Tomcat Realm className=org.apache.catalina.realm.JNDIRealm ... / The Principal should then propagated to JBoss. Is this possible (with any tricks) ? If not, can anyone show me an example of an Application in JBoss/Tomcat with authentification against LDAP? Thans in advance... Hans _ Messenger - Wer in Echtzeit kommunizieren will, lädt den MSN Messenger. Cool, kostenlos und mit 3D Emoticons: http://messenger.msn.de --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Simple Hello-World Webservice for 3.2?
I have not played too much with this example. I just got it to work for what I needed it. I used it as a reference on local interfaces. Hence I was happy to see a servlet acces an EJB through local interfaces. But, having had some experience with EJBs perhaps we can debug this together. Okay, generally there are several places where you can place your classes and I'll try and go through them all, starting with where I think it should go. There are 6 possible places that come to mind where you can put your libraries. 1.) create a lib directory in the *.EAR and re-place the manifest of the modules (*.WAR or *.WSR) with the following: --- MANIFEST.MF start --- copy below: Manifest-Version: 1.0 Class-Path: ./lib/. --- copy above MANIFEST.MF --- the . refers to the root of the ear and the lib/. refers to all files in that directory. I recommend placing all of your libraries here and keeping your modules light as this will make the classes accessible to all your modules. 2.) The second place to put it would be on the WEB-INF/lib directory of *.WAR if only your web module requires the lib. You should check this. This directory is the standar place to put your jars for the web module. 3.) Put them on the root of the web module. This will make them accessible to anyone on the net and also to your app. This is wher you would put *.jar s for applet code that needs to be downloaded by the users. 4. 5. 6) Put them in the lib directory of of either the all, default or minimal server folders of JBoss. This will make the classes in the *.jar available to all your deployed apps. NOTE: It is never a good idea to put your classes here as you make your code server dependent. You should distribute all of your libraries with your application, that way you can just drop them from one server to another. Another word of advice is to learn how to use ANT and Xdoclet, these two tools facilitate programming of EJBs. Okay, I hope this helps. - Original Message - From: Rupp,Heiko [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 23, 2002 1:11 PM Subject: RE: [JBoss-user] Simple Hello-World Webservice for 3.2? Hi, I've renamed the ear to _ear.zip so you can easily open it. Thanks Hope this helps. Yes, definitely. Now .. when I have server/all/deploy/hello.wsr with META-INF/web-service.xml: deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:xsi=http://www.w3.org/2000/10/XMLSchema-instance; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; service name=testMath provider=java:RPC parameter name=className value=hello.math/ parameter name=allowedMethods value=add/ /service /deployment Where does the hello.math class have to be ? The webservice itself gets deployed, but when calling it at http://localhost:8080/jboss-net/services/testMath I get an exception that the class 'hello.math' can not be found and Axis tells me that it has to go 'to the right place', which isn't really specific .. Thanks Heiko -- Bancotec GmbH EMail: [EMAIL PROTECTED] Calwer Str. 33 Telefon: +49 711 222 992 0 D-70173 Stuttgart Telefax: +49 711 222 992 999 --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss 3.0.3: Weird Win-Xp Startup Problem
I answered my own question and wanted to share with everyone else. Apparently, JBoss 3.0.3 pukes on startup because the path where it was installed included a '+' (plus) character. Replacing the + with an underscore fixes the problem. 3.0.2 did not exhibit this same behavior. Over and out, Christian On Wed, 16 Oct 2002, Christian Nelson wrote: Fellow JBossers, I've been using JBoss-3.0.2+Tomcat-4.0.4 for a while and it's been great. I decided to try out the new JBoss-3.0.3+Tomcat4.1.12 and I'm having this weird startup problem (se below). This is a vanilla installation too. I also have the same problem with JBoss-3.0.3+Tomcat-4.0.5. I do *not* have the problem under Windows 2000 or Red Hat Linux 7.3. I am running Windows Xp SP1. Here's the error: D:\Applications\JBoss-3.0.3+Tomcat-4.1.12\binrun === . JBoss Bootstrap Environment . JBOSS_HOME: D:\Applications\JBoss-3.0.3+Tomcat-4.1.12\bin\\.. . JAVA: D:\Applications\Java\j2sdk1.4.1\bin\java . JAVA_OPTS: -Dprogram.name=run.bat . CLASSPATH: ;D:\Applications\Java\j2sdk1.4.1\lib\tools.jar;D:\Applications\JBoss-3.0.3+Tomcat-4.1.12\bin\\run.jar === java.lang.ClassNotFoundException: org.jboss.system.server.ServerImpl at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.jboss.system.server.ServerLoader.createServer(ServerLoader.java:241) at org.jboss.system.server.ServerLoader.load(ServerLoader.java:224) at org.jboss.Main.boot(Main.java:140) at org.jboss.Main$1.run(Main.java:381) at java.lang.Thread.run(Thread.java:536) Press any key to continue . . . This seems like it's got to be something very simple... any clues? Best regards, Christian --- Christian 'xian' Nelson [EMAIL PROTECTED] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Don't ask yourself what the world needs. Ask yourself what makes you come alive, and go do that, because what the world needs is people who have come alive. -- Howard Thurman --- --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Selective directory listings configuration
Hi, I want to activate directory listings for just one particular directory of the web frontend of my application. Is this feasible? I have found that default directory listings can be activated via the configuration file JBOSS_HOME/Catalina/conf/web.xml, but I have not been able to redefine this for my particular directory. How can this be done? I am using JBoss 3.0.0 + Tomcat 4.0.3, and this is my DefaultServlet configuration: servlet servlet-namedefault/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-clas s init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet Thanks, Diego --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Form based Login failng under JBoss 3.0.3
Jonathan.O'[EMAIL PROTECTED] wrote: Folks, I'm attempting to add seurity to our application. When I use BASIC authentication it works fine. However, when I used FORM based authentication, I get sent to the error page. The strange thing is that the session contains UserPrincipal attribute org.mortbay.jetty.Auth containing the name of the person who logged in. I've set the login-config.xml in conf to use two login modules, the first is ClientLoginModule, and the next is DatabaseServerLoginModule. I've added a jboss-web.xml to my war's WEB-INF directory. The web.xml has a security-constraint and login-config etc... Is there something else I have to do over and above what I do for BASIC authentication for FORM based authentication to work? Since apparently the user is accepted, perhaps you have not given the user the role needed to get access? -- 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: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS loadbalancing in cluster using JNDI
Hi, I have set up a cluster and multiple clients connect to the same queue using multicast jndi. What I am seeing is that the master of the cluster always replies to the client and in most cases the queue on the master is then the one to which the client connects. So much so that in 50 connections, it will service almost all the connections. How can I have a more even spread of connections? -- 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... msg22408/pgp0.pgp Description: PGP signature
RE: [JBoss-user] JMS loadbalancing in cluster using JNDI
Hello, What are you trying to achieve? Do you know that there is, for now, no JMS clustering features in JBoss? I only remember of a HA-IL that Hiram commited long ago. I don't know if it is supported and what it really does. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Alwyn Schoeman Envoye : jeudi, 24 octobre 2002 12:27 A : [EMAIL PROTECTED] Objet : [JBoss-user] JMS loadbalancing in cluster using JNDI Hi, I have set up a cluster and multiple clients connect to the same queue using multicast jndi. What I am seeing is that the master of the cluster always replies to the client and in most cases the queue on the master is then the one to which the client connects. So much so that in 50 connections, it will service almost all the connections. How can I have a more even spread of connections? -- 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... --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Multimedia Design at 5$ per hour
Title: Dear Friend Dear Friend, We would like to introduce ourselves Creativeskulls, We are a new media concern having a setup of 11 high end workstations. We are looking for business partners/clients who are interested in offloading their work. Our rate is only 5 US$ for an hour of working. We have 2 master level flash certificate holders and 3 multimedia Ex. Faculty on our rolls. Our clients include Daewoo, LG India, NIIT, Modi Group (India) and now we are planning a foray in the foreign market. Please read economicaldesign.creativeskulls.com/faq.htm on the process that we follow to ensure quality, timely deliveries and economical pricing. Please visit www.creativeskulls.com/skullworks.html to see our portfolio. For further information regarding this offer please write us at [EMAIL PROTECTED] Here are some of our recent creations. Please click on the image to see a detailed view. One of our most interesting works. The photograph is of Aishwarya Rai (Miss World 1994) one of the most beautiful woman in the world. The picture that you see is made up of Approximately 10,000 individual images. Flash work is what we love to do. We have master level certificate holder from 'Brainbench' on our rolls. Our expertise in flash speaks for itself in our works. Scripting happens to be our strength. Having two ex multimedia faculty on our team gives us that edge in 3d. The samples of our work speak for themselves. We have special interest and expertise in character animation. Websites, 3d Work, Print Graphics, Corporate Presentations/Video, Flash Work, CD Rom Presentations all done at an incredible rate and incredible quality. The sample work speaks for itself. This is not a spam mail. It is a one time offer, sent to only those people, who were listed in Graphic Design sites. Just reply to us with the subject line "remove" and you will never be sent another offer mail.We did not purchase your Email id's nor do we sell any Email id's.
[JBoss-user] jboss-ql error
Hi all, I'm haveing the following error on this query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss-ql error
Signature function is signature=java.util.Collection findInPeriod( long pInDate) where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user . --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] jboss-ql error
Hello kiuma, validityStart and validityEnd are of type Date? if so, then pass in Date type parameter. alex Thursday, October 24, 2002, 4:09:16 PM, you wrote: k Signature function is k signature=java.util.Collection findInPeriod( long pInDate) k where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss-ql error
Thank you alex but now I'm a bit confused: accordin to ejb specs v2 11.2.11 Restrinctions Date and time values should use the standard java long ,illisecond value. . What does it mean? Do I have to use java.sql.Time in time values finder params ? Alex Loubyansky wrote: Hello kiuma, validityStart and validityEnd are of type Date? if so, then pass in Date type parameter. alex Thursday, October 24, 2002, 4:09:16 PM, you wrote: k Signature function is k signature=java.util.Collection findInPeriod( long pInDate) k where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JNDI problem on Redhat 7.3 and JBoss 3.0.2
Hunter, Sadly, the first thing we did was turn off the firewall. But we seem to have a fix. see next message Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 Hunter Hillegas [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 23.10.2002 17:01 Please respond to jboss-user To: JBoss User [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] JNDI problem on Redhat 7.3 and JBoss 3.0.2 Newer versions of Red Hat have a built in firewall that by default locks down most ports besides 80, 8080, 25, etc..., including most likely the port JNDI is trying to use. I would turn that off or tweak it. From: Jonathan.O'[EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 Oct 2002 10:17:18 +0100 To: [EMAIL PROTECTED] Subject: [JBoss-user] JNDI problem on Redhat 7.3 and JBoss 3.0.2 Folks, Has anyone seen any problems with Redhat Linux 7.3 and JBoss? We recently installed Redhat 7.3 on a test box. We installed JBoss 3.0.2 on it and added our EAR. We can connect to our application via the web interface, including the jmx-console. The application works. But, when we try running our JUnit tests, we always fail to get a JNDI connection. We have tried connecting locally as well as remotely. It makes no difference. Does anyone know what we are doing wrong? We have put Windows 2000 on instead and our setup worked fine. Finally, we have our app and JBoss 3.0.0 running with no problems on Redhat Linux 6.2 Can anyone suggest a fix? Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] jboss-ql error
k Thank you alex but now I'm a bit confused: k accordin to ejb specs v2 k 11.2.11 Restrinctions k Date and time values should use the standard java long ,illisecond k value. . k What does it mean? It means that dates are compared only by their millisecond values. Not by years, month, days and so on. k Do I have to use java.sql.Time in time values finder params ? No. alex k Alex Loubyansky wrote: Hello kiuma, validityStart and validityEnd are of type Date? if so, then pass in Date type parameter. alex Thursday, October 24, 2002, 4:09:16 PM, you wrote: k Signature function is k signature=java.util.Collection findInPeriod( long pInDate) k where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Port 8082
Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik
Re[3]: [JBoss-user] jboss-ql error
k Do I have to use java.sql.Time in time values finder params ? AL No. Sorry, yes. :) alex --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Port 8082
Title: Message http:/localhost:8080/jmx-console -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kazandjian ErikSent: Thursday, October 24, 2002 7:19 PMTo: jboss-user@lists. sourceforge. net (E-mail)Subject: [JBoss-user] Port 8082 Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik
RE: [JBoss-user] Port 8082
Kazandjian Erik wrote: I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? http://localhost:8080/jmx-console/ Benjamin --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
AW: Re[2]: [JBoss-user] jboss-ql error
Hi, see JBoss QuickStart.pdf = = are not allowed with dates in EJBQL, user and instead Bjoern -Ursprüngliche Nachricht- Von: Alex Loubyansky [mailto:loubyansky;ua.fm] Gesendet: Donnerstag, 24. Oktober 2002 15:21 An: kiuma Betreff: Re[2]: [JBoss-user] jboss-ql error Hello kiuma, validityStart and validityEnd are of type Date? if so, then pass in Date type parameter. alex Thursday, October 24, 2002, 4:09:16 PM, you wrote: k Signature function is k signature=java.util.Collection findInPeriod( long pInDate) k where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun .com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Port 8082
Try this: http://localhost:8080/jmx-console Kazandjian Erik wrote: Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik -- Greg Turner, JBoss Authorized Consultant Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-927-2543
Re: [JBoss-user] Port 8082
http://localhost:8080/jmx-console - Original Message - From: Kazandjian Erik [EMAIL PROTECTED] To: jboss-user@lists. sourceforge. net (E-mail) [EMAIL PROTECTED] Sent: Thursday, October 24, 2002 2:48 PM Subject: [JBoss-user] Port 8082 Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Messages sent prior to commit?
In the interest of expediting a reply to this question, I thought I might paraphrase it in more concise terms: My MDB onMessage method is posting messages to a return queue that get sent before onMessage completes (contrary to 17.3.5 of the EJB spec). Is this a known bug or am I configuring something wrong or am I misinterpreting the spec? Thanks (and please forgive my impatience), Jim On Wed, 2002-10-23 at 16:47, Jim Crossley wrote: According to section 17.3.5 or the EJB spec, a JMS message is not delivered to its final destination until the transaction commits. I'm seeing evidence to the contrary using JBoss 3.0.3. Here's my scenario: 1) JMS client posts a message to queue, Q1. The message has its JMSReplyTo property set to an instance of a TemporaryQueue, Q2. The client then blocks waiting for two messages on Q2. 2) An MDB receives the message from Q1. It's onMessage does three things: 2a) Posts a status message back to Q2 2b) Creates a CMP entity bean. 2c) Posts another message to Q2 that contains the entity bean's primary key. 3) Upon receipt of those two messages the client attempts to find the newly created entity bean. I haven't declared any special trans-attributes on any beans involved -- I assume the default is Required? My problem is that the client in step 3 occasionally cannot find the newly created bean. The client always receives the two messages within a second or so, and I'd say 80% of the time can find the new bean. While investigating the problem, I came across the quote from 17.3.5, and noticed that my client receives the first message before the entity bean gets created. According to the spec, those messages shouldn't be delivered until onMessage completes, right? Sorry for the long-winded message, but I need to know why I can't find my bean all the time. It should be there if my client gets the second message, right? Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Erroneous deadlock detected???
I have an MDB with the following pseudocode in its onMessage method: public void onMessage(Message msg) { // Entity bean = home.create(...) // bean.setX(...) // bean.setY(...) } Each of the three methods, create, setX, and setY have a trans-attribute of RequiresNew. With only one client posting a message, a deadlock detected exception is thrown when setX is invoked. How can deadlock occur when only one thread is active? Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Naming clusters tricky?
Jetty, and httpsession. Why I changed that jbossha-httpsession.sar is because the log mentioned DefaultPartition. Perhaps I should have left well enough alone and tried to make it work with that default name first, but I know I want to name it explicitly in the long term. I finally have the up to date docs so may be able to answer some questions myself. -Original Message- From: Jules Gosnell [mailto:jules;mortbay.com] Sent: Thursday, October 24, 2002 2:16 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Naming clusters tricky? HttpSession ? Jetty or Tomcat ? Jules LaBanca, Rick wrote: It seems tricky to name a jboss instance for clustering. I had to change it in several areas, but the one odd one is jbossha-httpsession.sar, inside is clusteredhttpsessionEB.jar, in that is meta-inf/jboss.xml. So I had to rejar up all of that. Or was it unnecessary? On a related topic, had anyone gotten two jboss instances on one (windows) box working with session clusters? This is what I was trying to do for test purposes, but had no luck. Rick --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun .com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Naming clusters tricky?
Hello, There is a known feature that currently prevent the partition name to be changed for http session clustering. Please keep it to DefaultPartition in the meantime. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de LaBanca, Rick Envoyé : jeudi, 24 octobre 2002 16:17 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] Naming clusters tricky? Jetty, and httpsession. Why I changed that jbossha-httpsession.sar is because the log mentioned DefaultPartition. Perhaps I should have left well enough alone and tried to make it work with that default name first, but I know I want to name it explicitly in the long term. I finally have the up to date docs so may be able to answer some questions myself. -Original Message- From: Jules Gosnell [mailto:jules;mortbay.com] Sent: Thursday, October 24, 2002 2:16 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Naming clusters tricky? HttpSession ? Jetty or Tomcat ? Jules LaBanca, Rick wrote: It seems tricky to name a jboss instance for clustering. I had to change it in several areas, but the one odd one is jbossha-httpsession.sar, inside is clusteredhttpsessionEB.jar, in that is meta-inf/jboss.xml. So I had to rejar up all of that. Or was it unnecessary? On a related topic, had anyone gotten two jboss instances on one (windows) box working with session clusters? This is what I was trying to do for test purposes, but had no luck. Rick --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun .com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com /javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Erroneous deadlock detected???
Upon re-reading this, I got confused... On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. Yes, but wouldn't the lock be released as soon as setX returns??? // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, I wouldn't think tx1 would need suspension as it has already completed, right? which it will never get, because tx1 is not commited or rollbacked yet. What event would cause the commit or rollback? I was thinking that, for a trans-attribute of RequiresNew, tx1 would be committed as soon as setX returns. Still confused, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBossMQ Perforamance
I understand what you're saying. Threading should solve this problem. Send 10 cars down your 10 car highway. I guess I would have thought that JbossMQ would already be threaded. Am I wrong? .peter -Original Message- From: Sacha Labourey [mailto:Sacha.Labourey;ml.cogito-info.ch] Sent: Thursday, October 24, 2002 10:11 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBossMQ Perforamance I don't exactly know what is happening under the cover in this case. What I am saying is that if you have a single connection that does this: 1) take a message 2) send it 3) when sent, start again to point 1) Then, independently of the bandwith, you will have a latency limit that cannot be changed, event by using a 1Tb/s link. As an analogy, imagine that what you are trying to achieve is to deliver postal letters to your central office and that: - you have only one guy that can run between the local site and the destination (i.e. one connection) - this guy only deliver one message at a time - it takes 1 hour to go to the destination and come back (i.e. latency) No matter if the car is huge or if the highway is very wide: you will only be able to transport 24 letters per day (if the guy never sleeps). To go over this number, you need to use other scheme such as streaming the messages without waiting for an ACK, etc. Hiram is your guy anyway ;) Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Luttrell, Peter Envoyé : jeudi, 24 octobre 2002 17:00 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] JBossMQ Perforamance Is there a way to reduce latency between 2 boxes connected with a 4 foot crossover cable? Seams to me that this should provide the highest throughput possible So are you basically saying that ~1500 messages per second is the fastest that jbossmq can do? Did you see my message about hanging on to the connection which can lead to 22,000 messages per second? .peter -Original Message- From: Sacha Labourey [mailto:Sacha.Labourey;ml.cogito-info.ch] Sent: Thursday, October 24, 2002 2:18 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBossMQ Perforamance And if your issue was simply because of network latency (if my memory serves, latency is the same on both type of networks)? ~1500 messages/sec = 1 message each 0.5/1ms. What is your actual network latency? Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Peter Luttrell Envoye : mardi, 22 octobre 2002 07:41 A : [EMAIL PROTECTED] Objet : [JBoss-user] JBossMQ Perforamance In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit:1250-1350 messages per second Gigabit:1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com /javavote ___
Re: [JBoss-user] Erroneous deadlock detected???
Well, it would seem to me that a ThreadLocal instance could help solve this problem. If one thread tries to acquire a lock it already owns, it ought to get it, right? If we were to apply the same semantics you describe to a simple Java class, then calling setX would always block... class C { synchronized void setX() { setY(); } synchronized void setY() { ; } } If this is really the way JBoss works, and nobody knows a good reason why it should, can someone point me to the package/class responsible for this behavior and I'll take a whack at fixing it? Thanks, Jim On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: Explanation attempt inline. Regards, Michael Bartmann Jim Crossley wrote: I have an MDB with the following pseudocode in its onMessage method: public void onMessage(Message msg) { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, which it will never get, because tx1 is not commited or rollbacked yet. We had this problem under 2.4.4 w/o deadlock detection. Problem: even the tx timeout didn't work in this case; the server locked forever... :-( } Each of the three methods, create, setX, and setY have a trans-attribute of RequiresNew. With only one client posting a message, a deadlock detected exception is thrown when setX is invoked. How can deadlock occur when only one thread is active Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Naming clusters tricky?
LaBanca, Rick wrote: It seems tricky to name a jboss instance for clustering. I had to change it in several areas, but the one odd one is jbossha-httpsession.sar, inside is clusteredhttpsessionEB.jar, in that is meta-inf/jboss.xml. So I had to rejar up all of that. Or was it unnecessary? Look at buf report #621503. Even if you change the partition name inside the jbossha-httpsession.sar, it will not work. Vlad. --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Erroneous deadlock detected???
Explanation attempt inline. Regards, Michael Bartmann Jim Crossley wrote: I have an MDB with the following pseudocode in its onMessage method: public void onMessage(Message msg) { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, which it will never get, because tx1 is not commited or rollbacked yet. We had this problem under 2.4.4 w/o deadlock detection. Problem: even the tx timeout didn't work in this case; the server locked forever... :-( } Each of the three methods, create, setX, and setY have a trans-attribute of RequiresNew. With only one client posting a message, a deadlock detected exception is thrown when setX is invoked. How can deadlock occur when only one thread is active Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] mbean mutual dependencies config for MQ
Yeah There relevant parts are in the jbossmq-service.xml. What im doing it setting up a jdbc2 pm in oracle. The attached file is working to a point... There is an issue where if you shutdown with messages on the queue. On restart it tries to load the messages from the PM to the Cache and you end up trying to write the same row back to the pm table causing an error. Ideally what I would like to see (might even do myself) is the capability to have a PM defined without a MessageCache to be used by the Cache. Im also looking at doing a HA Queue/Topic instances... but well see. -=Brian On Wed, 2002-10-23 at 17:59, David Jencks wrote: On 2002.10.23 18:15:32 -0400 Brian Towles wrote: OK i found it looks like the MessageCache only needs a reference to the CacheStore name and when its running its startService (in this case at least) it doesnt have to have the PersistenceManager started cause its the PersistenceManager itself which starts a recovery of messages from/for the Cache. So the config of the MessageCache Mbean only has to have an attribute pointing to the PMs name and not a depend in this case. kinda funky Really... Could you post an annotated service.xml file indicating the problem very specifically, I think this should be looked into and perhaps changed. thanks david jencks thx all -=Brian On Wed, 2002-10-23 at 16:32, Brian Towles wrote: The basic issue is the JDBC2 PersistenceManager then. They way it is designed it implements PersistenceManager and CacheStore. For the MessageCache MBean you define a CacheStore. And for the PersistenceManager MBean you define a MessageCache. The example for an oracle jdbc2 pm shows the MessageCache pointing to the PersistenceManager as a CacheStore. Since the jdbc2 PersistenceManager implements CacheStore this shouldnt be a problem except for the mutual mbean dependency that crops up. You cant create a second instance of the PersistenceManager with a different object name cause it would need a MessageCache as well. So the question changes to how do you use the CacheStore in the jdbc2 PersistenceManager and the jdbc2 PersistenceManager? Thanks -=Brian On Wed, 2002-10-23 at 15:30, David Jencks wrote: On 2002.10.23 16:22:12 -0400 Brian Towles wrote: Howdy all Using JBoss 3.0.2 Im trying to setup a jdbc2 persistence for MQ where both the MessageCache uses the PersistenceManager for storage of the cache. There is an example config file in the source code under messaging/src/etc/server/examples/deploy but on implementation there message cache and the persistence manager never initialize cause they are waiting on each other. I know i can nest one Mbean definition inside of another but that doesn't seem to get around the dependencies. Is there any way to do 2 mbeans dependent on each other in the configs No. One of them has to start first. If they were mutually dependent they'd both have to start first. AFAIK this is a basic property of time. Maybe you can make something else depend on the message cache so you can't send messages until it has started? Otherwise, please describe the problem you are trying to solve in more detail. thanks david jencks Thanks -=Brian --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM)
Re: [JBoss-user] JBoss 3.0.3 tomcat 4.1.12 status?
Cool, I really appreciate it. Liam Magee wrote: Hi Vincent, I haven't had a chance to look into this in the past week, but I'll try to do so in the next couple of days and get back to you. Regards, Liam. -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net] On Behalf Of Vincent Stoessel Sent: Thursday, October 24, 2002 2:37 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JBoss 3.0.3 tomcat 4.1.12 status? Hi all, Has this issue been resolved? I have a struts app (using tiles) that I am itching to try on jboss 3.0.3. Any patched or nightly builds out there? Liam Magee wrote: Hi Theo, A separate instance of Digester is loaded by the Tiles framework, through the ValidatorResourcesInitializer.initialize() method. This is what I think is causing the problem, and is what I patched with 'digester.setUseContextClassLoader(true);'. Could you send me directly your copy of jakarta-struts-1.1-b2-blank.war for me to try? My email address is [EMAIL PROTECTED] Regards, Liam. -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net] On Behalf Of Theo Harper Sent: Tuesday, October 15, 2002 3:43 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss 3.0.3 tomcat 4.1.12 Can't Deploy Web Application Hi Liam, Sorry for not getting back to you sooner. I've just tried the patched validation file and I still get the same problem when deploying jakarta-struts-1.1-b2-blank.war (after replacing framework-validation). I noticed that the Digester is first getting loaded because LoggedXmlMapper (part of the JBoss tomcat41 integration) extends Digester. If I called setUseContextClassLoader(true) on the Digester before it was used I'm sure this would help, but it seems to far down the call stack. I'm going to try hacking Digester by setting this. Theo -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net] On Behalf Of Liam Magee Sent: 14 October 2002 01:36 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBoss 3.0.3 tomcat 4.1.12 Can't Deploy Web Application Theo, did you try the commons-validation.jar patch? Did this work? Regards, Liam. --- 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.394 / Virus Database: 224 - Release Date: 10/3/2002 --- 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 -- Vincent Stoessel Linux Systems Developer vincent xaymaca.com --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Port 8082
Its much better this way, because you can have multiple instances of JBoss running on the same machine, each using a different port. The old 8082 way only allowed one JBoss console to be accessed per-machine. You could always change the port for the JMXHtmlAdaptor, which allowed multiple JBoss Servers. BTW: What are people doing to secure the jmx-console.war, while still allowing commandline access to it's functionality? For instance, if you use BASIC auth or FORM auth, that prevents you from executing calls via Ant to shutdown, correct? Jason -Original Message- From: [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]On Behalf Of Jonathan.O'[EMAIL PROTECTED] Sent: Thursday, October 24, 2002 8:38 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Port 8082 Erik, Try localhost:8080/jmx-console instead of localhost:8082. This changed from 3.0.0 to 3.0.1 (I think). Its much better this way, because you can have multiple instances of JBoss running on the same machine, each using a different port. The old 8082 way only allowed one JBoss console to be accessed per-machine. Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 Kazandjian Erik [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24.10.2002 14:48 Please respond to jboss-user To: jboss-user@lists. sourceforge. net (E-mail) [EMAIL PROTECTED] cc: Subject:[JBoss-user] Port 8082 Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Form based Login failng under JBoss 3.0.3
Thorbjorn, This was the first thing I tried, but it worked properly, when I changed the web.xml to use BASIC authentication rather than FORM based. Of course, I have checked the spelling of the role, and it is the same in both places. Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 Thorbjørn Ravn Andersen [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24.10.2002 11:02 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] Form based Login failng under JBoss 3.0.3 Jonathan.O'[EMAIL PROTECTED] wrote: Folks, I'm attempting to add seurity to our application. When I use BASIC authentication it works fine. However, when I used FORM based authentication, I get sent to the error page. The strange thing is that the session contains UserPrincipal attribute org.mortbay.jetty.Auth containing the name of the person who logged in. I've set the login-config.xml in conf to use two login modules, the first is ClientLoginModule, and the next is DatabaseServerLoginModule. I've added a jboss-web.xml to my war's WEB-INF directory. The web.xml has a security-constraint and login-config etc... Is there something else I have to do over and above what I do for BASIC authentication for FORM based authentication to work? Since apparently the user is accepted, perhaps you have not given the user the role needed to get access? -- 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: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Port 8082
Thanks It works. Erik -Original Message-From: Greg Turner [mailto:[EMAIL PROTECTED]]Sent: donderdag 24 oktober 2002 16:18To: [EMAIL PROTECTED]Subject: Re: [JBoss-user] Port 8082Try this:http://localhost:8080/jmx-consoleKazandjian Erik wrote: Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik -- Greg Turner, JBoss Authorized Consultant Tiburon Enterprise Systems http://www.tiburon-e-systems.com Box 1171 Tiburon, CA 94920 415-927-2543
RE: [JBoss-user] Naming clusters tricky?
Wow, I wouldn't have found that one easily, thanks! Now to think of workarounds. My problem is avoiding test boxes from joining a production cluster. -Original Message- From: Vladyslav Kosulin [mailto:kosulin;yahoo.com] Sent: Thursday, October 24, 2002 3:44 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Naming clusters tricky? LaBanca, Rick wrote: It seems tricky to name a jboss instance for clustering. I had to change it in several areas, but the one odd one is jbossha-httpsession.sar, inside is clusteredhttpsessionEB.jar, in that is meta-inf/jboss.xml. So I had to rejar up all of that. Or was it unnecessary? Look at buf report #621503. Even if you change the partition name inside the jbossha-httpsession.sar, it will not work. Vlad. --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBossMQ Perforamance
I don't exactly know what is happening under the cover in this case. What I am saying is that if you have a single connection that does this: 1) take a message 2) send it 3) when sent, start again to point 1) Then, independently of the bandwith, you will have a latency limit that cannot be changed, event by using a 1Tb/s link. As an analogy, imagine that what you are trying to achieve is to deliver postal letters to your central office and that: - you have only one guy that can run between the local site and the destination (i.e. one connection) - this guy only deliver one message at a time - it takes 1 hour to go to the destination and come back (i.e. latency) No matter if the car is huge or if the highway is very wide: you will only be able to transport 24 letters per day (if the guy never sleeps). To go over this number, you need to use other scheme such as streaming the messages without waiting for an ACK, etc. Hiram is your guy anyway ;) Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Luttrell, Peter Envoyé : jeudi, 24 octobre 2002 17:00 À : '[EMAIL PROTECTED]' Objet : RE: [JBoss-user] JBossMQ Perforamance Is there a way to reduce latency between 2 boxes connected with a 4 foot crossover cable? Seams to me that this should provide the highest throughput possible So are you basically saying that ~1500 messages per second is the fastest that jbossmq can do? Did you see my message about hanging on to the connection which can lead to 22,000 messages per second? .peter -Original Message- From: Sacha Labourey [mailto:Sacha.Labourey;ml.cogito-info.ch] Sent: Thursday, October 24, 2002 2:18 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBossMQ Perforamance And if your issue was simply because of network latency (if my memory serves, latency is the same on both type of networks)? ~1500 messages/sec = 1 message each 0.5/1ms. What is your actual network latency? Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Peter Luttrell Envoye : mardi, 22 octobre 2002 07:41 A : [EMAIL PROTECTED] Objet : [JBoss-user] JBossMQ Perforamance In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit:1250-1350 messages per second Gigabit:1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com /javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained
Re: [JBoss-user] Port 8082
Erik, Try localhost:8080/jmx-console instead of localhost:8082. This changed from 3.0.0 to 3.0.1 (I think). Its much better this way, because you can have multiple instances of JBoss running on the same machine, each using a different port. The old 8082 way only allowed one JBoss console to be accessed per-machine. Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 Kazandjian Erik [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 24.10.2002 14:48 Please respond to jboss-user To: jboss-user@lists. sourceforge. net (E-mail) [EMAIL PROTECTED] cc: Subject:[JBoss-user] Port 8082 Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jboss-ql again
Sorry guys, but I can't get out . * @ejb.finder * signature=java.util.Collection findInPeriod( java.util.Date pInDate) * result-type-mapping=Local * query=SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart ?1) AND (cal.validityEnd ?1) * @jboss.query * signature=java.util.Collection findInPeriod( java.util.Date pInDate) * result-type-mapping=Local * query=SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart ?1) AND (cal.validityEnd ?1) ORDER BY cal.validityEnd * 19:32:37,596 INFO [EntityContainer] Starting 19:32:37,770 ERROR [EntityContainer] Starting failed org.jboss.deployment.DeploymentException: Query method not found: findInPeriod at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:207) at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.getQueryMethods(JDBCQueryMetaDataFactory.java:163) .. .. Why ?? Please help! --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Form based Login failng under JBoss 3.0.3
Folks, I'm attempting to add seurity to our application. When I use BASIC authentication it works fine. However, when I used FORM based authentication, I get sent to the error page. The strange thing is that the session contains UserPrincipal attribute org.mortbay.jetty.Auth containing the name of the person who logged in. I've set the login-config.xml in conf to use two login modules, the first is ClientLoginModule, and the next is DatabaseServerLoginModule. I've added a jboss-web.xml to my war's WEB-INF directory. The web.xml has a security-constraint and login-config etc... Is there something else I have to do over and above what I do for BASIC authentication for FORM based authentication to work? Ciao, Jonathan O'Connor Ph: +353 1 872 3305 Mob: +353 86 824 9736 Fax: +353 1 873 3612 --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: AW: Re[2]: [JBoss-user] jboss-ql error
Then, if comparisons are expressed in millis i could do and i can't use =, = (cal.validityEnd (?1 - 1)) ??? Dannemann, Björn wrote: Hi, see JBoss QuickStart.pdf = = are not allowed with dates in EJBQL, user and instead Bjoern -Ursprüngliche Nachricht- Von: Alex Loubyansky [mailto:loubyansky;ua.fm] Gesendet: Donnerstag, 24. Oktober 2002 15:21 An: kiuma Betreff: Re[2]: [JBoss-user] jboss-ql error Hello kiuma, validityStart and validityEnd are of type Date? if so, then pass in Date type parameter. alex Thursday, October 24, 2002, 4:09:16 PM, you wrote: k Signature function is k signature=java.util.Collection findInPeriod( long pInDate) k where pInDate is date in millis. Hi all, I'm haveing the following error on th is query (jboss v3.2b) SELECT OBJECT(cal) FROM WaCalendar cal WHERE (cal.validityStart = ?1) AND (cal.validityEnd = ?1) ORDER BY cal.validityEnd cal.validityStart = ?1 at line 1 column 51 expecting one of ABS LENGTH LOCATE .. What's wrong? Thx in advance, kiuma -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun .com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user . --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] JBossMQ Perforamance
Is there a way to reduce latency between 2 boxes connected with a 4 foot crossover cable? Seams to me that this should provide the highest throughput possible So are you basically saying that ~1500 messages per second is the fastest that jbossmq can do? Did you see my message about hanging on to the connection which can lead to 22,000 messages per second? .peter -Original Message- From: Sacha Labourey [mailto:Sacha.Labourey;ml.cogito-info.ch] Sent: Thursday, October 24, 2002 2:18 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBossMQ Perforamance And if your issue was simply because of network latency (if my memory serves, latency is the same on both type of networks)? ~1500 messages/sec = 1 message each 0.5/1ms. What is your actual network latency? Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Peter Luttrell Envoye : mardi, 22 octobre 2002 07:41 A : [EMAIL PROTECTED] Objet : [JBoss-user] JBossMQ Perforamance In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit: 1250-1350 messages per second Gigabit: 1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us. --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss/Tomcat hanging on undeploy
Hi! I've noticed that JBoss (3.0.2, with Tomcat 4.0.4) seems to hang periodically when trying to undeploy an application, either as part of the shutdown process or as part of a redeploy. The problematic message seems to be: 2002-10-24 20:04:37,378 INFO [org.jboss.web.localhost.Engine] StandardWrapper[:jsp]: Waiting for 9 instance(s) to be deallocated I've seen this with both an ear (containing two war files no ejbs) and a straight war file. Any idea what's going on? I just grepped the latest source tree for fragments of that message and couldn't find anything. What is StandardWrapper, and where do I find localhost.Engine? Thanks, Jeff Schnitzer [EMAIL PROTECTED] --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Erroneous deadlock detected???
Jim Crossley wrote: Well, it would seem to me that a ThreadLocal instance could help solve this problem. If one thread tries to acquire a lock it already owns, it ought to get it, right No, the lock belongs to the tx! This is exactly the semantic you request with RequiresNew. The ThreadLocal exists, but the suspend on tx1 takes the association out of the ThreadLocal and associates a new tx2 with the thread. If we were to apply the same semantics you describe to a simple Java class, then calling setX would always block... class C { synchronized void setX() { setY(); } synchronized void setY() { ; } } If this is really the way JBoss works, and nobody knows a good reason why it should, can someone point me to the package/class responsible for this behavior and I'll take a whack at fixing it? I think there might be something to fix with your tx markup. Change RequiresNew to Requires, so the same tx will get used throughout your call. Thanks, Jim On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: Explanation attempt inline. Regards, Michael Bartmann Jim Crossley wrote: I have an MDB with the following pseudocode in its onMessage method: public void onMessage(Message msg) { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, which it will never get, because tx1 is not commited or rollbacked yet. We had this problem under 2.4.4 w/o deadlock detection. Problem: even the tx timeout didn't work in this case; the server locked forever... :-( } Each of the three methods, create, setX, and setY have a trans-attribute of RequiresNew. With only one client posting a message, a deadlock detected exception is thrown when setX is invoked. How can deadlock occur when only one thread is active Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Erroneous deadlock detected???
Jim Crossley wrote: Upon re-reading this, I got confused... On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. Yes, but wouldn't the lock be released as soon as setX returns??? Good point; you got me. :-) I'm not exactly sure about the semantics at this point; the incident I refered to in my first comment involved a nested call. This might depend on the tx markup of the outer method. Regards, Michael // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, I wouldn't think tx1 would need suspension as it has already completed, right? which it will never get, because tx1 is not commited or rollbacked yet. What event would cause the commit or rollback? I was thinking that, for a trans-attribute of RequiresNew, tx1 would be committed as soon as setX returns. Still confused, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Port 8082
I have the same behaviour, with 3.0.3... -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt On Thu, 24 Oct 2002, Kazandjian Erik wrote: Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Erroneous deadlock detected???
Hi Jim, Try adding this to server/default/conf/log4j.xml category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category And remove this from the file appender if it is there param name=Threshold value=INFO/ Run your MDB and look in server/default/log/server.log You will see where transactions start and stop [org.jboss.ejb.plugins.TxInterceptorCMT] RequiresNew should commit on the return stroke of the invocation. Regards, Adrian From: Michael Bartmann [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Erroneous deadlock detected??? Date: Thu, 24 Oct 2002 23:36:13 +0200 Jim Crossley wrote: Upon re-reading this, I got confused... On Thu, 2002-10-24 at 15:40, Michael Bartmann wrote: { // Entity bean = home.create(...) // bean.setX(...) this starts a tx1 and locks the instance bean. Yes, but wouldn't the lock be released as soon as setX returns??? Good point; you got me. :-) I'm not exactly sure about the semantics at this point; the incident I refered to in my first comment involved a nested call. This might depend on the tx markup of the outer method. Regards, Michael // bean.setY(...) this suspends the tx1 on bean temporarily, and starts a tx2, which tries to obtain the lock on the bean, I wouldn't think tx1 would need suspension as it has already completed, right? which it will never get, because tx1 is not commited or rollbacked yet. What event would cause the commit or rollback? I was thinking that, for a trans-attribute of RequiresNew, tx1 would be committed as soon as setX returns. Still confused, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Port 8082
try http://localhost:8080/jmx-console --- Joao Pedro Clemente [EMAIL PROTECTED] a écrit : I have the same behaviour, with 3.0.3... -- Joao Pedro Clemente jpcl @ rnl.ist.utl.pt On Thu, 24 Oct 2002, Kazandjian Erik wrote: Hello, I'v installed JBoss 3.0.2 and tried to connect to poret 8082 to have access to the JMX agent, but I get no response. Does anybody know what I might do wrong ? Erik --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Re: removing bean lock and it has tx set - que
Hi Alexey, This is fixed for JBoss 3.0.4 in CVS The problems fixed are: 1) CMR add/remove now gets the correct jndi context java:comp 2) the error handling for a bean activation failure has been corrected Thanks again for your testcase. Regards, Adrian From: Alexey Yudichev [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: [JBoss-user] Re: removing bean lock and it has tx set - que Date: Tue, 22 Oct 2002 09:23:35 +0300 Just checked out and compiled latest sources from branch Branch_3_0 and the problem is still there exactly as it was before. After some time (probably really after bean's passivation it cannot be removed/asdded to relations with these exceptions): 19:04:32,388 INFO [Server] JBoss Release: JBoss-3.0.4RC1 CVSTag=Branch_3_0 Here is what happened after I call remove() on bean instance SMIL that is in one-to-many relationship with SLIDE (i.e. smil consist of many slides). this SMIL was created 30 minutes ago and one SLIDE was created and added to a relationship. 2002-10-21 19:39:17,004 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadEntityCommand.SMIL] Executing SQL: SELECT date, name, title, bgcolor, accessPassword, state FROM smil WHERE (id=?) 2002-10-21 19:39:17,007 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCLoadRelationCommand.SMIL] Executing SQL: SELECT id FROM slide WHERE (SMIL_slides=?) 2002-10-21 19:39:17,018 ERROR [org.jboss.ejb.plugins.LogInterceptor] TransactionRolledbackLocalException, causedBy: java.lang.IllegalStateException: removing bean lock and it has tx set!Slide D3808080808080808080808080808180 at org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.removeRef(QueuedPessimis ticEJBLock.java:420) at org.jboss.ejb.BeanLockManager.removeLockRef(BeanLockManager.java:107) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav a:124) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce ptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:232) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13 0) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:493) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.invokeRemoveRelatio n(JDBCCMRFieldBridge.java:707) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLink s(JDBCCMRFieldBridge.java:623) at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCCMRFieldBridge.destroyRelationLink s(JDBCCMRFieldBridge.java:601) at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.clear(RelationSet.java:175 ) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.removeFromRelations(J DBCRemoveEntityCommand.java:137) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRemoveEntityCommand.execute(JDBCRemoveEnt ityCommand.java:70) at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.removeEntity(JDBCStoreManage r.java:635) at org.jboss.ejb.plugins.CMPPersistenceManager.removeEntity(CMPPersistenceManag er.java:542) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.removeEntit y(CachedConnectionInterceptor.java:431) at org.jboss.ejb.EntityContainer.remove(EntityContainer.java:507) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(EntityContainer.ja va:1173) at org.jboss.ejb.plugins.cmp.jdbc.JDBCRelationInterceptor.invoke(JDBCRelationIn terceptor.java:95) at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron izationInterceptor.java:295) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Cach edConnectionInterceptor.java:186) at org.jboss.ejb.plugins.EntityReentranceInterceptor.invoke(EntityReentranceInt erceptor.java:64) at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce ptor.java:152) at org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.jav a:107) at org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterce ptor.java:69) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:13 0) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:204) at
Re: [JBoss-user] JBossMQ Perforamance
If you are using linux on both boxes connected directly with crossover-cable you might actually use special kernel functionality for that specific setup. Have not used it myself, but it is there if you want to look... On Thu, Oct 24, 2002 at 10:00:09AM -0500, Luttrell, Peter wrote: Is there a way to reduce latency between 2 boxes connected with a 4 foot crossover cable? Seams to me that this should provide the highest throughput possible So are you basically saying that ~1500 messages per second is the fastest that jbossmq can do? Did you see my message about hanging on to the connection which can lead to 22,000 messages per second? .peter -Original Message- From: Sacha Labourey [mailto:Sacha.Labourey;ml.cogito-info.ch] Sent: Thursday, October 24, 2002 2:18 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] JBossMQ Perforamance And if your issue was simply because of network latency (if my memory serves, latency is the same on both type of networks)? ~1500 messages/sec = 1 message each 0.5/1ms. What is your actual network latency? Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Peter Luttrell Envoye : mardi, 22 octobre 2002 07:41 A : [EMAIL PROTECTED] Objet : [JBoss-user] JBossMQ Perforamance In order to ascertain if JBossMQ is capable of providing the throughput I need, i've constructed a couple of little apps to see what kind of performance i can get. Here's what i've found: 100 Megabit:1250-1350 messages per second Gigabit:1500-1600 messages per second I was hoping to see a bit better performance then this; especially a larger differential with Gigabit. 100Megabit only used about 10% of the network bandwidth (if you believe xp's network monitor) and gigabit only used at most 1.5%. Is this the best performance i can expect? What have others observed? Can anyone suggest where the bottleneck might be? Does anyone have any suggestions on what configs to tweak? All of my test code, and deployable ear is located at http://www.sharpuniverse.com/jboss/jms-performance There is a publisher and subscriber swingapps which are webstart deployed. There is also a publisher servlet. Deploy the ear and go to context: jms-performance-test for everything Here's a little more info on my tests: JBoss3.0.3 Protocal/ConnecitonFactory: OIL 100MegaBit tests: Network: several different networks all switched Server/Client boxes: Various differnt boxes runing w2k, wxp, osx and linux, various different jdks 1.4.0 - 1.4.1_01 Gigabit tests: Network: 2 boxes with crossover cable Server: MacOSX running jdk1.3.1 Client: WindowsXP running jdk1.4.1_01 .peter --- This sf.net emial is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4699841;7576301;v? http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us. --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java
Re: [JBoss-user] Messages sent prior to commit?
I would think that it would be correct behaviour. onMessage is very similar to normal programming and it is single threaded. Your onMessage cannot return unless the send on the other message has completed. All instructions in onMessage must first return or complete before onMessage can return. The above is purely based on common sense as the spec is still in my spec inbox. On Thu, Oct 24, 2002 at 08:20:35AM -0400, Jim Crossley wrote: In the interest of expediting a reply to this question, I thought I might paraphrase it in more concise terms: My MDB onMessage method is posting messages to a return queue that get sent before onMessage completes (contrary to 17.3.5 of the EJB spec). Is this a known bug or am I configuring something wrong or am I misinterpreting the spec? Thanks (and please forgive my impatience), Jim On Wed, 2002-10-23 at 16:47, Jim Crossley wrote: According to section 17.3.5 or the EJB spec, a JMS message is not delivered to its final destination until the transaction commits. I'm seeing evidence to the contrary using JBoss 3.0.3. Here's my scenario: 1) JMS client posts a message to queue, Q1. The message has its JMSReplyTo property set to an instance of a TemporaryQueue, Q2. The client then blocks waiting for two messages on Q2. 2) An MDB receives the message from Q1. It's onMessage does three things: 2a) Posts a status message back to Q2 2b) Creates a CMP entity bean. 2c) Posts another message to Q2 that contains the entity bean's primary key. 3) Upon receipt of those two messages the client attempts to find the newly created entity bean. I haven't declared any special trans-attributes on any beans involved -- I assume the default is Required? My problem is that the client in step 3 occasionally cannot find the newly created bean. The client always receives the two messages within a second or so, and I'd say 80% of the time can find the new bean. While investigating the problem, I came across the quote from 17.3.5, and noticed that my client receives the first message before the entity bean gets created. According to the spec, those messages shouldn't be delivered until onMessage completes, right? Sorry for the long-winded message, but I need to know why I can't find my bean all the time. It should be there if my client gets the second message, right? Thanks, Jim --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- 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... msg22456/pgp0.pgp Description: PGP signature
Re: [JBoss-user] JMS loadbalancing in cluster using JNDI
I have 2 members of a cluster. Both members have a testQueue. Both have the same MDB's and session beans of which none is clustered at the moment. What is happening is that when the client sends a broadcast when looking for a jndi provider (assuming one isn't specified in jndi.properties), it is always the master of the cluster that answers. I do not have a problem with this and is correct behaviour. Now I request a connectionfactory. What I would like to see is that between multiple requests for connectionfactory, the jndi provider would actually round robin between the 2 queues so that if I have 4 connections it would be 2 per server and as such load would be spread over the 2 machines. On Thu, Oct 24, 2002 at 01:26:06PM +0200, Sacha Labourey wrote: Hello, What are you trying to achieve? Do you know that there is, for now, no JMS clustering features in JBoss? I only remember of a HA-IL that Hiram commited long ago. I don't know if it is supported and what it really does. Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:jboss-user-admin;lists.sourceforge.net]De la part de Alwyn Schoeman Envoye : jeudi, 24 octobre 2002 12:27 A : [EMAIL PROTECTED] Objet : [JBoss-user] JMS loadbalancing in cluster using JNDI Hi, I have set up a cluster and multiple clients connect to the same queue using multicast jndi. What I am seeing is that the master of the cluster always replies to the client and in most cases the queue on the master is then the one to which the client connects. So much so that in 50 connections, it will service almost all the connections. How can I have a more even spread of connections? -- 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... --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ad.doubleclick.net/clk;4729346;7592162;s?http://www.sun.com/javavote ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- 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... msg22457/pgp0.pgp Description: PGP signature
[JBoss-user] Please help me! Transaction problem
Someone please help me, I have asked this question many times and still not get any answer yet! I also searched in archives but get no answer. _ 11:43:14,093 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.ja at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:380) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContainerInvoker.java:301) at org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy.java:41) at $Proxy270.setStudentData(Unknown Source) at com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java:97) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:437) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:284) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577) at org.mortbay.http.HttpContext.handle(HttpContext.java:1674) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:544) at org.mortbay.http.HttpContext.handle(HttpContext.java:1624) at org.mortbay.http.HttpServer.service(HttpServer.java:875) at org.jboss.jetty.Jetty.service(Jetty.java:541) at org.mortbay.http.HttpConnection.service(HttpConnection.java:785) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) at java.lang.Thread.run(Thread.java:536) _ Who can tell me how to deal with this? If I retry to invoke the method for some times, the method could execute successfully. So?? thanks for any help Gene _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please help me! Transaction problem
how are you creating/storing the stateful bean? one possible cause is you have one stateful bean in the action class, and multiple requests are using the same instance other than that, I think you need to provide some more info... show the code that actually creates and calls the sfsb... hth dim - Original Message - From: Gene Ge [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 25, 2002 1:55 PM Subject: [JBoss-user] Please help me! Transaction problem Someone please help me, I have asked this question many times and still not get any answer yet! I also searched in archives but get no answer. _ 11:43:14,093 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSess ionInstanceInterceptor.ja at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor .java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT. java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java: 380) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalContai nerInvoker.java:301) at org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSessionProxy .java:41) at $Proxy270.setStudentData(Unknown Source) at com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction.java :97) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:437) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:264) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl er.java:284) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577) at org.mortbay.http.HttpContext.handle(HttpContext.java:1674) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext .java:544) at org.mortbay.http.HttpContext.handle(HttpContext.java:1624) at org.mortbay.http.HttpServer.service(HttpServer.java:875) at org.jboss.jetty.Jetty.service(Jetty.java:541) at org.mortbay.http.HttpConnection.service(HttpConnection.java:785) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:200) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) at java.lang.Thread.run(Thread.java:536) _ Who can tell me how to deal with this? If I retry to invoke the method for some times, the method could execute successfully. So?? thanks for any help Gene _ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Please help me! Transaction problem
From where does EditStudentInfoAction get its session bean reference? Does it create a new one for each request, or does it create just one and try to re-use it for each request? The latter situation is guaranteed to cause the problem below. If that is not the cause, then show me your implementation of EditStudentInfoAction.execute. Steve Coy On Friday, October 25, 2002, at 01:55 PM, Gene Ge wrote: Someone please help me, I have asked this question many times and still not get any answer yet! I also searched in archives but get no answer. ___ __ 11:43:14,093 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: Application Error: tried to enter Stateful bean with different transaction context at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(Statefu lSessionInstanceInterceptor.ja at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterc eptor.java:107) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxIntercepto rCMT.java:178) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:60) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:203) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer. java:380) at org.jboss.ejb.plugins.local.BaseLocalContainerInvoker.invoke(BaseLocalC ontainerInvoker.java:301) at org.jboss.ejb.plugins.local.StatefulSessionProxy.invoke(StatefulSession Proxy.java:41) at $Proxy270.setStudentData(Unknown Source) at com.bit.job.actions.EditStudentInfoAction.execute(EditStudentInfoAction .java:97) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestP rocessor.java:437) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java :264) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1115) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:476) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplication Handler.java:284) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:577 ) at org.mortbay.http.HttpContext.handle(HttpContext.java:1674) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCo ntext.java:544) at org.mortbay.http.HttpContext.handle(HttpContext.java:1624) at org.mortbay.http.HttpServer.service(HttpServer.java:875) at org.jboss.jetty.Jetty.service(Jetty.java:541) at org.mortbay.http.HttpConnection.service(HttpConnection.java:785) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:935) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:802) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:20 0) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:294) at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743) at java.lang.Thread.run(Thread.java:536) ___ __ Who can tell me how to deal with this? If I retry to invoke the method for some times, the method could execute successfully. So?? thanks for any help Gene --- This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user