-
1. Re: FtpClientUtil refactoring
kurtstam Nov 8, 2006 11:39 AM (in response to bgeorges)Looks good Bruno. Where will one configure which implementation one wants? In the PropertyManager?
-
2. Re: FtpClientUtil refactoring
bgeorges Nov 10, 2006 8:27 AM (in response to bgeorges)Kurt,
This is where we left it . I believe this is one way of doing it.
The factory will return the corresponding implementation. So far I haven't implemented this logic, instead I am focusing to get the EdtFtpImpl and JschFtpImpl class working. [Your input is welcome though :-) ]
The method responsible for this in the factory looks like this so far:public static RemoteFileSystem getRemoteFileSystem(ConfigTree p_oP, boolean p_bConnect) throws RemoteFileSystemException { try { // TODO get the implementation class from properties. //ConfigTree cfgTree = ConfigTree.fromInputStream((InputStream)new FileInputStream("ftp-esb-properties.xml")); return new EdtFtpImpl(p_oP,p_bConnect); }
-
3. Re: FtpClientUtil refactoring
kurtstam Nov 10, 2006 2:47 PM (in response to bgeorges)Bruno, I think it makes sense to add a property to the PropertyManager configuration, which defines which implementation should be returned in the factory. All the other configuration should be added to the deployment-properties.xml, which I think is pretty much what you are going for. I can help you out with when it's integration time.
Also by that time we need to refactor it to use the new Courier on the trunk. It supports setting up transports both ways (down and up). Take a look at the JmsCourier for instance. I think the FtpUploader and FtpDownloader fit right in there as an FtpCourier. But this is at a higher level then what you are working on right now, so let's not worry about that just yet.
So basically I'm saying nothing but keep up the good work :).
--Kurt -
4. Re: FtpClientUtil refactoring
mark.proctor Dec 17, 2006 12:46 PM (in response to bgeorges)jboss esb can "push" to ftp, are there plans to receive? I'm looking at the apache ftp server, which works with ssl, and you can hook in events for file uploads.
-
5. Re: FtpClientUtil refactoring
marklittle Dec 17, 2006 2:38 PM (in response to bgeorges)"mark.proctor@jboss.com" wrote:
jboss esb can "push" to ftp, are there plans to receive? I'm looking at the apache ftp server, which works with ssl, and you can hook in events for file uploads.
If something is sending a message via FTP then there's an assumption that there is something receiving. We don't have a requirement for a specific FTP server, if that's what you mean, in the same way we won't for HTTP. As long as whatever implementation you use conforms to the EPR requirements, you should be able to use anything. -
6. Re: FtpClientUtil refactoring
daniel.brum Dec 18, 2006 7:52 PM (in response to bgeorges)We had it working 2-Way before with Rosetta. We should check with Esteban on this one as he is the one working on the couriers for this. I believe it is supported though.
-
7. Re: FtpClientUtil refactoring
estebanschifman Dec 18, 2006 8:37 PM (in response to bgeorges)You are right Daniel. We can both 'deliver' and 'pick up' messages through FTP. The CourierFactory takes care of returning an appropriate courier for the protocol in the URL contained in the EPR argument.