Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Design for application

  Asked By: David    Date: Jun 08    Category: Java    Views: 458

I have a problem.

I wish to provide plug-in as part of the solution of a proposed

This plug-in should work on what ever platform (web server) which
work act as add-on to the user existing server which perfom the
following tasks :

1) making ssl connection to remote host (most probably Oracle9iAS)
at the background after the user click a UI at the frontend
2) Perform two way digital certificates exchange between local
server and remote server
3) send message to this remote host

I'm not very sure what technology to use as these servers who
potentially host this plug-in are bound to be multi-platform. Is it
possible to provide a single plug-in or I have to customize for each
platform I encounter.

We think of using Applet as this plug-in but it will run on client
(browser)and it will void the sandbox rule imposed to Applet.



3 Answers Found

Answer #1    Answered By: Rosa Reynolds     Answered On: Jun 08

Have a look at the JCP API packages.

Do you really think an Applet is the right choice as
your front end......

For platform  independence Java will be the correct
choice to interface into Webservers....

Answer #2    Answered By: Geldefsman Bakker     Answered On: Jun 08

Yes you are rite, I think the issue is the requirement is to provide
plug-in  which do the task i have described which act  as a black box
which the existing server  only need to know the the API to fire up
the task instead of do customizing on the existing  server.

The plug-in might need to turn the origin http request into a
predefined format (example an xml) before post to another server.

The key point is : provide a utility to encapsulate as much as work
need to be done in this component and let the server just install it
with minimal configuration.

The server might not j2ee compliant

I hope I'm not too idealistic as the stringent requirement have been
imposed to the design  team.

Please feel free to ask me more if i do ont make it clear enough

One more qs : Am I right there is no way to relax the restriction
that applet  cant make any connection  to the host  beside its origin

Answer #3    Answered By: Von Fischer     Answered On: Jun 08

First I woulld like you have a look at an installer
known as InstallAnyWhere. This is a multiplatform
installer.This should give you some idea of how you
can get your plugin into the webserver.
I also assume that the installer will install a JVM
for the specific platform  and also can do a Browser
side install in functionality like Flash plugin.
Regarding Applets:
Yes it is possible to connect to hosts other than the
origin. Have a look at "Digitally Signing Applets"
there are n-number of technical articles availble on
the net.
The other issues that has be sorted out here is how to
connect raw sockets from behind a firewall proxy (look
at Http Tunneling) and also how do you plan to run
your applet  when you
are in an network that does not support applets (this
is a very real scenario in the real world network
admins are very strumpy about opening sockets)

If you are thinking about some way to forward your
request to a java thread running on the server
side.You will have to look at ways through which you
1. Filter the request so that you know what request
has to be transoftmed into XML
2. How do I pass the request to the java thread?


This application  looks like an ideal candidate to be
implemented as an webservice.

Have a look at SOAP and Webservices? Almost all
languages up to COBOL have some API that can access
Have a look at the AXIS SOAP server...

Implement a webservice on a remote  URL and use it as a
post man to forward request to other application
servers.On the client you will have SOAP Clients
written in their native languages..

like IIS will have asp SOAP clients,Apache may have
CGI/PERL, tomcat can have java SOAP clients etc etc

My understanding of your requirement may be wrong..so
if I make any silly suggesions I hope you will take it
in the correct sense

Didn't find what you were looking for? Find more on Design for application Or get search suggestion and latest updates.