[jboss-user] [JBoss Seam] - Re: Timers from previous deployments are still persistent
markfoerstein
do-not-reply at jboss.com
Thu Jun 14 17:47:45 EDT 2007
tuxzilla, I'm doing exactly the same thing, and having the same problem.
Take a look at your \JBOSS_HOME\server\default\data\hypersonic dir. You will find a file named localDB.log
Open this file. You will see something like this:
| After the first deploy:
| INSERT INTO TIMERS VALUES('1','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:18:35.732000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| COMMIT
| SET AUTOCOMMIT TRUE
|
| When you redeploy:
| DELETE FROM TIMERS WHERE TIMERID='1' AND TARGETID='[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]'
| INSERT INTO TIMERS VALUES('2','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:18:35.732000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| SET AUTOCOMMIT FALSE
| INSERT INTO TIMERS VALUES('3','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:20:18.230000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| COMMIT
| SET AUTOCOMMIT TRUE
|
| When you redeploy again:
| DELETE FROM TIMERS WHERE TIMERID='2' AND TARGETID='[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]'
| DELETE FROM TIMERS WHERE TIMERID='3' AND TARGETID='[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]'
| INSERT INTO TIMERS VALUES('4','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:18:35.732000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| INSERT INTO TIMERS VALUES('5','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:20:18.230000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| SET AUTOCOMMIT FALSE
| INSERT INTO TIMERS VALUES('6','[target=jboss.j2ee:service=EJB3,ear=consultoria.ear,jar=jboss-seam.jar,name=Dispatcher]','2007-06-14 18:39:02.897000000',30000,NULL,'aced0005737200356f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573496e766f636174696f6e670f265d0e3c68ee0200045b000861726754797065737400125b4c6a6176612f6c616e672f436c6173733b5b0004617267737400135b4c6a6176612f6c616e672f4f626a6563743b4c000d636f6d706f6e656e744e616d657400124c6a6176612f6c616e672f537472696e673b4c000a6d6574686f644e616d6571007e00037872002b6f72672e6a626f73732e7365616d2e636f72652e44697370617463686572244173796e6368726f6e6f7573f8597006e73beecb0200024c000970726f6365737349647400104c6a6176612f6c616e672f4c6f6e673b4c00067461736b496471007e000578707070757200125b4c6a6176612e6c616e672e436c6173733bab16d7aecbcd5a99020000787000000002767200046c6f6e670000000000000000000000787071007e000a757200135b4c6a6176612e6c616e672e4f626a6563743b90ce589f1073296c0200007870000000027372000e6a6176612e6c616e672e4c6f6e673b8be490cc8f23df0200014a000576616c7565787200106a6176612e6c616e672e4e756d62657286ac951d0b94e08b0200007870000000000000ea607371007e000d000000000000753074000e7370686368614f627365727665727400076f627365727665')
| COMMIT
|
| And so on...
|
As you can see, after your first redeploy, it deletes the timer, and them inserts it again 2 times. When you redeploy again, it deletes the same 2 timers and inserts it 3 times... and so on...
That's odd, as it seems it is doing things right deleting the timer and inserting it again when you redeploy, but it is inserting the timer aways one time more than necessary.
I tried removing the timers from EJBContext but all I got was a NPE. I searched all over the place and did not find any other way to remove the timer... will upgrade to 1.3 if that solves the problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054554#4054554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054554
More information about the jboss-user
mailing list