| IBM WebSphere Portlet Factory & DataSource Configuration in WASCE |
|
|
|
| Written by jay | ||||||
| Saturday, 20 December 2008 | ||||||
|
It took me a couple of hours to get this right. One of the reasons is that there are some differences in structure between Websphere Portlet Factory (WPF) version 6.0 and version 6.1. Therefore most of the documentation I could find was not only scattered around but also not enough to make it work in WPF 6.1. Here I try to point out the Here, I am talking about running WPF models that uses DataSources located through JNDI in the WASCE environment. If one wants to use builders like SQL Call one will need to setup the kind of datasource discussed here. What I found The comment in this wiki here lays it all out very nicely for the most part. It even provides links to further information. Go there now and try it out. Did it work? If not and you are using WPF 6.1 then read on. It didn't quite work for me either and here is why: Differences 1) In WPF6.1, the geronimo-web.xml template that requires editing is actually located here: <PROJECT>\WEB-INF\bin\deployment the same location as the wasce.web.xml is located. That was the key difference for me. 2) The jsp page for testing the connection is also located like so: http://host:port/YourProject/factory/util/testDataSourceConnection.jsp Note the difference being the name of .jsp file. For the most part, that got my models running and I could test nicely in WASCE. But wait there is more! The time came to deploy my application to Portal. Now it meant two different environments that I had to consider. My short workaround to this was to use profiling. I simply created two profiles in WPF:
one for WASCE datasource configuration and the Default for Portal datasource configuration (BTW, it is setup in WAS using the WAS console). When developing and testing, I simply select the WASCE profile. When the application is deployed to portal, by default it will pick up the WAS datasource configuration. It's all about helping reduce those painful hours of searching :)
Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/ |
||||||
| Last Updated ( Saturday, 20 December 2008 ) | ||||||
| Next > |
|---|









