[Design the new POJO MicroContainer] - Re: File locking
by alesj
"adrian(a)jboss.org" wrote : "alesj" wrote :
| | See URLExistsUnitTestCase in JBossVFS.
| |
|
| What is the purpose of this test?
| It is testing the JDK rather than the VFS so why is it in the VFS testsuite?
|
| Surely this code:
|
| | conn = tmpURL.openConnection();
| | lastModified = conn.getLastModified();
| |
| should be changed to use the VFS to check the getLastModified works
| and assert the file can still be deleted?
It's Scott's test.
But I think the purpose is to verify that URLConnection::lastModified can also tell you that the file has been deleted.
See comments on the test code:
| /**
| * Test file deletion can be detected via URLConnection.getLastModified == 0.
|
Since like it was already said, we use this for lastModified check on URL based VFS handlers.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145798#4145798
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145798
16 years, 5 months
[Design of JBoss ESB] - Re: Publish ESB services to web services
by Kevin.Conner@jboss.com
"Jim Ma" wrote :
| I do not investigate the ESB code base deeply and have two questions for Step 2:
|
| a . Can each response message be easily transformed to a javax.xml.SOAPMessage when we have the output xsd file ?
|
Unfortunately there is no easy way to do this with the current architecture so you have the freedom to do what you feel is best.
The options could include transformations (smooks/xsd) on a part of the message, marshalling part of the message using JAXB etc. Generating the schema is also an option, perhaps by specifying the types rather than the xsd.
The ESB 5 architecture will have the ability to automatically generate the schema from the service, so we need to consider these issue going forward.
"Jim Ma" wrote : b. How can we compose the ActionProcessingException to soap message when we have fault xsd file? Take ActionProcessingException as a exception bean to marshal and unmarshall fault message?
Again, there is no easy answer to this at the moment.
What do you feel is the right approach for handling this?
Kev
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145796#4145796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145796
16 years, 5 months