[ http://jira.jboss.com/jira/browse/JBPORTAL-88?page=history ] Roy Russo resolved JBPORTAL-88: -------------------------------
Resolution: Done Changes were made to the slide jndi lookup code. The changes are in slide-stores.jar now. From the email I sent to the slide list: ----- Hello Sliders, We are using slide 2.1 as the basis of our CMS for JBoss Portal. Until now, we used the default file system store, but also wanted to allow for users to implement the jdbc store. Since slide is running inside our Portal webapp, it was having trouble finding the jndi-name. I made a slight modification to the code in org.apache.slide.store.impl.rdbms.J2EEStore.java, from various suggestions in this mailing list and my own tinkering. The changes are below: Staring on line ~119 of J2EEStore.java: // Initialize database Context initCtx = new InitialContext(); //Context envCtx = (Context) initCtx.lookup("java:comp/env"); //ds = (DataSource) envCtx.lookup(datasource); ds = (DataSource)initCtx.lookup("java:/" + datasource); We currently deploy our own datasource "PortalDS", as part of the global portal ds. So in the domains.xml file as a ds name, we simply use: <parameter name="datasource">PortalDS</parameter> Of course, we needed to make sure the ds was deployed by JBoss before slide could see it. This seems to be an ongoing issue with people on this mailing list, so my suggestion would be that the changes made to J2EEStore.java be incorporated to the slide build, and perhaps allow a config variable dictate whether slide is running inside a webapp where the current jndi lookup method cannot find the ds. I mainly used this post as a reference: http://mail-archives.eu.apache.org/mod_mbox/jakarta-slide-user/200309.mbox/[EMAIL PROTECTED] > Make slide use RDBMS instead of FS > ---------------------------------- > > Key: JBPORTAL-88 > URL: http://jira.jboss.com/jira/browse/JBPORTAL-88 > Project: JBoss Portal > Type: Sub-task > Reporter: Roy Russo > Assignee: Roy Russo > Fix For: 2.0 Beta 2 > > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882&alloc_id=15148&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development