{"id":50,"date":"2010-03-12T13:16:01","date_gmt":"2010-03-12T20:16:01","guid":{"rendered":"http:\/\/www.klsoftware.com\/blog\/?p=50"},"modified":"2010-03-12T13:19:25","modified_gmt":"2010-03-12T20:19:25","slug":"oracle-portlets-with-multiple-datasources","status":"publish","type":"post","link":"https:\/\/www.klsoftware.com\/blog\/?p=50","title":{"rendered":"Oracle Portlets with multiple datasources"},"content":{"rendered":"<p>I just finished creating an updated portlet for work.  There were two changes that were needed, data from two different database instances and the format was changed to use &lt;dt&gt; and &lt;dd&gt; tags.  This allows for a rolling scrollable format to be defined by a cascading style sheet.<\/p>\n<p>I thought this would take a couple of hours, so estimated this at about four hours to complete.  Now I&#8217;m finished, and it is six hours after starting.  So what went wrong?  The biggest mistake that I made was not really understanding what happens when the files are bundled up for deployment.  When creating the two separate model projects, I used the same name for the package name.  I was using different names for the model projects, so no problem, right?  Wrong!  When the files get packaged, the package names are used in a combined classes directory.  Since I have two different bc4j.xcfg files defined, one of them gets clobbered and I get an obscure jbo oracle error.<\/p>\n<p>If you are using multiple models in a project, just use a unique package name for each one, and things will go much better for you!  Though, it might still take six hours instead of two&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just finished creating an updated portlet for work. There were two changes that were needed, data from two different database instances and the format was changed to use &lt;dt&gt; and &lt;dd&gt; tags. This allows for a rolling scrollable format to be defined by a cascading style sheet. I thought this would take a couple [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,39,21],"tags":[22,23],"class_list":["post-50","post","type-post","status-publish","format-standard","hentry","category-code","category-jdeveloper","category-portlets","tag-jdev10-1-2","tag-portlet"],"_links":{"self":[{"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/50","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=50"}],"version-history":[{"count":4,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions"}],"predecessor-version":[{"id":54,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/50\/revisions\/54"}],"wp:attachment":[{"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=50"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=50"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.klsoftware.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=50"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}