[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: VFS and directory handling

alesj do-not-reply at jboss.com
Fri May 30 12:22:09 EDT 2008


"scott.stark at jboss.org" wrote : Can you validate with the hibernate team that this works for them?
  | 
It's probably more of a global issue, e.g. having any kind of PersistenceProvider work on our PersistenceDeployer.

What we should do now is differentiate between this:
1) exploded inner dir containing persistence.xml
2) nested jar containing persistence.xml

For 1) we strip the vfs prefix off, 
for 2) we return VFS URL, which will lead to VFSURLConnection --> VirtualFile.openStream --> ZipInputStream.

I can add some VFSUtils.isNestedJar method which knows how diff between 1) and 2) based on the handler impl.

OK?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4154731#4154731

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4154731



More information about the jboss-dev-forums mailing list