tag:blogger.com,1999:blog-8195620012319482647.comments2018-12-01T17:30:11.173-08:00Sensible RationalizationPrabhat Jhahttp://www.blogger.com/profile/10962036079302803908noreply@blogger.comBlogger58125tag:blogger.com,1999:blog-8195620012319482647.post-90002268158217538852012-08-23T08:59:08.438-07:002012-08-23T08:59:08.438-07:00@anonymous if you have hibernate generate id's...@anonymous if you have hibernate generate id's for inserts then it does them serially maybe?Roger Packhttps://www.blogger.com/profile/01578246846716577925noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-1065414699039948632012-08-23T08:32:05.640-07:002012-08-23T08:32:05.640-07:00Please take a good look at your configuration, DB ...Please take a good look at your configuration, DB connection string as well as how batch size is actually used in code at http://anonsvn.jboss.org/repos/qa/prabhat/batch-insert/src/main/java/org/eejot/batchinsert/DBService.java <br /><br />It's possible that things are less complicated or configuration is different with newer hibernate version.Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-2494989815571677582012-08-23T06:41:16.049-07:002012-08-23T06:41:16.049-07:00I have the problem that the statements are not exe...I have the problem that the statements are not executed in batch (verified by mysql-log). The log says the following:<br /><br />[...]<br />166 [main] DEBUG org.hibernate.cfg.Configuration - hibernate.jdbc.batch_size=20<br />166 [main] DEBUG org.hibernate.cfg.Configuration - hibernate.order_inserts=true<br />166 [main] DEBUG org.hibernate.cfg.Configuration - hibernate.order_updates=true<br />[...]<br />166 [main] DEBUG org.hibernate.cfg.Configuration - hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect<br />[...]<br />[ 20 single inserts instead of one (verified by mysql log) ]<br />1014 [main] DEBUG org.hibernate.jdbc.AbstractBatcher - Executing batch size: 20<br />1021 [main] DEBUG org.hibernate.jdbc.AbstractBatcher - no batched statements to execute<br />[...]<br /><br />any idea why?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-31534263730791713162012-08-19T15:29:02.220-07:002012-08-19T15:29:02.220-07:00yeah I'm on oracle...yeah I'm on oracle...rogerhttp://freeldssheetmusic.orgnoreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-37969995741349226002012-08-19T09:19:59.373-07:002012-08-19T09:19:59.373-07:00@Roger I have mentioned in the blog how to verify ...@Roger I have mentioned in the blog how to verify if it's really working. For mysql, you can see the update/insert statmenets in mysql log.Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-28233517518970579022012-08-17T11:13:22.841-07:002012-08-17T11:13:22.841-07:00How do we know if it's working or not then? D...How do we know if it's working or not then? Does yours say anything like<br /><br />DEBUG: org.hibernate.jdbc.AbstractBatcher - Executing batch size: 2<br /><br />?Roger Packhttps://www.blogger.com/profile/01578246846716577925noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-66719020266225247232012-05-22T13:46:33.154-07:002012-05-22T13:46:33.154-07:00If the objects being persisted have child objects,...If the objects being persisted have child objects, do these optimizations have any affect?<br /><br />For example, if I have a House object that contains a list of Room objects and my hibernate mappings are configured such that the Rooms get persisted when I persist the House, does the batching configuration have any impact or does it only have benefits when persisted simple entities without relationships to other tables?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-9660337918556257082012-03-26T04:54:11.613-07:002012-03-26T04:54:11.613-07:00Hope you get extension very soon if still you face...Hope you get extension very soon if still you face problem you can contact an expert visa attorney who can help you to get things done.h1b visa lawyerhttp://www.ronaldshapiro.com/noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-40981591360646427572012-01-19T12:51:10.949-08:002012-01-19T12:51:10.949-08:00I believe by explicit flush, you are forcing objec...I believe by explicit flush, you are forcing objects to be cleaned from memory just in case. You could try without flush and see what happens...you got the source to play with. :-)Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-22276611661866340552012-01-19T12:41:05.821-08:002012-01-19T12:41:05.821-08:00I know I'm late to the party but I have a very...I know I'm late to the party but I have a very simple question. hibernate.jdbc.batch_size if provided as configuration parameter to hibernate should control the number of objects cached in first-level cache by flushing the object to the database. Then why do we need an explicit flush ?<br /><br />while (numRecordsProcessed < hibernateBatchSize && it.hasNext())<br /> {<br /> Member wsBean = it.next();<br /> session.save(wsBean);<br /> //log.info("Webservices record " + wsBean + " saved.");<br /> numRecordsProcessed++;<br /> }<br /> session.flush();Aleksey Sundukovskiyhttp://bettracker.comnoreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-54114363681889189642011-11-08T20:47:32.046-08:002011-11-08T20:47:32.046-08:00Yes, I am aware that she does not need to be accom...Yes, I am aware that she does not need to be accompanied by English speaking person but that was her first time outside Nepal traveling on her own so I wanted to be a bit careful. On top of that she really does not want to be on wheelchair. ;-)Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-84196076912766924612011-11-08T20:44:35.333-08:002011-11-08T20:44:35.333-08:00I guess one thing that you should know is you don&...I guess one thing that you should know is you don't need anybody to accompany your mom if she doesn't speak English. You can ask for a wheelchair support through the airlines so that they can take her to the gates as well as through all the immigrations. Both my mom and mother-in-law (twice) visited the same way, and they don't speak a single English word :)<br /><br />I can't believe why they denied your extension request for mom in the first place, I recently got 6 month extension for my mother in law and this is her 2nd stay in US. During first stay, she stayed for 6 months, and came back again after 6 months to stay for 1 year with the extension. May be you need a solid reason to get the extension granted I guess.Sampath Jayarathnahttps://www.blogger.com/profile/18310021926286283289noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-73123751083127104202011-10-05T16:51:32.627-07:002011-10-05T16:51:32.627-07:00Thanks for the code example. Let me highlight the...Thanks for the code example. Let me highlight the incredibly relevant ?rewriteBatchedStatements=true on the connection string (jdbc:mysql://localhost:3306/batch?rewriteBatchedStatements=true).Unknownhttps://www.blogger.com/profile/10944467317426104750noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-25987032649295839322011-09-21T07:42:29.829-07:002011-09-21T07:42:29.829-07:00What URL are you hitting? You should look into the...What URL are you hitting? You should look into the log to see what context it is getting deployed.Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-36261504783870066122011-09-21T03:44:35.373-07:002011-09-21T03:44:35.373-07:00Hey,
I have been trying to deploy a richfaces appl...Hey,<br />I have been trying to deploy a richfaces application onto elastic beanstalk, it deploys but is never available, are there any configurations that i need to take care of before I deploy?Anonymoushttps://www.blogger.com/profile/06185348409648728797noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-87276624376638939852011-04-24T20:23:30.568-07:002011-04-24T20:23:30.568-07:00Thanks for your comment.Thanks for your comment.Prabhat Jhahttps://www.blogger.com/profile/18220849795910855444noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-77376968251946634282011-04-17T21:57:10.205-07:002011-04-17T21:57:10.205-07:00Indeed the habit of Indian sports journalism to re...Indeed the habit of Indian sports journalism to report ONLY and ONLY in hindsight, to judge by the result rather than logically analysing what was done and why, has been exposed once again this time. And strange some of the criticism, which was actually valid, will also be washed away in this winning tide...until the next big loss which is too late. <br /><br />This is where success goes to head of subcontinent sportsmen - and some proactive and sensible sports journalism can point the sportsmen to things BEFORE they go wrong.<br /><br />Besides reporting, this is where sports journalists can also do their duty as the 3rd estate.<br /><br />What they do instead is well described in this Amit Varma post: http://indiauncut.com/iublog/article/monkeys-using-calculators/angshuhttps://www.blogger.com/profile/11727220390983260907noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-71394973853943695522011-03-29T16:16:35.947-07:002011-03-29T16:16:35.947-07:00Yes, it should be. The best way to find out is to ...Yes, it should be. The best way to find out is to give it a shot. Attribute names might be different though.Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-17405031364118818952011-03-29T14:35:23.294-07:002011-03-29T14:35:23.294-07:00Good explanation. Do you know if this is possible ...Good explanation. Do you know if this is possible with JPA.<br /><br />cheers.Omar Vázquez Mayorga.https://www.blogger.com/profile/11991770402018512804noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-45611013399842465042010-12-06T14:39:04.642-08:002010-12-06T14:39:04.642-08:00I understand the business part. But Hudson is not ...I understand the business part. But Hudson is not something that was baked inside Sun or Oracle and it's not a typical close source product so it should not be treated as such.Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-22210726343099687982010-12-06T14:29:30.523-08:002010-12-06T14:29:30.523-08:00Remember, Kohsuke was also employed full time by S...Remember, Kohsuke was also employed full time by Sun to work on Hudson for a good couple of years, so that means Sun owned some of the intellectual property.<br /><br />Oracle acquired Sun, as a business, Oracle will assert that IP ownership aggresively. Oracle doesn't get to the Oracle today by having your way of thinking.<br /><br />I agree that Ted Farrel / Oracle's way of dealing with the community was awful, but as a business, CloudBees / InfraDNA also needs Oracle and a healthy Hudson brand.Bing AMhttp://noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-59962981486768827902010-10-11T01:38:00.947-07:002010-10-11T01:38:00.947-07:00Hi Sharanya,
You should ask your question in Gate...Hi Sharanya,<br /><br />You should ask your question in GateIn forum. And if you are using EPP 5 and you have support contract, you can use Red Hat support channel to get a faster response.<br /><br />Thanks,<br />PrabhatPrabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-36532645907372678442010-10-11T01:24:51.080-07:002010-10-11T01:24:51.080-07:00Hi Prabhat, I am trying to deploy my portal on JBO...Hi Prabhat, I am trying to deploy my portal on JBOSS EPP 5.0 using Gate in protal server. I have copied my application ear into the server deploy folder. All my portal configurations are in place but when i try to access my portal using http://localhost:8080/portal/portal/default blank page comes up and I dont see any request coming to the server. I am able to view the individual xhtml pages of my application using the context root of my application but i am not able to see portal as a whole. Could you please provide your inputs on the same. Thanks<br /><br />..SharanyaAnonymoushttps://www.blogger.com/profile/01869342326773943852noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-45065846382005218412010-04-01T10:17:48.292-07:002010-04-01T10:17:48.292-07:00haha, awesome :)haha, awesome :)mwringehttps://www.blogger.com/profile/03033858623094516449noreply@blogger.comtag:blogger.com,1999:blog-8195620012319482647.post-6693498834243789252010-03-11T13:06:41.132-08:002010-03-11T13:06:41.132-08:00Thanks. The more the links, the better it is. :-)Thanks. The more the links, the better it is. :-)Prabhat Jhahttps://www.blogger.com/profile/10962036079302803908noreply@blogger.com