{"componentChunkName":"component---node-modules-gatsby-theme-medium-to-own-blog-src-templates-blog-post-js","path":"/quartz-and-hibernate-handling-session-management/","result":{"data":{"site":{"siteMetadata":{"siteUrl":"https://javame.netlify.app","githubUrl":"https://github.com/aterreno/blog"}},"mdx":{"fields":{"slug":"/quartz-and-hibernate-handling-session-management/"},"excerpt":"How to manage the Hibernate session for the duration of the quartz job execution? Quartz/cron jobs by default have their own start-up times…","timeToRead":1,"frontmatter":{"title":"Quartz and Hibernate — Handling Session Management?","description":"","categories":[],"date":"May 06, 2006","canonical_link":"https://javame.netlify.app//quartz-and-hibernate-handling-session-management-cd3d773d1b15"},"body":"function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\n/* @jsxRuntime classic */\n\n/* @jsx mdx */\nvar _frontmatter = {\n  \"title\": \"Quartz and Hibernate — Handling Session Management?\",\n  \"description\": \"\",\n  \"date\": \"2006-05-06T00:00:00.000Z\",\n  \"categories\": [],\n  \"published\": true,\n  \"canonical_link\": \"https://javame.netlify.app//quartz-and-hibernate-handling-session-management-cd3d773d1b15\",\n  \"redirect_from\": [\"/quartz-and-hibernate-handling-session-management-cd3d773d1b15\"]\n};\nvar layoutProps = {\n  _frontmatter: _frontmatter\n};\nvar MDXLayout = \"wrapper\";\nreturn function MDXContent(_ref) {\n  var components = _ref.components,\n      props = _objectWithoutProperties(_ref, [\"components\"]);\n\n  return mdx(MDXLayout, _extends({}, layoutProps, props, {\n    components: components,\n    mdxType: \"MDXLayout\"\n  }), mdx(\"p\", null, \"How to manage the Hibernate session for the duration of the quartz job execution?\", mdx(\"br\", {\n    parentName: \"p\"\n  }), \"\\n\", \"Quartz/cron jobs by default have their own start-up times which doesn\\u2019t always match the application workflow.\"), mdx(\"p\", null, \"If you are using lazy-init entities inside your Quartz Job then you have to initialize them eagerly either through a FETCH or using Hibernate.initialize().\"));\n}\n;\nMDXContent.isMDXComponent = true;"},"allWebMentionEntry":{"nodes":[]}},"pageContext":{"id":"fd7ed84e-ef23-5fe8-b43b-fa1b33312dda","previous":{"id":"afdc9ab3-a1fa-5d4b-85d7-772e81bbd79b","fields":{"slug":"/moved-to-vienna-trying-to-move-on-linux/","published":true},"frontmatter":{"redirect_from":["/moved-to-vienna-trying-to-move-on-linux-bee631ff89bb"],"redirect_to":null,"title":"Moved to Vienna, trying to move on Linux"}},"next":{"id":"f99c5886-0acd-59ab-ae7d-e4fc92798268","fields":{"slug":"/new-standard-for-caching-data-on-mobiles/","published":true},"frontmatter":{"redirect_from":["/new-standard-for-caching-data-on-mobiles-2cc191ee9b81"],"redirect_to":null,"title":"New Standard for Caching Data on Mobiles"}},"permalink":"https://javame.netlify.app/quartz-and-hibernate-handling-session-management/","themeOptions":{"plugins":[],"config":{"title":"Antonio Terreno","description":"Antonio Terreno's blog archive","shortBio":"","bio":"Principal Consultant at Equal Experts","author":"Antonio Terreno","githubUrl":"https://github.com/aterreno/blog","siteUrl":"https://javame.netlify.app/","social":{"twitter":"javame","medium":"","facebook":"","github":"aterreno","linkedin":"antonioterreno","instagram":"tritonitri"},"goatCounterCode":null}}}},"staticQueryHashes":["4131332129","645483741"]}