cancel
Showing results for 
Search instead for 
Did you mean: 

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

doredson
Champ in-the-making
Champ in-the-making
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.
1 REPLY 1

doredson
Champ in-the-making
Champ in-the-making
I did confirm that removing this line does get alfresco running on glassfish 3. But surely there is a reason for this line to be there?


<res-sharing-scope>Unshareable</res-sharing-scope>