Wednesday, August 27, 2014

How to integrate command prompt and File Manager in an client server application

How to integrate command prompt in an client server application?






Command prompt integration consists of 2 parts; Telnet Client in Web and on server system it uses Microsoft Telnet Service. 


Telnet Client allows a computer to connect to a remote Telnet server. Telnet Client can be developed in Java Applet which connects to build in Microsoft Telnet Service.


On Windows, each Telnet command prompt session consists of two processes: TlntSess.exe and Cmd.exe. TlntSess.exe is responsible for managing the Telnet session. Cmd.exe is the command interpreter, or shell program, that runs commands, programs, or scripts on the host

Challenges/ Problems

  • The Microsoft Telnet Service which is running on the server system user may have security concerns. Also it was separate service running on the server.


  • On client side, updating the Java version with new on client side was blocking applets from run.    



Solution

Hence, You replaced the Microsoft Telnet server with the KPYM server  and integrated the server module in application, so that the telnet server is running under the same process and running separate service on the server was no more required.



Also you will need to provided the signed JAR applets by adding the Trusted information inside the Metadata file to avoid the security error message coming with after Java version update.





How to integrate File Manager in an client server application?

File Manager allows to transfer the files from Local to server system and Vice-versa. The User can access this functionality similar to  the Windows Explorer. He/she can do Copy, Paste, delete, drag-drop with single/multiple files and folders.

It has 2 components :

1]  Web Client to show file List on client side as well as file system from remote system

2]  Server component running on server system

Challenges/ Problems
Application is hosted on IIS Express; IIS Express do not support the FTP where as IIS has support for FTP.

We can use the ActiveX control which runs only on IE, for Firefox, we have to use the java Applet which increase the code duplication.

Solution
You can overcome the challenge by implementing the File Manager server and client components. Use FTP / HTTP protocol to transfer file from server to client and vice-versa.

This technology support to get client side file explorer using java applet and can transfer files using FTP protocol. Server side component can be developed using .net technology. Client side component can be developed using java applet so that it will supports Internet Explorer, Firefox and Chrome browser as well.