[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: vfsmemory url problem
mstruk
do-not-reply at jboss.com
Thu Aug 21 15:55:29 EDT 2008
I fixed my buggy test :)
Didn't cross my mind before to put the file directly on context root - not as a child, but as root itself.
| URL dynamicClassRoot = new URL("vfsmemory", ".vfslink-test", "");
| MemoryFileFactory.createRoot(dynamicClassRoot);
|
| byte [] fileBytes = prepareFileContent();
| MemoryFileFactory.putFile(dynamicClassRoot, fileBytes);
|
Cheers,
- marko
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4171872#4171872
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4171872
More information about the jboss-dev-forums
mailing list