Re: [JBoss-user] (no subject)
I get exactly the same behaviour with the 2.4.6. Actually I read they solved on 3.0. If it still there, I think it's really a bug. But it's not reported. I hadn't the time to make a so clear report. You should signal it as a bug submitting your code. I'd really would like to see this solved Bye Davide Joshua D. Cough wrote: I am trying to test acknowledgement, non-acknowledgement, and redelivery in JMS using JBoss3.0 Final. Unexpected results are occuring, including strange behavior and exceptions. I am sending and receiving from queue/testQueue, which comes default with the JBoss setup. The code that I am using to attempt this testing can be found at http://www.javaworld.com/javaworld/jw-03-2002/jw-035-jms_p.html, which page is a document describing behavior in certain JMS situations. The code can be found below and in the attached file as well. In that page, the author gives the following statement, which is exactly what I am trying to test: What happens to messages that are in the session but never acknowledged? The messages remain at the destination until they expire or forever if they lack an expiration date. Message redelivery is not automatic, but messages are redelivered under certain circumstances. First, calling the Session class's recover() method recovers the session. Invoking the recover() method causes the redelivery of all unacknowledged messages. Second, the receiving application restarts, causing the session to restart. Restarting the session causes all unacknowledged messages to be redelivered. In the first case, calling the Session class's recover() method recovers the session...causes the redelivery of all unacknowledged messages, I am getting the following error: javax.jms.IllegalStateException: The session is not transacted at org.jboss.mq.SpySession.rollback(SpySession.java:353) at org.jboss.mq.SpySession.recover(SpySession.java:388) at Receiver.doAll(Receiver.java:39) at ClientReceiver.main(ClientReceiver.java:10) In the code, i use the statement: aQC.createQueueSession(false, Session.CLIENT_ACKNOWLEDGE); The first argument of false declares that the session is not in a transaction. Why is rollback being called if I am not in a transaction? I expected to re-receive all of my unacknowledged messages, but instead got that exception. Is this a bug in JBoss, or is what I know wrong? Any help or advice would be greatly appreciated. In the second case, receiving application restarts, causing the session to restart. Restarting the session causes all unacknowledged messages to be redelivered I am getting unexpected behavior. I stop the receiver in two different ways, one by typing the q button, which tells the code to simply quit and exit properly, and the other by issuing a Control-C, which of course kills the program. In either case, or at least in one case, when the receiver starts back up, I would expect to get some messages that hadnt yet been acknowledged when the receiver went down. I am not getting these messages in either case. But... When I restart JBoss with unacknowledged messages in the Queue, then start up the reciever, the messages are being delivered. I dont quite understand this behavior. Again, is this a bug in JBoss, or is what I know wrong? Any help or advice would be greatly appreciated. The Code that I am using= import javax.naming.InitialContext; import javax.jms.*; public class Sender { public static void main(String[] args) { System.out.println(Starting...); QueueConnectionFactory aQCF = null; QueueConnection aQC = null; QueueSession aQS = null; QueueSender aSender = null; try { InitialContext aIC = new InitialContext(); aQCF = (QueueConnectionFactory) aIC.lookup(ConnectionFactory); aQC = aQCF.createQueueConnection(); aQS = aQC.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); Queue aQueue = (Queue) aIC.lookup(queue/testQueue); aSender = aQS.createSender(aQueue); aQC.start(); for (int i = 0; i 10; i++) { aSender.send(aQS.createObjectMessage(new Integer(i))); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (aSender != null) { aSender.close(); } if (aQS != null) { aQS.close(); } if (aQC != null) { aQC.stop(); aQC.close(); } } catch (JMSException e) { e.printStackTrace(); } } System.out.println(Ending...); } } import javax.jms.*; import javax.naming.InitialContext;
Re: [JBoss-user] CD Subscription Update
Guys, JBoss is really a great product but as I see in the JBoss staff there are some of the biggest asssucking I've never seen in the IT Market. Maybe with thats 500 bucks most of you could attend some good breeding lessons. Fuck you...Sincerely (500 times) Davide De Benedictis Dain Sundstrom wrote: If you don't have $500 don't buy the CD subscription. All of the software on the CD is available for free download at SourceForge. -dain Guy Rouillier wrote: I'm treading lightly here. I think JBoss is a fantastic J2EE app server, and everyone here has been a tremendous help to me in getting things done. I've now got JBoss fully integrated into just about everything we are doing at work, and it is holding up very well under load. $500 is still a bit pricey at this point in JBoss's existence. I'm on Microsoft's MSDN. I've had the Professional level subscription for $500/yr up until this year, when they raised the price to $900, so I dropped down to the Operating System level for $500. For $500 a year, I get about 5 or 6 CDs a ** month **; this subscription level provides all Microsoft operating systems (including Pro, Server, Advanced Server and Data Center Server), all toolkits, resource kits, betas, and on and on. At the $900 level, you get all this plus Visual Studio. In short, a bunch of stuff. - Original Message - From: Bill Burke [EMAIL PROTECTED] To: Jboss-Dev [EMAIL PROTECTED]; JBoss 2 [EMAIL PROTECTED] Sent: Thursday, May 30, 2002 12:46 PM Subject: [JBoss-user] CD Subscription Update Hi All, After a bit of market research we've dropped the CD subscription price to $500. $500 includes: * 1 hour support. * 4 CDs over 1 year span * Document subscription * graphical installer Help support JBoss development. Regards, Bill Burke JBossGroup ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to recovery a client from a server crash ?
Hi, I'm trying to find a way to recovery a remote client standalone application from a shutdown or a crash of my JBoss server. My Client successfully lookup for an EJB on JBoss and start to call remote methods through a classic lookup method: InitialContext iniCtx = new InitialContext(); Object tmp = iniCtx.lookup(susa_edi_gw/GatewayEDISUSA); GatewayEDISUSAHome home = (GatewayEDISUSAHome) PortableRemoteObject.narrow(tmp, GatewayEDISUSAHome.class); return home.create(); At one point I shutdown JBoss. The next remote call get an exception (of course)... Then I startup JBoss again. There is no way to successfully lookup and instantiate a remote Object. Actually I can look up objects but I get a ClassCastException when I call the: Object obj = javax.rmi.PortableRemoteObject.narrow(remoteObject, classType); I tried nearly everything: closing initialContext and initializing everything again... nothing !!! PLEASE Help Should I restart all the remote clients when my server goes down and start up again ? Davide De benedictis ___ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JMS acknowledge() and online recover() method
Hi All, I'm using JBoss 2.4.6. and I have an external client application which reads from a queue using CLIENT_ACKNOWLEDGE session settings. If I fail to correctly process a message I don't call session.acknowledge() but I call call sesson.recover(). Unfortunately it doesn't work...Messages are resent only for a new Server startup and I cannot get live redelivery. I searched through forum's archives finding some peoples facing the same problem with any reply. Is there anybody out there using JMS with these features ? I tried also to set maxsize=1 on the jms xa resource adapter with no result. Thank you in advance Davide De Benedictis ___ Hundreds of nodes, one monster rendering program. Now that's a super model! Visit http://clustering.foundries.sf.net/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JDataStore JBoss 2.4.4
Hi, I'm starting experimenting Borland JDataStore with JBoss 2.4.4. I'm able to successfully start and connect to my database. Configuring JBoss.jcml file, I used as javax.sql.XADataSource implementation class, the: org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl JBoss manual suggest to use this class if the db driver doesn't support XA transactions. Given that JDataStore supports XA, I was trying to figure out which class of the Borland package is implementing this interface. Actually Borland docs are very foggy... I tried without success with: com.borland.javax.sql.JdbcConnectionPool and: com.borland.javax.sql.JdbcConnectionFactory I always get a NoSuchMethodException during Server startup. Is there someone who used the real Borland class ? Thank you in advance Davide De Benedictis ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Sleeping JBoss
If you have something selected, that's your problem. It's not a JBoss problem, any java application started from a console is attached to it and if you block the console ... Just try in a simple java app. You could launch JBoss with javaw (no window) and then monitoring output by log traces. Bye Davide dovan nguyen wrote: Dan, it didn't pay attention to that. what if there was 1 cell selected, what could be the cause? Has anyone reported this problem before? Please let me know. Thanks, Dovan --- Dan Christopherson [EMAIL PROTECTED] wrote: When you switch to the console window that JBoss is running in, is anything selected? Like a one-character cell inverse video area? dovan nguyen wrote: Hello, I use JBOSS 2.4.4 with Tomcat and mySQL on Win 2000 ... I notice if there is no request from a client for awhile (maybe hours, maybe minutes??) JBOOS stops serving (stays idle or sleeping !!) For example i open a browser and request a Test.jsp page, the browser tells me the connection is made BUT waiting for reply (forever!) i then clicked the JBoss console (black DOS window), hit the ctrl-C then JBoss wakes up and serve the Test.jsp page Please help. Thanks, Dovan __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards® http://movies.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user