tag:blogger.com,1999:blog-6063627024520487734.post1078932261861463469..comments2022-12-10T21:52:37.106+08:00Comments on Jan Amoyo: Generating Sitemaps Using Spring Batch and SitemapGen4jjramoyohttp://www.blogger.com/profile/04727621188639609013noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6063627024520487734.post-90214106009913249752014-09-30T02:56:04.744+08:002014-09-30T02:56:04.744+08:00It worked.It worked.Petar Tahchievnoreply@blogger.comtag:blogger.com,1999:blog-6063627024520487734.post-59417756397739861802014-09-29T20:15:26.486+08:002014-09-29T20:15:26.486+08:00Hi,
I'm using the SimpleJobLauncher like this...Hi,<br /><br />I'm using the SimpleJobLauncher like this:<br /><br />jobLauncher.run((Job) applicationContext.getBean("sitemapJob"), new JobParametersBuilder().addLong("timestamp", System.currentTimeMillis()).toJobParameters());Petar Tahchievnoreply@blogger.comtag:blogger.com,1999:blog-6063627024520487734.post-69245500049750005962014-09-29T18:05:46.216+08:002014-09-29T18:05:46.216+08:00Thanks! I am running the job via CommandLineJobRun...Thanks! I am running the job via CommandLineJobRunner, hence a new instance of WebSitemapGenerator is created every time.<br /><br />How are you running your job?jramoyohttp://www.jramoyo.comnoreply@blogger.comtag:blogger.com,1999:blog-6063627024520487734.post-32822733001924807762014-09-29T17:49:22.332+08:002014-09-29T17:49:22.332+08:00Hi there :) Great post, however, as soon as I run ...Hi there :) Great post, however, as soon as I run the job again, for the second time, I get an exception from sitemapgen4j: java.lang.RuntimeException: Sitemap already printed; you must create a new generator to make more sitemaps. This is because sitemapgen4j has a property internally called finished to track if the file has been written. How did you solve this issue?Petar Tahchievnoreply@blogger.comtag:blogger.com,1999:blog-6063627024520487734.post-2846810501681550222013-12-17T12:04:19.718+08:002013-12-17T12:04:19.718+08:00Thanks, nice postThanks, nice postAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6063627024520487734.post-48209308786655323932013-04-04T02:35:50.394+08:002013-04-04T02:35:50.394+08:00Thank; this is awesome stuff!Thank; this is awesome stuff!Anonymoushttps://www.blogger.com/profile/15273202932338775773noreply@blogger.com