-
1. Re: Configuring JNDI in Glassfish
bcarothers Apr 27, 2010 7:57 PM (in response to androbit)That property is supposed to contain a file that's accessible from the classpath. That is, it has to point to a resource, not a file. I've created MODE-736 to fix this behavior. I'm not completely sure what the correct fix is though. Here are some options that I see:
1. Change the name of the property to configResource (and fix the docs as needed)
2. Make the JndiRepositoryFactory treat that as a file name and load the config from the filesystem rather than through the classloader
3. Make the JndiRepositoryFactory first try to load the configuration from the file system. If that fails, try to load the configuration from the classloader
4. Have two properties on the JndiRepositoryFactory, one that loads through the classloader and one that loads from the filesystem.
What do you think?
-
2. Re: Configuring JNDI in Glassfish
androbit Apr 28, 2010 2:31 AM (in response to bcarothers)I think option 2 or 4 would be convenient (I prefer option 4). JackRabbit ist also handling the configuration via file name and this way you could setup the modeshape instance a bit faster.
-
3. Re: Configuring JNDI in Glassfish
bcarothers Apr 28, 2010 8:47 PM (in response to androbit)I split the difference and went with option 3
The patch is committed to trunk, if you don't mind building from there. I'd really appreciate it if you could post the config that you used to get this up with GlassFish. We could add it to the docs if you did.
Thanks for catching this issue! Please let us know if you run into anything else.
-
4. Re: Configuring JNDI in Glassfish
androbit May 24, 2010 12:24 PM (in response to bcarothers)I tested it now with 1.2 final and its working as expected! Thanks for the fix! I will update this topic asap with my current configuration.