vfs

JBoss AS 7 upgrade to Java 7, JBoss VFS

家住魔仙堡 提交于 2019-12-10 23:50:03
问题 We have an spring application which dynamically loads components based in the lib folder. This application needs to be deployed on different AS, like Jetty,Tomcat,JBoss.. Now, JBoss has this VFS feature, where it does not really unpack your war it seems, and uses vfs:// for files inside the war/jar.. Currently we are in the process of upgrading (from Java6) to Java7, and we encounter the following problem. First of all, snowdrop 1.0.0GA no longer works under Java7, because the InputStream was

How to construct an in-memory virtual file system and then write this structure to disk

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-10 17:35:37
问题 I'm looking for a way to create a virtual file system in Python for creating directories and files, before writing these directories and files to disk. Using PyFilesystem I can construct a memory filesystem using the following: >>> import fs >>> dir = fs.open_fs('mem://') >>> dir.makedirs('fruit') SubFS(MemoryFS(), '/fruit') >>> dir.makedirs('vegetables') SubFS(MemoryFS(), '/vegetables') >>> with dir.open('fruit/apple.txt', 'w') as apple: apple.write('braeburn') ... 8 >>> dir.tree() ├── fruit

VFS: file-max limit 1231582 reached

ぐ巨炮叔叔 提交于 2019-12-10 15:33:14
问题 I'm running a Linux 2.6.36 kernel, and I'm seeing some random errors. Things like ls: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 23 Yes, my system can't consistently run an 'ls' command. :( I note several errors in my dmesg output: # dmesg | tail [2808967.543203] EXT4-fs (sda3): re-mounted. Opts: (null) [2837776.220605] xv[14450] general protection ip:7f20c20c6ac6 sp:7fff3641b368 error:0 in libpng14.so.14.4.0[7f20c20a9000+29000] [4931344

Is it possible to have a Linux VFS cache with a FUSE filesystem?

萝らか妹 提交于 2019-12-10 09:44:39
问题 It seems that the Linux VFS cache does not work by default with a FUSE filesystem. For example, the "read" call seems to be systematically forwarded to the FUSE filesystem. I work on a FUSE specific remote filesystem. I need a very aggressive cache. Do I need to implement my own page cache? Or is it possible to activate the Linux VFS cache for this particular FUSE filesystem? Or does someone know a good proxy/cache FUSE filesystem (or a kind of C library to do that without reinventing the

Why can't I open a JBoss vfs:/ URL?

耗尽温柔 提交于 2019-12-09 14:40:54
问题 We are upgrading our application from JBoss 4 to JBoss 6. A couple of pieces of our application get delivered to the client in an unusual way: jars are looked up inside of our application and sent to the client from a servlet, where the client extracts them in order to run certain support functions. In JBoss 4 we would look these jars up with the classloader and find a jar:// URL which would be used to read the jar and send its contents to the client. In JBoss 6 when we perform the lookup we

Difference between statvfs() and statfs() system calls?

拥有回忆 提交于 2019-12-08 14:37:57
问题 Why do the statfs() and statvfs() calls both exist when they're so similar? Under what circumstances would I prefer one over the other? 回答1: Err, "historical reasons". Originally 4.4BSD defined a statfs() call. Linux later implemented a slightly different call with the same name. Posix standardized it between all freenix and Unix versions by defining statvfs() . statfs() is OS-specific statvfs() is posix-conforming As they all return slightly different structures, later ones to come along can

Writing on a text file using VFS in WSO2 ESB 4.8.1

懵懂的女人 提交于 2019-12-08 05:10:05
问题 I am using VFS transport to poll a simple text file and then i send the text of a file to a queue. This flow works fine but in case of error scenario when fault sequence is executed , i want to write my error message to a simple text file and it is not Working. Note: I am using WSO2 ESB Version 4.8.1. I have enabled the VFS transport in my "axis2.xml" file. I have also tried all the solutions provided in this question which is related to mine. My Service Code: <?xml version="1.0" encoding=

WSO2 How to set VFS to a scheduled task

余生长醉 提交于 2019-12-08 04:16:26
问题 In wso2, VFS running default 5 minutes. I think this is bad for performance. I want VFS running when server is not busy. For example, maybe at 02:00 no body request, then VFS can work. I tried add scheduled task, but it no use. Anyone can tell me how to do this? Thank you very much. 回答1: I think your question is related to WSO2 How to set scheduled task? and https://stackoverflow.com/questions/10537190/how-to-vfs-service-exposed-as-a-web-service questions. Seems you want to do the VFS polling

WSO2 esb get attach files from email

混江龙づ霸主 提交于 2019-12-08 04:13:16
问题 I am trying with WSO2 ESB to get an email (pop mail) with attach files and put all theses attach files in a folder with vfs. So I create a proxy service with MailTransportListener. I manage to get the email message but I don't know how to extract all attach files from the email and save them to a local folder. Here is my Proxy service. Thank for your help. Nicolas `<proxy xmlns="http://ws.apache.org/ns/synapse" name="MailProxy" transports="mailto" statistics="enable" trace="enable"

WSO2 How to set VFS to a scheduled task

冷暖自知 提交于 2019-12-07 00:58:31
In wso2, VFS running default 5 minutes. I think this is bad for performance. I want VFS running when server is not busy. For example, maybe at 02:00 no body request, then VFS can work. I tried add scheduled task, but it no use. Anyone can tell me how to do this? Thank you very much. keheliya I think your question is related to WSO2 How to set scheduled task? and https://stackoverflow.com/questions/10537190/how-to-vfs-service-exposed-as-a-web-service questions. Seems you want to do the VFS polling on a particular time of the day (scheduled to a non-peak time) or via a web service. But