Let your mind go and your body will follow
Wednesday, September 12, 2012
X on windows 7
Install
Xming server
on your windows platform.
Install
putty
.
Connect putty to remote machine with these options:
You can start your GUI remotely
Spring embedded FTP server
Here is how to embed
apache FTP server
in a spring application:
<!-- ///////////////////// initializes ftp test server JAVA code is written for educational purposes :) ------------------------------------------------------ BaseUser testUser = new BaseUser(); testUser.setName("myUserName"); testUser.setPassword("myPassword"); testUser.setHomeDirectory("src/main/ftp"); ----------------------------------------------------->
<!---------------------------------------------------- PropertiesUserManagerFactory userManagerFactory = new PropertiesUserManagerFactory (); ----------------------------------------------------->
<!---------------------------------------------------- UserManager userManager = userManagerFactory.createUserManager (); ----------------------------------------------------->
<!---------------------------------------------------- userManager.save(testUser); ----------------------------------------------------->
save
<!---------------------------------------------------- FtpServerFactory ftpTestServerFactory = new FtpServerFactory (); ftpTestServerFactory.setUserManager(userManager); ----------------------------------------------------->
<!---------------------------------------------------- FtpServer ftpTestServer = ftpTestServerFactory.createServer(); ftpTestServer.start(); ----------------------------------------------------->
<!-- end of initializing ftp test server -->
We embedded it in our development application context for spring. Also, we created scheduled thread to periodically generate content for embedded ftp server. It works like a charm.
‹
›
Home
View web version