How can I make an applet talk to a local process AND the page JavaScript? - Java Applet Development

I'm writing software for a hardware device that I want to work with web pages that want to support it. Let's say I have a Java process running on the local machine, and I want the web pages' JavaScript to communicate with that process via an applet in the browser, is this possible?
For example, is it possible for a web application to kick-start an applet in the browser that resides on the client's local machine? Then can this "local" applet use RMI to talk to the "device" process? Do I have to sign the applet? And can this applet talk seamlessly with the JavaScript in the web application?
Or even better, can I kick-start an applet that resides on a third-party server (different from the web app) and still talk to the client's local machine process, without having to ask the user a security question every single time a new web app wants to do this?
Many thanks,
N

Related

Move large file download directly from browser to peripheral device

The client machine will be downloading large binary files (probably either via a web service or servlet) and my plan is for the client to be in a web browser (not an applet, though). My problem is that I want this browser app to be able to seamlessly transfer the binary file to a user's peripheral or mobile device to store it (I don't want the user to have to determine where to save it). As far as I know, it's not likely I can do this without having the client machine kick off some local external program that can take over the process, and I doubt I can do that without having the client machine actually running its own web server, e.g. for some things the client will actually just be accessing its local web server pages, but occasionally the local web server will need to pull down data from a remote web server. This is actually feasible since I have control over the client machines. Is this a good idea, or does someone have a better suggestion? 
You want the browser to store files on the client's system without any client interaction? That's a notably insecure requirement, as you should realize if you think about it. So it means that browsers by themselves won't do it. If you want the browser involved then you have to have the user install and approve something beforehand. An applet is one possibility but you have (so far) ruled that out. Another possibly is an ActiveX component, if you can require IE as the browser.
Or you could install an application on the client's machine and not bother with the browser. Just have the application download the files directly. If that's a possibility. 
These client machines are to be locked down so users who come to them can't do too much with them. That's why I'm considering running a full-screen web browser for the client application. Because I need to be able to handle the downloaded files, that's why I'm wondering if I should have a local web server (e.g. Tomcat) running a local web app on the client machine that sometimes hits remote web servers for whatever it needs and otherwise handles everything else that is displayed to the user. I'm hoping that there's a decently elegant (and secure) way to have the local web server kick off some local code that will somehow transfer the files to the user's peripheral or mobile device.

how do i run my applications on the internet

hello,
i have an applet called client and a server listening application called server.
on my computer i would usually type the command
java Server
on my personal computer to manage the commnication between my applet and a database.i.e listen to connection attempts by the applets
My problem is that i have to transport this to the internet but i don't know how i can do this.
do i need direct help my web host. i.e. do i need him to do this for me. 
>
do i need direct help my web host. Yes.
i.e. do i need him
to do this for me.Pay someone then they will do it for you. If not...
First does the hosting service allow java, if not then you are out luck. You might have to pay more for it.
You might be able to redirect/proxy the request from the web site to your home computer. There are a number of gotcha there, like security and whether the hosting service will allow the redirect, and whether your home box has a public IP address.
The hosting service might allow java and a database, so you could run it all there. (As far as I know no service that does java and database support is free.)

TOMCAT on an intranet?

I'm rather new to this server stuff. I'm developing (trying to develop) a timesheet to be delivered over a coporate intranet, and with a frontend in FLASH. This frontend needs to communicate with some servelet stuff. At the moment I'm thinking I need TOMCAT, and have it on my machine. I can talk to it nicely on http:\\localhost:8080.
Q. When I deploy it to the server (set up TOMCAT as a virtual host on the server), how will I call it from a client machine?
Q. (for those with some FLASH knowledge) will there be any run ins with security features in FLASH not letting me talk to a file not saved under the same doc root?
It would all be fine if 'twer dployed over the internet as both the FLASH files and servelets would have a similar adress. I've a feeling things get complicated by putting it out over an in house intranet.
Anybody have any help? All comments greatfully recieved.
RT
Q. When I deploy it to the server (set up TOMCAT as a
virtual host on the server), how will I call it from a
client machine?A.1 If your application is called APP,then a sample URL called "someurl" would be:
http://<servername>:8080/APP/someurl
A.2 There should be no security problems - treat eveything as URLs, beng on an intranet does not really change much.

Web browser within apex

I have an interesting idea here for something I am working on. In my case I need to let users download files from a reports server that is only accessible (to the client's web browser) to people in location A from other locations. Is there a way I can embed a web browser in an APEX page or at least make an http call to that reports server get the file then pass it along to my clients so the APEX server can grab the files from the reports server using the client's sso login credentials and then hand them off to my clients? I am asking this as it is not practical to just allow clients direct access to the server over the internet.

Can an applet talk to a local process?

I'm writing software for a hardware device that I want to work with web pages that want to support it. Let's say I have a Java process running on the local machine, and I want the web pages' JavaScript to communicate with that process via an applet in the browser, is this possible?
For example, is it possible for a web application to kick-start an applet in the browser that resides on the client's local machine (that they've pre-installed)? Then can this "local" applet use RMI to talk to the "device" process? Do I have to sign the applet? And can this applet talk seamlessly with the JavaScript in the web application?
Or even better, can I kick-start an applet that resides on a third-party server (different from the web app) and still talk to the client's local machine process, without having to ask the user a security question every single time a new web app wants to do this?
Many thanks,
N

Categories

Resources