Applet-Servlet with RMI or HTTP? : for a web based network monitoring tool.

Hi,
I need help to make a decision to choose an implementation technique for a tool that I am creating.
I am creating a utility to display a table of RX and TX bandwidth information in real time from a network device X
onto a client's web browser.
I have a JTable based applet to display bandwidth information. However I am running this as a standalone applet. I want
to create a web based solution (applet/servlet model) to make life easier for the end user.
As for displaying the bandwidth information, I am using Runtime.exec() function to remote execute commands using ssh/rsh.
This not only seems to impose a lot of process and network latency overhead, but also seems impractical from a
security point of view, hence I need a real client/server model to have efficient and secure serialized data transfer across
the network (through HTTP etc) between the client's web browser and X.
X has a web server running on it. It essentially is a Linux box (CentOS). I can create a JNLP definition to launch an applet
from X onto a remote client's web browser. The real problem is: what is the most efficient way to go about the
servlet implementation? Is it wise to use HTTP get/post? or RMI is the way to go?
Also I'd appreciate suggestion on any different approaches than what I have in mind above.
Thanks,
Rajiv

Thanks for your time, but I cannot make a front-end in C. It has to be in JSP (or in ASP but I haven't tried yet to program in VBA).
So that is why I am asking what is the best way of attaching a JSP front-end to the given API.
PS: Why should I code a .dll to provide a JNI interface for the api? Isn't the JNI interface capable of doing such?

Similar Messages

  • Applet-Servlet or RMI - which is better

    We are in the process of developing a swing-applet based system that requires regular interaction with multiple databases residing on more than one database server.
    The options available before us, as we evaluate are:
    a. Use "signed" applets ( as this is going to be essentially an intra-net application) and use JDBC connection to connect to more than one database ( which reside on servers other than the web server).
    b. Use applet - servlet communication - basically, the servlet would establish connection to the databases, directly or through EJB, retrieve necessary database information and pass on the objects to the applet - the front end GUI would be controlled by the applet.
    c. Use RMI
    We would like to have your perspective of the three options, with your experience in this line.
    The questions that come to us are:
    a. If the system is essentially an intra-net application, is it okay to design with "signed" applet mechanism - how far is this method common in the market and acceptable to the clients? Is it true that the signed applet would be able to establish connection to various "identified servers" that are allowed permissions in the security file?
    b. Between applet-servlet and RMI, which is a better method? What should be the factors that need to be considered? Is RMI being widely used or should we be thinking in terms of EJB, eventhough the current project is purely a Java based solution.
    Your input is highly appreciated - thanking in advance for any suggestions and inputs that you may provide.
    Thanks
    Dixie

    Dixie,
    1) IMHO signed applets are not widely used, but you can use
    ordinary applets, which are accessing other resources through
    redirector servlet on server side - I mean ordinary applets
    are prohibited to establish connect to other than it's own server.
    So you will be forced to have special servlet on your server,
    which have access to other resources on other servers - this is a
    way how to avoid applets limitation.
    2) RMI is a heavy solution, because all parameters/objects should
    be serialized over net and if network connection is unreliable
    working with system will be just a nighmare.
    3) If you think that your network connection is unreliable, you can use HTTP protocol between client and server instead of RMI. In this case
    you will have following benefits:
    i) You can still use all of powerness of thick client
    ii) Network unreliability will be defeated
    iii) Sometime if you would like to port your application to a thin
    client it will be done much more easier than in case of RMI
    4) If you would like to use thin client your only problem will
    be poorness of UI - if you can go with it - go ahead! Otherwise
    use thick client with RMI or HTTP depending on quality of network.
    Paul

  • Reccomendations for web-based data visualization tools?

    Hello again,
    I am embarking on a interesting research project that will involve recording lots of physiological signals from patient monitors in a hospital.  I will be recording signals like BP, spO2, Pulserate, ECG, etc.
    Right now, my main design concern is how to give clinicians access to the data after it is recorded.
    My wish list is:
    - Store the data securely, where access can be controlled (e.g. perhaps in a RDBMS like SQL Server)
    - Allow users (who are granted access) to login and view historical data via a simple web browser
    - Allow users to zoom, scroll, etc. 
    - Allow user to view data in stacked plots (e.g. so they can see ECG, BP and HR simultaneously on the screen and scroll the time axis)
    - Allow user to annotate data (e.g. add comments at specific timestamps)
    Anybody have any reccomendations for a web-based data visualization tool like this?
    I know that people are probably going to reccomend Diadem ... but I don't think its web-based is it?

    There is actually a new thing available called LabVIEW Web UI Builder.  This allows you develop web-based applications that have a custom GUI that can interface with other LabVIEW applications.  You can find more information on the Web UI Builder page on ni.com. There is also a dedicated forum that you can use to post questions about the Web UI Builder.  That forum is located here.  I hope that you find this helpful!
    Brandon Treece
    Applications Engineer
    National Instruments

  • Any fix for the PC based network printer communication issue with Mavericks?

    Any fix for the PC based network printer communication issue with Mavericks?

    I just signed up for FIOS and am not experiencing your problem (had enough other ones instead).
    Go to mail preferences ~ click on a mail account ~ click on the advanced tab. The only settings that worked for me were: port 110 SSL OFF, authentication: Authenticated POP (APOP). If I remember correctly when I first set this up another window opened and I typed in my password and never had to do that again.
    Hope this helps.

  • Looking for a web based filemanager (or similar).

    Hello,
    I have a small server at home hosting all my files and I am looking for a simple setup to be able to access these files from pretty much every where.
    Usually I'm using ssh or sftp but the thought of being able to access the files through a web interface is really sounding good. So, I have been searching for a web based file manager and found a few, but none that really made me go wow.
    The best so far is probably Ajaxplorer. One thing that I'm looking for though is a PAM authentication feature which Ajaxplorer doesn't have. Are there any web based file managers around that supports this?
    Or... maybe I'm looking for the wrong things. Are there other nifty solutions available for accessing files on a remote folder through a web interface?

    zenlord wrote:
    If PAM authentication is all you're missing, why don't you setup http_auth?
    THX for the suggestion, I was looking for something like this myself and the next version should have LDAP_auth - alrighty then!
    Zl.
    http_auth... do you have any nice links on how to use it? I've never heard of it
    Ajaxplorer is quite nice after all and setting up repositories isn't all that bad. Looks like I'm sticking to it while I continue my search for another app.

  • Network monitor tools for flex ?

    Hello,
    Is there any idea about implementation of network monitoring tools  ?
    I want similar kind of functionality that flash buiilder network monitor provide in my live site's flex object.
    Thanks,
    Mohit

    Hi,
    You can pdo it using air: http://livedocs.adobe.com/flex/3/html/help.html?content=network_connectivity_1.html
    Best,

  • URGENT Servlet with RMI ConnectionException

    i have an object with two personalities: Servlet and RMI.
    However when i invoke it using the web browser, the following exceptions pop out:
    <!--
    java.rmi.ConnectException: Connection refused to host: 172.20.134.24; nested exc
    eption is:
    java.net.ConnectException: Connection refused: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)
    at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
    at IncomingSMSController.init(IncomingSMSController.java:43)
    at IncomingSMSController.init(IncomingSMSController.java:35)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
    java:916)
    at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.jav
    -->
    the way i code my program is as follow:
    <!--
         protected void init()throws ServletException{
              try{
                   System.out.println("\n<<IN>>");
                   Registry reg=LocateRegistry.getRegistry();
                   System.out.println("\n<<"+reg+">>");
                   reg.rebind("ControllerInterface",this);
                   bound=true;
                   System.out.println("Server now bound to IncomingSMSController");
              }catch(Exception e){
                   System.out.println("Error binding");
                   e.printStackTrace();     
    public static void main(String[] args)throws RemoteException,ServletException{
    Controller con=new Controller();
    con.init();
    -->
    Anyone please help thanks. i have been asking this question here for many time and no one reply may i know at least why?
    thanks.

    Hi,
    I see the java doc of LocateRegsitry and you can read :
    LocateRegistry is used to obtain a reference to a bootstrap remote object registry on a particular host (including the local host), or
    to create a remote object registry that accepts calls on a specific port.
    Note that a getRegistry call does not actually make a
    connection to the remote host. It simply creates a local reference to
    the remote registry and will succeed even if no registry is running on
    the remote host. Therefore, a subsequent method invocation to a remote
    registry returned as a result of this method may fail.
    So may be the exception, throw when you call rebind, is due to non active registry in local machine. You can try to execute your servlet
    after activate your registry via LocateRegistry.createRegistry(int port)
    Hope this help

  • Assign management ip address with SCVMM 2012 R2 for hyper-v converged network?

    Hi,
    I am setting up a converged network for our Hyper-V clusters using vNICs for the different network traffic including management, live migration, cluster-csv, hyper-v etc.
    Problem is, how do I assign the hyper-v hosts a management IP address? They need a network connection on the management network for scvmm to manage them in the first place. How do I take the existing management IP address that is directly assigned to the
    host and transfer it directly to the new vNIC so scvmm has management of it? Kind of in a chicken and egg situation here. I thought about assigning a temp ip address to the host initially but am worried that assigning the address will cause problems as then
    the host would then have 2 default gateways configured. How have others managed this scenario?
    Thanks
    Microsoft Partner

    Rule of thumb: Use one connected network for your Fabric networks (read the whitepaper), and use VLAN based networks for your tenant VMs when you want to associate VM Networks with each VLAN.
    -kn
    Kristian (Virtualization and some coffee: http://kristiannese.blogspot.com )
    We don't have tenants as such due to this being an environment on a private company LAN for sole use of the company virtual machines.
    What I have so far:
    I created "one connected network" for Hyper-V-Virtual-Machine traffic.
    Unchecked "Allow new VM networks created on this logical switch to use network virtualization"
    Checked "Create a VM network with the same name to allow vms to access this logical network directly"
    This logical network has one site called UK.
    Within this site I have defined all of the different VLANS for this site.
    Created IP pools for each VLAN subnet range.
    I hope I understand this correctly. Started reading the whitepaper from cover to cover now.
    Microsoft Partner

  • Need help for the web based project

    I am using netbeans 5.5 and Sql server for db.What is the full form for DAO and how is it going to help me in my project.U also talk about uml want ot know about it.
    and how is it coming to help me.Its a very wast topic i serached.what will be helpful to me of the UML.
    What should i start first --- jsp or db design.
    What should i use for web based project --- only use jsp(presentation)+dao or jsp+servlet+dao.What would be best ?
    provide some nice link based on dynamic fetching of values from the database and showing it at runtime.
    Message was edited by:
    java@mani

    As stated in http://forum.java.sun.com/thread.jspa?threadID=5167752 start reading the Java EE tutorial to get insights in the material.
    what will be helpful to me of the UML.UML generally visualizes the core functionality. See http://www.google.com/search?q=uml+tutorial for some tuts.
    What should i start first --- jsp or db design.Start with both and end with the best balance between both.
    What should i use for web based project --- only use
    jsp(presentation)+dao or jsp+servlet+dao.Depends on the business needs. Generally 3-tier webapplications are the best: web, business and data.
    provide some nice link based on dynamic fetching of values from the
    database and showing it at runtime.Check some SQL and JDBC tutorials how to fetch and process the data:
    http://www.google.com/search?q=sql+tutorial
    http://www.google.com/search?q=jdbc+tutorial
    How to process it in the business and web layer is stated in the Java EE tutorial I've linked in your former topic.
    For applying the patterns, check the http://java.sun.com/blueprints/corej2eepatterns/

  • I need Firefox 3.6. How can I go back? I need it for a web-based software application that I use at work.

    At work (University of Texas at Arlington), I use a vendor-provided web-based application that requires Firefox 3.6. I've uninstalled Firefox and tried to install 3.6, but I got Firefox 6.0. When I start Firefox now, it sometimes automatically updates so that at this point I'm using 7.0. I've lost some functionality in the application, and the vendor's tech support is not able to help with some things such as printing pages, user preferences, etc.

    You can get firefox 3.6.23 here
    * http://www.mozilla.org/en-US/firefox/all-older.html
    * see also [[installing a previous version of firefox]]
    You may consider seeing if there is a firefox 3.6.23 portable version available if you are using it for one particular application only, you could then use firefox 7 for other browsing.
    * see http://portableapps.com/apps/internet/firefox_portable

  • Front End (GUI) for Java Web Based Appl.

    Hi Gurus,
    I am new to Java. Can anybody tell me, what is the front end(GUI) used in Java web based applications? I was told that Swings/Applets are rarely used. Is there are a 3rd party took to design GUI for Java based applications?
    Chooti Baba

    sunilmp wrote:
    U mean to say, for JSP/Servlets, "Web based application" as well as "JSP/Servlet" usually implies that the client is a simple web browser.
    we cannot have swing as front end?You can use Swing inside an Applet inside a web application, but usually that's not needed, as you already have a client application that's quite powerful (the browser).

  • Just Looking for OEM Web Based Standalone

    I have 10.2.0.1.7 installed on one machine and I installed the client with the adminsitrator option on another. Im simply trying to connect to the 10g standalone web-based OEM version and am a little lost. Can someone please point me in the right direction for what I need to do to get this up
    Thanks

    I assume you mean that you need DBCONTROL (standalone version of Grid Control) to manage your new database. If yes, then this is usually there as part of your database. Try the link http://<your-host-name>:1820/em
    Otherwise you can also issue the command "emctl status dbconsole" which should reveal whether or not your agent is up. If it is not up, issue "emctl start dbconsole" and then reissue the status command which will reveal the URL to use to see dbcontrol home page.

  • Wi-Fi Network Monitoring Tool for Palm OS 5.x

    Hi there..
    I'm trying to develop a 802.11b/g monitor tool for a Palm device (Tungsten C) using J2ME and it turns out to be pretty difficult or maybe even impossible.. meaning, I'm stuck. Since the J2ME VM is optimized for CLDC/MIDP enabled devices, it can't execute parts of the bytecode I used from jpcap. Same while trying to use libpcap with Java (using wrapper classes), it needs some of the J2SE classes which are not or partly supported by J2ME. So I was wondering whether you guys might have some suggestions to solve my problem (using Java)?
    Thanx & Greets from Switzerland, Mike.

    Any particular bytecode? Like maybe to do with doubles/floats? Or is java classes required by libpcap that are missing? I'm guessing you need deeper access to the 802.11 libraries to do monitoring. All you'll have in MIDP is the 'http' connector protocol.

  • Best networked printer for a MAC based network?

    I may regret asking this :"), but what is the best network printer to use on a MAC based network? I have been the victim on the bloatware HP drivers for years, and am really sick of them. But what do I purge this nightmare for? Canon (like the MX860) looks interesting and is multifunction (a requirement). Lexmark seems to making a comeback, and Brother as well. Epson has seemed to do OK as well. Who has the most reliable drivers for the OSX platform, updates them the most regularly, and seems to actually care about Apple (as opposed to pandering to the Windows crowd almost exclusively).?
    Comments?
    Dan O

    I did my homework for network printer/scanner/fax and came up with the Brother Color Laser MFC-9840 CDW. It's got every button and whistle, and they all work on a Mac or PC network. You can scan from the machine and pick which Mac to send the scan to, or scan from a Mac. Sheet feeder works for fax and scan, real duplex printing. All works on Leopard. They have lower models which will also work, but without the Color, or Wireless (which we don't use).
    I've seen great on-going driver development with the latest operating systems...

  • Using project libraries for both web-based and AIR applications

    I need to develop substantial code to build both web-based and AIR applications.  Yes, they will have different features, especially when it comes to accessing files on the local file system.
    However, 98% of the code can be shared.
    I want to use a project library that can be used for both types of applications. Maybe using conditional compile when required to not use AIR API's in a web-based application.
    I found this (somewhat old) warning:
    Include Adobe AIR libraries Select this option if your library must use AIR features, such as access to the AIR APIs. Flex Builder then changes the library path of this new Flex Library project so that it includes airglobal.swc and airframework.swc. Web-based Flex projects cannot use this library.
    Do not select this option if you are writing a generic library intended to be used only in a web-based Flex application, or in either a web-based or AIR-based application.
    Does this apply to Flash Builder 4.5?

    I have found a workaround, but it's quite clumsy, involving a transfer vector (in old-fashioned terms) in the main application for each function in the AIR library.
    I have created a library for AIR classes only (fourdtext.fileOperations is there). 
    The AIR application provides "Function" values that any other code in the general-purpose libraries can use.
    It works, but it's nasty.
    In Main.mxml:
    import com.fourdtext.fileOperations.AxFiles;
    // this gets a list of native path strings, from and array of "File" objects
    public var AxGetListFunction:Function = AxGetListRedirect;
    private function AxGetListRedirect(list:Array):Vector.<String>{
        return AxFiles.AxGetList(list);
    In general-purpose code:
    var list:Array = event.dragSource.dataForFormat("air:file list") as Array;
    var AxGetList:Function = FlexGlobals.topLevelApplication.AxGetListFunction;
    listFiles = AxGetList(list);

Maybe you are looking for

  • My Macbook Pro suddenly, and for no apparent reason, will not connect to the internet?

    About a week ago I went to go online and my computer said I had no internet connection.  Around that same time I noticed that my background on my desk top was back to the factory set background it came with, but I did not change it.  That is the only

  • Need help with Java Script to perform a calculation in Adobe Acrobat Pro 9 form

    I have a form (test) that I am creating in Adobe Acrobat Pro 9. I need help creating custom Java Script so I can get the desired answer. 1) There are several questions in each group that require a numerical answer between 0-4 2) There is a total fiel

  • Captions/text in photo book layout

    I'm creating my first book and don't know how to add text boxes to my book? Do different layouts NOT have text/caption options? TIA! Jennifer

  • No internet except 32bit Chrome & Terminal

    What would cause only 64bit software to quit connecting to the internet. Recently upgraded to Mavericks 10.9.1.  Everything worked great for a couple weeks.  Installed Adobe Creative Cloud two nights ago.  After it installed I went to download lightr

  • My If statment isn't working....

    public class ButtonListenerThree implements ActionListener      public void actionPerformed(ActionEvent event)         RightPanelEarth myPanel = RightPanelEarth.getInstance();         if(myPanel.getNasaType() <> "Nasa Center Type: Select A Station")