AnsweredAssumed Answered

Glassfish 3, JNDI and res-sharing-scope=Unsharable

Question asked by doredson on Apr 26, 2010
Latest reply on Apr 27, 2010 by doredson
I am trying to get Alfresco running within Glassfish 3. I read several blog posts about this, but none of them addressed the fact that web.xml has this:


<resource-ref>
      <description>The Alfresco database connection</description>
      <res-ref-name>jdbc/dataSource</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Unshareable</res-sharing-scope>
   </resource-ref>

Which causes the following error to print in the server log file:
Error allocating connection : [Cannot use resource in unshareable scope].

I could, of course, remove the res-sharing-scope line and things might start working. But what is the reasoning behind having that there in the first place?

Is there a recommended way for setting up glassfish 3 that I DON'T need to remove that line?

Thanks,
Dana.

Outcomes