skip to main
|
skip to sidebar
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.
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Twitter
Blog Archive
►
2016
(2)
►
October
(1)
►
August
(1)
▼
2012
(5)
▼
September
(2)
X on windows 7
Spring embedded FTP server
►
August
(1)
►
April
(1)
►
February
(1)
►
2011
(2)
►
July
(1)
►
June
(1)
►
2010
(8)
►
June
(1)
►
March
(2)
►
February
(3)
►
January
(2)
►
2009
(10)
►
December
(1)
►
October
(2)
►
July
(2)
►
June
(1)
►
February
(2)
►
January
(2)
►
2008
(5)
►
November
(1)
►
October
(2)
►
August
(1)
►
March
(1)
►
2007
(2)
►
September
(2)
About Me
Foo111
View my complete profile