Want to run applet thr App Server

Please note - very very new to java -
I have developed one simple applet (with one form - after submit run an ASP file - redirect to ok page). Currently applet jar file it is on web server. But now I want to use 3-tier config. Following is the config.
Web server - FW - App Server - FW - DB Server
I want all my java application (jar file for applet) to be on App Server.
Whenever user makes a request to web server - it should connect to app server and download the jar file to web server which in turn will get forwarded to client side.
First of all whether it is possible ? if yes how ? Can anybody give me sample code ?
email : [email protected]
Posting to many different forum group as it is urgent

According to me it is urgent. I want answer very fast. But surprisingly no body has replied yet.

Similar Messages

  • I want to run IIS and Form Server on same machine

    Dear follows
    I have problems , porblems is that i want to run IIS and Form
    Server at same machine but i m facing some problems so please
    inform me right proceduers to run this services at same machnine
    now i m using Windows NT .
    My secone problems is that i want to send emai via oracle
    reports , actuall condition is that i have oracle report and i
    want to add button and behind this boutton i want to add trigger
    to send this report as a emai to client as txt/html format.

    There shouldn't be any problem running both forms server and IIS
    on the same machine. Just make sure the ports that are used are
    different. IIS's default port is 80, so either change this port
    number or change it for the Forms server's web listener.
    You can send reports to email if you use DESTYPE=MAIL.

  • How do you get values of local machine running applet on remote server?

    Hi,
    I have an applet that runs great running the html file on my local machine from a root directory. I've placed my code(java, class, and html files) on the web server and loaded the applet onto a page. The results are merely:
    "Computer Name: localhost"
    "IP Address : 127.0.0.1"
    Instead of:
    "Computer Name: ACTUALNAME"
    "IP Address : 189.40.20.211"
    etc...
    The code is as follows:
    import java.applet.*;
    import java.awt.*;
    import java.net.InetAddress;
    public class IPFinder extends Applet {
    public void paint(Graphics g) {
    super.paint(g);
    try {
    InetAddress localaddr = InetAddress.getLocalHost () ;
    g.drawString("Computer Name: " + localaddr.getHostName (), 2, 13);
    g.drawString("IP Address : "+localaddr.getHostAddress (), 3, 25);
    g.drawString("", 3, 45);
    String str = localaddr.getHostName();
    InetAddress[] localaddrs = InetAddress.getAllByName ( str ) ;
    for ( int i=0 ; i<localaddrs.length ; i++ )
    if ( ! localaddrs[ i ].equals( localaddr ) )
    // g.drawString("Local hostname : " + localaddrs[ i].getHostName () , 3, (i+0)+50);
    g.drawString("Local IP Address("+i+"): " + localaddrs[ i].getHostAddress () , 3, (12*i)+((i+10)+45));
         }} } catch (Exception e) {
    g.drawString("Can't detect localhost : " + e +". Check Network settings.", 3, 60);
    public static void main(String[] args) { new IPFinder(); }
    I'm trying to get Real IP Addresses (as the code was setup to do) from a browser running on the web server. I have read some of the threads in this forum and some mention to use NetworkInterface while others recommended using Sockets (not an option since we do not use them), and another to use a signature as a workaround. Anyone know the best direction to get the results expected?
    Thanks in advance,
    Geoff-

    I have an applet that runs great running the html file
    on my local machine from a root directory. I've
    placed my code(java, class, and html files) on the web
    server and loaded the applet onto a page. The results
    are merely:
    "Computer Name: localhost"
    "IP Address : 127.0.0.1"This indicates that your applet when run over a web
    server has not the rights to query the local name and
    address. Look [url
    http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAd
    ress.html#getLocalHost()]here. The so-called
    loopback address is 127.0.0.1
    Check your documentation for "signed jar" (or search
    the forum or the sun website) if you want to give your
    applet more rights, but I don't think that this is
    worth the effort in this case.
    gdsimz, since you already started two new threads based on my suggestion, how about at least saying "thank you" or "sorry, didn't help"?

  • REP-300 Error while running report using App Server

    Hi,
    I am currently trying to run a report using the Application Server.
    This report is being called from a form.
    I am able to connect to the report server and all configurations seems to be correct.
    But when I execute the report from the form, I am getting error "Unable to run report"
    When I look at the error message in the Report Server queue, I find
    "REP-300 Table or View does not exist.."
    But that table does exist in the database.
    What could be be the problem ?
    Please help.
    The code in the form that calls the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    vc_user_name:=get_application_property(username);
    vc_user_password:=get_application_property(password);
    vc_user_connect:=get_application_property(connect_string);
    vc_connect:=vc_user_name||'/'||vc_user_password||'@'||vc_user_connect;
    SET_REPORT_OBJECT_PROPERTY(report_id ,REPORT_OTHER, 'paramform=yes     p_user_connect='||vc_connect ||' p_servername=repsrv'||' p_action=<host>/reports/rwservlet?' );
    v_rep := RUN_REPORT_OBJECT(report_id, parmlist_id);

    The report is working perfectly fine when I run it from the Report Builder. I get the correct output.
    I am getting this error when I try to run the report through a Report server.
    I run the form from the Forms 10g builder. This form has a button "Run Report". When I click on the button the report is run using the Report server.
    This is when I get the error.
    There are other forms that are also called via the same form. Those work fine. The only difference between those forms and this one is that this one has user parameters passed to it. This one also has an attached library attached to it.
    The code in the Form to call the report is
    report_id := FIND_REPORT_OBJECT( report_name );
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_COMM_MODE, SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_EXECUTION_MODE, BATCH);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESTYPE, FILE);
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_DESFORMAT, 'pdf');
    SET_REPORT_OBJECT_PROPERTY(report_id, REPORT_SERVER, 'rep-vena01-xp');
    v_rep      := RUN_REPORT_OBJECT(report_id, parmlist_id );
    v_jobid := substr( v_rep, length( v_reportserver) + 2, length(v_rep) );
    v_repstatus := REPORT_OBJECT_STATUS( v_rep );
    IF ( v_repstatus = 'FINISHED' ) THEN
    v_url := '/reports/rwservlet/getjobid' || v_jobid || '?server=' || v_reportserver ;
    web.show_document( v_url, '_BLANK' );
    END IF;

  • Initial workflow runs on WFE, then APP server, loses dependency?

    I'm still having issues with a WFE deployment to a farm with a WFE, an APP, and a SQL server. I'm trying to get my head around it. Workflow timer jobs run on the APP server, in accordance with Microsoft recommendations.
    User adds a list item
    When he / she submits their request, an Update workflow is kicked off -
    this part of the workflow I believe is still running on WFE because I see my printed messages in the ULS logs on the WFE
    If the request to update a list item is approved, the workflow kicks off a timer job.
    The SharePoint timer service then picks up the job on the APP server - I know this because I see my printed messages on the APP server instead of WFE.
    Submitted request passed on to a database on a different server.
    Getting the right solution has been challenging as I've been struggling to ask the right questions. I've confirmed that the SharePoint 2010 Timer Job is started on both servers with same account. I'm thinking that the wsp deploys something to the WFE,
    but not to the APP server. For #5 to happen, that something needs to live on the WFE (unless I want to change the service configuration and add Workflow Timer Jobs on both servers.)
    I'm thinking that the solution should be to manually add whatever those files are deployed via the wsp to the APP server as well.
    Scott

    Best practice states that Foundation Web runs on every server in the farm, as solutions must be built around the exception of not running Foundation Web on particular servers. You're encountering that issue, the solution wasn't built to accommodate for
    this type of architecture. There is little reason to not run Foundation Web on all servers, including performance.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Problem with JNI (custom shared library) on App Server

    We have a custom built shared library (.so) we want to use with the app server (a webapp). The .so is wrapped with java class and works to spec when tested outside of app server (webapp) environment with test stub. When wrapper class is introduced to App Server (webapp) & embedded function is invoked we recieve java.lang.UnsatisfiedLinkError(). We've looked to make sure $LD_LIBRARY_PATH is correct but still recieve this exception. Any suggestions? Running nm against the .so shows undefined symbols but these should be resolved by $LD_LIBRARY_PATH. Any suggestions?

    what version of appserver are u using...if 7.0 then try using their common class loader as per this docs:
    http://docs.sun.com/source/817-2171-10/dgdeploy.html#wp69906

  • Including static html file (WebServer)  with JSP (App server)?

    Hi,
    I want to know how can a static html file that runs on a Web Server (iPlanet) in a JSP that runs on an App Server (WebLogic 6.1).
    What would be the tag used and how the html file is referenced? Is there any other extra settings involved while integrating iPlanet with WebLogic 6.1?
    Responses are highly appreciated.
    Thanks and Regards,
    Madanlal.

    Web servers usually work with the MIME Types. In the mime type settings will determine how a request for a particular mime type is served. Usually HTML, JPG,GIF... are served by the web server itself. A JSP request will be forwarded to the APP Server for peocessing.
    The HTML and the image files need to be in a directory visible to the web server from the document root.
    See the files
    config\mime.types
    config\obj.conf
    under the web server installation directory.
    Refer to the web server's admin guide for more info.

  • Oracle JDeveloper 10g with Sun Java App server

    I have oracle JDeveloeper 10g and sun App Server 8. I want to find out if JDeveloper can create entity beans that can run on Sun app server.
    I know that sun app server uses things like sun-cmp-mapping.xml and sun-ejb-jar.xml. If i create these as normal in JDeveloper would they run on sun app server? if not what configuration do i need to do?

    Sun Java App Server 8 doesn't ship with the Apache Tomcat jk/jk2 connector. But you can download Tomcat 5 and install it. Copy ${catalina_home}/server/lib/tomcat-jk2.jar under $s1as_home}/lib
    Now Sun Java App Server 8 will have the code required. Then you will need to start the jk connector (this is the most difficult task). Since you don't have any API to start this connector to listen (in Tomcat, the connector is started by default and listen on port 8009), the only way for you to start it is to use JMX. Pick one of the available JMX client ( jmx-ri is a good candidate), and do:
    (1) create the connector
    (2) start the connector
    Then follow the Jakarta Tomcat instruction on how to install Apache and JK2.
    I didn't spend the time to find the exact command for JMX, but technically it should work. Once I have time I will take a look (The Tomcat 5 Admin Gui uses JMX, so by browing the code you should find the exact JMX command)
    Hope that help.
    -- Jeanfrancois

  • Display Customized message if App Server Down

    Hi Buddies !!!
    Currently I am working on an entripse application that runs on Websphere App Server.
    I have to display an error page with some msg when the user hits the URL but Websphere has not started. To be more specific my app server is shut down.
    Thanks
    Irshad

    I think he wants a custom error.html or something. I hope he doesn't mean he wants them when the web-server is down as well (people can be stupid, I know... ).

  • Deployment of Flex app to web and app server

    Hi
    I'm working on putting a Flex front-end on an existing J2EE
    app which gets deployed as an ear file. The architecture consists
    of web server, app server and database server. Is the following
    approach to deployment possible / recommended?
    My Flex app will be deployed to the web server. The J2EE ear
    file will be deployed to the app server (Weblogic). BlazeDS will be
    bundled within the ear file as a war file. Remote Objects will be
    configured in my BlazeDS configuration files to enable me to access
    the code in my J2EE app. In the compiler options of my Flex app,
    I'll be setting the server root folder and server root URL to point
    to the BlazeDS war file on my app server.
    At present I'm at the stage where I can run my Flex app
    directly from Flex builder on my development PC and it's able to
    connect tto the J2EE app, which is running on the app server
    (Weblogic) also on my development PC. I can't find documentation
    explaining how to extend this to work on a multi-tier architecture.
    Thanks
    David

    Hi,
    I replied to your post in FDS forum. Please visit the URL
    below for the response.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=583&threadid=1373523
    Hope this helps.

  • Does moving SP code from DB to App Server help scale an application?

    We have an application developed using Oracle 10g Forms / 10g DB? All our processing is done using SPs. So they all run in the DB server. Even our Inserts/updates/deletes to a table are handled by SPs.
    The site with the maximum simultaneous users (i.e. concurrent users) is one with 100 concurrent users.
    We have prospective customer whose requirement is 300 concurrent users. Our application won't be able to handle it since the DB server is a single processor server with limited memory.
    One suggestion was move the SPs to the App Server by moving them to the Form. Since OAS has a PL engine they will run in the App Server and hence remove the workload of the DB.
    I don't buy this. My point is, even if SPs are moved to the app. server still the SQLs will run in the DB server, right?
    So what is the advantage?

    christian, I just modified the original post thinking nobody will reply since it's very long. Thanks a lot for the reply. For others and myself also here is my original question.
    I have a problem like this: Take this scenario. We have a TELCO app. It is an E-Business Web Application (i.e. Dynamic Web Site) developed using ASP.Net/C#. App. Server is IAS and DB is Oracle 10g. IAS and the DB reside in 2 servers. Both are single processor servers.
    The maximum simultaneous user load is 500. i.e. 500 users can be working in the system at one time.
    Now suppose 500 users login at the same time and perform 500 different operations (i.e. querying, inserts, updates, deletes). Now all 500 operations will go to the App Server. From there the C# code will perform everything using Oracle stored procedures (SP). I.e. we first make a connection to the DB, SP is invoked by passing parameters, it will perform the operation in the DB, send the output to the App. Server C# code and we will close the Oracle connection (in App Server. C# code).
    Now, the 500 operations will obviously have to wait in a queue and the SQLs will be processed in the DB server.
    Now, question is how does CONNECTION POOLING help in this situation?
    I have been told that the above method of using DB SP to perform processing will make the whole system very slow since all the load of the processing has to borne by the DB Server and since DB Operations involve disk I/O it will be very slow. They say you cannot SCALE the application with this DB Processing mode and you have to move to App. Server processing mode in order to scale your application. I.e. If the number of users increases to 1000 our application won’t be able to handle it and will get very slow.
    What they suggest is to move all the processing to the App. Server (i.e. App. Svr. Memory). They also say that CONNECTION POOLING can help even further to improve the performance.
    I have some issues with this. First of all to get all the data to the App server memory for each user process from the DB will not only require disk I/O, it will also involve a network trip. That will obviously take time. Again the DB requests to fetch the data will have to wait in the DB queue. Then we do the processing in the App. Server memory and then we have to again write to the DB server which again will require a network trip and disk I/O. According to my thinking won’t this take MORE TIME than doing it in the DB server??
    Also how can CONNECTION POOLING help. In C# we OPEN a connection ONLY just before run the SP or get the data and we close the connection just after the operation is over.
    I don’t’ see how CONNECTION POOLING can improve anything?
    I also don’t see how moving data into the App. Server from the DB Server can improve the performance. I think that will only decrease performance.
    Am I right or have I missed something?
    Edited by: user12240205 on Nov 17, 2010 2:04 AM

  • Cannot start Web Cache in Oracle 10g App Server

    Hi,
    Our Application runs on Oracle10g App Server,
    When it tried to start WebCache using the command
    opmnctl startproc ias-component=WebCache process-type=WebCache
    it shows the error...
    opmn id=oracle10g:6200
    no enabled components for this request
    When i tried to enable WebCache using Enable/Disable Component in Oracle 10g Enterprise manager - I can't see WebCache component it to enabe or disable it.
    When i tried opmnctl status., it shows
    ------------------------------------------------+---------
    ias-component | process-type | pid | status
    ------------------------------------------------+---------
    HTTP_Server | HTTP_Server | 7276 | Alive
    LogLoader | logloaderd | N/A | Down
    dcm-daemon | dcm-daemon | N/A | Down
    OC4J | home | 7684 | Alive
    OC4J | rhs | N/A | Down
    OC4J | instaremit | 5880 | Alive
    OC4J | insta_test_apr_02 | 7100 | Alive
    WebCache is not running, also as the WebCache is not listed in Oracle 10g Enterprise manager, i can' enable or disable it.
    Plz Help me over this.,
    Regards.,
    Deepak.C

    Hi.,
    Thanks again !!!
    Yes, My Oracle HTTP Server is listening on port 80.
    I am not clear, may i know why should the ports be changed for the request to go through Web Cache ???
    Can i assign port 80 for Web Cache and 7778 for HTTP Server ?
    Also In Oracle Enterprise Manager, Web Cache is not available...
    home, HTTP Server, management alll these are there...
    Also for HTTP Server, it's not showing any metric info, 'Not Yet Available' is shown even though the HTTP Server is running, how can i get metric info about Oracle HTTP Server, i have also used dmstool -t ohs_server, its not working
    It's showing... FLEXMON ERROR : detected invalid table name ohs_server
    dmstool -l -t also does'nt lists ohs_server
    Hellp me over this.....
    Deepak.C

  • Session Bean ejbCreate( parm ) Does Not Work in App Server 8  2005 Q2 Editi

    I have the following in my session bean:
    public class aauthfacadeBean implements SessionBean {
    public void ejbCreate() throws CreateException {
    public void ejbCreate( boolean logActivity, String dbCodedNameAauth, String uname, String pswd ) throws CreateException {
    In the client application I do this:
    try {
    InitialContext initial = new InitialContext();
    LocalaauthfacadeHome home = (LocalaauthfacadeHome)initial.lookup( "java:comp/env/ejb/aauthfacade" );
    localAauth = home.create( glbvars.getLogActivity(), glbvars.getDbCodedNameAauth(), user.getUname(), user.getPswd() );
    } catch (NamingException ex) {
    System.out.println( "ejbLookupSecurity() sbGetAauthLocalRef: naming error: " + ex );
    } catch (CreateException ex) {
    System.out.println( "ejbLookupSecurity() sbGetAauthLocalRef: create error: " + ex );
    } catch (Exception ex) {
    System.out.println( "ejbLookupSecurity() sbGetAauthLocalRef: general exception error: " + ex );
    Some how the default create method (create()) get called all the time.
    create( boolean logActivity, String dbCodedNameAauth, String uname, String pswd )
    is never called even though that is the method I call in the client code.
    In reality, I do not need ejbCreate() but if I dont add it to the session bean
    my application does not run because the app server throws a method not found exception
    when the client code calls the create method of the session bean above.
    Am I missing something? I followed the Cart example in the tutorial. Below is the home interface.
    I am using App Server 8 1.4.02 2005Q2 edition
    public interface aauthfacadeHome extends javax.ejb.EJBHome {
    public aauthfacade create() throws CreateException, RemoteException;
    public aauthfacade create( boolean logActivity, String dbCodedNameAauth, String uname, String pswd ) throws CreateException, RemoteException;
    }

    Hi,
    A stateless session bean can have only 1 ejbCreate method and that doesn't take any parameters. you may provide an init method which you can call just before calling your business method where you can initialize all your variables.
    Hope this helps.
    Cheers,
    vidyut

  • Can't log out of App Server

    Sun Java System Application Server Enterprise Edition 9.1 (build b13)
    We have several EARs running against Sun App server and using Container Form based authentication.
    In the applications, we have a Logout link. The Logout link triggers an action in the application, and that action invalidates the user session. It then forwards them to our "index.jsp" which is controlled by the servlet security settings.
    But the problem is that the user is not "logged out". When they hit the index.jsp, it does not prompt them for a login, not does it prevent them from going anyplace in the application.
    Any ideas as to why the container does not log them out? We do have SSO enabled in the app server. Is there a better technique for logging a user out?

    I have fixed it...The solution was to reboot the iPhone.  Shut it down, turned it back on, and then the problem apps went away.  I had to resynch them from iTunes.

  • How to run Applet programe in IE

    I' am beginner in java & i want to run applet in IE.But when i tried to do it in IE,"page can not displayed" error is shown.
    why this is so?
    which steps to follow?

    which JVM is used by IE? The 1.1.8JVM from IE is very old so you should use a Java2 JVM or a Swing-Plugin for IE

Maybe you are looking for