HTTP server embedding in RMI

Hi
I know that you can embed a simple http server in to RMI so that it can send and receive remote classes. (my refrence is to the use of classFileServer.java and ClassServer.java)
I was wandering if somebody could direct me to an tutorial or provide me with some code example in order to eplain how it works and can be embedded into an simple rmi example.
Thank you
Bart

you don't need a server if you are just using a remote
object
however, there are many times where you may want to
serve class files via web server. if that's the case,
do this:
install apache, it's free and it's the best, and if
you're on windows, the installation is a breeze
next, go to the docroot folder of apache (where you
would normally store web pages), create a directory
called classes and put your classes in there. Then you
can access any class by doing this
www.myweb.com/classes/MyClass.class
very simple stuffSorry ,but thats not what i was intrested.
Although thanks for the insight.
My refrence was to the ClassFileServer.java and ClassServer.java that allow classes to be sent between that JVM's. In the readme file that came with these java files, it said that you can implement these classes inside your RMI code.
My question is does anybody know how to implement these classes inside the RMI code ??
Thanks
Bart

Similar Messages

  • 3 HTTP Server. which to choose?

    I have installed db11gR2 and upgraded APEX to version 4 on my Linux server with EPG.
    There are 3 kind of HTTP Server
    Oracle HTTP Server
    Embedded PL/SQL Gateway
    APEX Listner
    I installed EPG, but after installation of this, I found and I read that
    The EPG is convenient for smaller configurations. The EPG is not recommended for larger scale production use cases or Internet facing applications.
    and yet
    For this reason, it is not recommended to use the embedded PL/SQL gateway for applications that run on the Internet. Additionally, the embedded PL/SQL gateway does not provide the same flexibility of configuration and detailed logging as Oracle HTTP Server with mod_plsql.
    So I ask myself 'maybe I'm wrong and I had to install another'.
    So, Could someone tell me what the most appropriate in a production company with 300 end users and internet access, or pointing me a link where I can find info on this topic.
    Thanks in advance!

    "However, now I begin to use EPG with Apex, I'm a beginner with Apex, then believe I can uninstall and configure the OHS (the 11g Fusion I think).
    Is it true, I can de-install Epg and configure OHS?"
    You don't actually need to uninstall the EPG, just follow the installation instructions for OHS to connect to your existing Apex installation. I think OHS is your best bet for external facing Apex applications. I'm much less interested in the Apex Listener since support for Tomcat was dropped which is our Java container of choice.
    If you want to turn off the EPG it is as simple as SQL> exec dbms_xdb.sethttpport(0)
    This command shows you what the current port is set to and will also show with a -> >$ lsnrctl status
    SQL> select dbms_xdb.gethttpport from dual;
    8888
    On a separate note can anyone point to any real issues with the EPG?? It is my generally preferred choice for smallish intranet type applications (ie rman> backup database; - really does backup the entire application and data). I keep reading it is not recommended but without seeing any real details of why. My only real issue so far has been trying to read HTTP headers in the XE EPG but otherwise it seems to work well for my needs.

  • Virtual Directory Change from Oracle HTTP Server to Embedded PL/SQL Gateway

    We finally upgraded from htmldb 1.6 to ApEx 3.1.2 late last year. This was in conjunction with setting up a new server and installing Oracle 11g DB, while our production DB is still 10g. During this install, I opted for the Embedded PL/SQL Gateway, whereas our htmldb is running with the Oracle HTTP Server.
    During the conversion of one of our applications I learned that Virtual Directory references to #IMAGE_PREFIX# are no longer valid for custom CSS so I had to change an entry in the page templates that I'm using to use #WORKSPACE_IMAGES#. Now I am importing another application from our htmldb 1.6 environment to our ApEx 3.1.2 environment, and I have a new problem that I think is related.
    In this application we have been uploading report files for outside users to be able to download at their convenience. I think the upload is working OK, but when I try to download the report file I get the following:
    Not found
    The requested URL /apex/IMR.ofile was not found on this server.
    The download is accomplished with a link on an SQL Report region. The Column Link info is:
    Link Text = <img src="#IMAGE_PREFIX#edit_big.gif" border="0" alt="Icon 1">
    Target = URL
    URL = #OWNER#.ofile?p_file=#VIEW_REPORT#&v_auth=&APP_USER.
    When I change the Link Text to <img src="#WORKSPACE_IMAGES#edit_big.gif" border="0" alt="Icon 1"> I lose the Edit Icon image. However, what I'm really concerned about is the URL not found error
    Now, maybe I'm barking up the wrong tree, so if the problem isn't related to virtual directories, which tree should I be barking up?
    Any suggestion?
    Thanks,
    Gregory

    Is the IMR.ofile a custom package for downloading files? If so, you might need to add it to the wwv_flow_epg_include_mod_local function.
    I am not certain how this function also plays into the embedded pl/sql gateway, but do know it would affect this running through Oracle HTTP server when configured with the before proc.
    With the embedded gateway it may very well be that you need to add this package into the ACL for outside availability.

  • Can you run Embedded PL/SQL Gateway and Oracle HTTP Server at the same time

    Hi,
    I know this will sound a bit odd but their is a business case for asking this. Can you run APEX via the Embedded PL/SQL Gateway and the Oracle HTTP Server at the same time? Would their be any security/stability/etc issues I'd need to worry about? I know that I'll need to run them on different ports.
    Thank you,
    Martin Giffy D'Souza
    [http://apex-smb.blogspot.com/]

    I think I've done this in the past. Theres no technical reason why you can't do this as far as I know.
    I can't remember if I used different ports or same port.

  • Logging into APEX through Oracle XML DB HTTP Server and Embedded PL/SQL

    Hi,
    I have just finished installing Apex 3.0 on RHEL 4. I am not using HTTP Server, but Embedded PL/SQL. When I go to the page administrator page http://host:8080/pls/apex/apex_admin a prompt pops up and when I give the username as "admin" and the password then it doesn't log me in. I ran the apxconf.sql script and reset the admin password and it is still not letting me log in.
    Please advise

    Unfortunately, using the pl/sql gateway is not yet supported. The documentation should be more clear about that.
    You'll need to use the HTTP server.
    See FAQ #8:
    http://www.oracle.com/technology/products/database/application_express/html/3.0_fsps.html#08

  • Embedded HTTP Server Logging

    WebLogic's embedded HTTP server seems to buffer requests prior to dumping them to a log file. Documentation in previous releases indicated that this behavior could be controlled, however those options are missing from the current Oracle releases. How can I control the buffering of messages to the access.log file? I want to be able to watch requests in real-time as they are received by the server.

    Hi,
    Http Log Buffers improves the performance of the Server...still if you want to see the real time data at the same moment then you can try tuning the "*Log Buffer Size*".
    This attribute can be controlled from MBean: weblogic.management.configuration.WebServerMBean...which has Log Buffer Size attribute. The default value of this Attribute is "8 KB" ... Maximum value can be assigned upto "1024KB"....In your case if you want to see the immediate data then you can set it to "0 KB".
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
    Edited by: Jay SenSharma on Jan 31, 2010 10:30 PM

  • Embedded HTTP server in weblogic vs OHS

    Hi,
    I have installed EPM. Along with it weblogic is installed. I forget to install OHS so weblogic is using it's own HTTP server.
    I have some questions related to embedded server vs OHS.
    1 - Will embedded HTTP Server will work as fine as OHS?
    2 - Is there any speed difference between 2 servers?
    3 - I am having a lot of unusual issues, could it be due to embedded HTTP server?
    Regards

    Hi there JanGLi,
    your question is rather architectural than technical.
    The use of OHS should be dictated by your environment topology.
    1 - Will embedded HTTP Server will work as fine as OHS?
    Sure. WLS is designed and can work standalone, i.e. without requiring
    OHS in front.
    2 - Is there any speed difference between 2 servers?
    Though I have NOT done any stress tests to compare OHS vs WLS in serving
    content, I expect the OHS to better serve static content, i.e. images,
    JS, css, etc.
    I would say that OHS is required when you are running web based
    applications distributed among several DMZ's where OHS should be in your
    Internet zone and WLS in the application server zone. You can also
    offload WLS from SSL, i.e. you can configure OHS to handle the SSL
    communication and leave the WLS to do its job - running JEE components.
    3 - I am having a lot of unusual issues, could it be due to embedded
    HTTP server?
    In your case I doubt that the problems you are experiencing with EPM are
    due to the lack of OHS in front. If your are more specific in the issues
    you are facing I (or someone else in the community) might be able to
    help you.
    Hope this helps,
    A.

  • JDev 9.0.3.1035 - Error starting HTTP-Server: Address in use: JVM_BindHello

    Hello, we are unable to use JDev 9.0.3.1035.
    We installed your distribution and set it up as follows:
    1. Linked to CVS and checked out our project which works just fine under JDev 9.0.2
    2. Added libraries for Jakarta ECS and MS SQL Server JDBC drivers.
    Then we can run it once successfully. Close browser and terminate embedded OC4J Server and run project again and we get the following error:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\jdev\j2ee\home\oc4j.jar -Dhttp.proxyHost=APOLLO -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\jdev\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error creating the ORB :
    Error starting HTTP-Server: Address in use: JVM_Bind
    The IDE then sits there until it times out.
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120190 ms.
    Target URL -- http://192.168.254.20:8988/Long postings are being truncated to ~1 kB at this time.

    Target URL -- http://192.168.254.20:8988/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    We are now unable to continue running/testing/developing our project. We do not want to have to manually change the port number each time we run it. This problem occurs both in Win 2000 PRO and Win XP Pro. We have tried every combination of OC4J server host names, HTTP Server ports and Web Browser proxy settings.
    A similar problem was fixed in Rel 9.0.2 by changing the Host Name of the embedded OC4J server to localhost from the IP address.
    Would appreciate some help because we would like to take advantage of the new features in your product.

  • JDEV 9.0.3.1035 - Error starting HTTP-Server: Address in use: JVM_Bind

    Hi, we installed and configured JDEV 9.0.3.1035 and are experiencing this persistent problem, whenever we try to run our app the second or any subsequent time:
    C:\JDEV\jdk\bin\javaw.exe -ojvm -classpath C:\JDEV\j2ee\home\oc4j.jar -Dhttp.proxyHost=DELL -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts= -Xverify:none -Doracle.j2ee.dont.use.memory.archive=true com.evermind.server.OC4JServer -config C:\JDEV\jdev\system9.0.3.1035\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    [waiting for the server to complete its initialization...]
    Error starting HTTP-Server: Address in use: JVM_Bind
    Error creating the ORB :
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    **** Warning: JDeveloper timed out waiting for OC4J to startup.
    **** Please check your HTTP proxy server settings in the IDE Preferences dialog.
    Embedded OC4J startup time: 120156 ms.
    This is happening since we switched from JDEV 9.0.2 which always started up cleanly. It appears that the port is not being released on OC4J server termination. We are not running any other web servers and verified all open ports with netstat -a.

    Target URL -- http://192.168.254.20:8988/eStarGlobal-eStarGlobal-context-root/servlet/com.estar.servlet.eStarMainServlet
    We are now unable to continue running/testing/developing our project. We do not want to have to manually change the port number each time we run it. This problem occurs both in Win 2000 PRO and Win XP Pro. We have tried every combination of OC4J server host names, HTTP Server ports and Web Browser proxy settings.
    A similar problem was fixed in Rel 9.0.2 by changing the Host Name of the embedded OC4J server to localhost from the IP address.
    Would appreciate some help because we would like to take advantage of the new features in your product.

  • Can Oracle HTTP Server 2.0 be installed with Oracle App Server 10.1.3.4.0?

    Or I guess a related question is what version of apache comes with the latest App Server Patch Set (10.1.3.4.0)?
    We are running OAS 10.1.3.3.x and we are having issues with URLs that end in a number but which have query parameters at the end.
    E.g. http://<stuff_here>/1?type=table&format=html
    The URLs come from REST-ful GET operations. It seems like the HTTP server just ignores the query parameters completely.
    When we run against stand-alone OC4J which includes an embedded HTTP server, such URLs work as expected.
    We are hoping that perhaps the latest patch set for the full Oracle Application Server 10g will overcome this issue.
    But if we need to move to a later Oracle HTTP Server (like the one that comes as an option for the Oracle 11g database installation) we would be willing to do so.
    Comments related to this are welcome.
    Thanks
    Jim

    Hi,
    Does anyone have experiece getting Apex working with secured BI publisher?
    The error I am getting when PDF printing from Apex to BI pub is:
    "ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
    Error failed
    OK "
    Please note, network services in 11G are already configured; thus I am able to print from Apex to non-secured BI pub.
    Thanks,
    Jed

  • Change APEX from HTTP-Server to 11g

    Hello together
    I installed an Oracle 10gR2 Database and Apex 3.1 is running on the HTTP-Server (from the 10gR2 Companion CD).
    Now i want to upgrade to 11g and use the embedded PL/SQL Gateway so that i can turn off the HTTP-Server. Have you got any tips to do that ? Is there something specially ?
    Thanks for your help.

    Andrew, there is a number of posts on this forum with exactly the same issue and resolutions to the issue. Please search the forum. If you do not find a solution, let me know and I'll help you from there.
    Ludek

  • HTTP Server - what to select

    Hi,
    While installing APEX I see below instruction -
    2.3 HTTP Server Requirements
    In order to run, Oracle Application Express you must have access to one of the following:
    Oracle Application Express Listener
    Embedded PL/SQL gateway
    Oracle HTTP Server and mod_plsql
    Not clear on what these option are and what to choose. I don't know about java. I have installed Oracle in my system with default database. Can someone tell me what to choose here? Many thanks.

    Which version and edition of DB? Version of Apex?
    If you are using XE then EPG is already installed and good for you. And will recommend not to bother about other choices till get more familiar with Apex.
    The choice has more to do with what you already have installed, the available infrastructure ,licensing costs,etc.
    At a broad level
    a. Simplest out of the box : EPG. Good for learning and dev, not the best choice for Prod
    b. ApexListener. Standalone or with J2EE container. Standalone to learn , with J2EE for something more serious.
    c. OHS: If you already have OHS installed or some reasons to use it. It runs fine and has been around longer. Its just that Apexlistener is the one developing faster.
    Regards,

  • Web Service and Oracle HTTP Server

    I have a web environment with Oracle Database 10.2.0.3 , oracle http server (using mod_plsql), Oracle pl/sql web toolkit. I need to create a web service that is accessed externally which will interact with the database (select, insert, delete). Is it possible to publish a web service to the Oracle Http Server or to implement web services with the environment above

    Hello,
    In RDBMS 10g you cannot directly expose WS from the DB you need to use the OracleAS Web Service Runtime to do it, following this documentation:
    - Developing Web Services that Expose Database Resources
    This is true if we are talking about "tooling/runtime/API" but after all Web Services are mainly XML (WSDL and SOAP) so it is still possible to create by hands (PL/SQL & static files) but it is probably a long work depending of the complexity of your services.
    Also, in RDBMS 11, you can now directly expose WS from the DB using the embedded HTTP server, see this Oracle 11g New Features Document
    Note that before taking one approach you must take time to write up your requirement regarding Web Services eg: do I need security, which time of encoding, interoperability, ..., ... For example WS-Security that is the standard to secure SOAP messages is not (yet) supported by the Oracle 11g RDBMS Native Web Services... where when you do use the WS-Runtime you can secure the Web Service..
    Regards
    Tugdual Grall

  • What kind of server can host RMI

    I am trying to use RMI, however there are some simple question about the server type I want to ask. A. Is it possible to use a http server like www.myschoolurl.edu/~mypage? I can only access the root directory of ~mypage in a unix system. B. Can I use Windows 2000 professional's default Server to host RMI if I have a unique IP? How?
    Thanks

    Hi
    Im afraid i do not understand your question but i will try to explain the basic concept of the RMIRegistry which is the part of the 'RMI Server concept' which binds itself on a port.
    The RMIRegistry is a mapping mechanism which maps a identifier (a 'String' in java) to a Object which has methods (defined in the interface) which you can call from a remote host.
    So.. this RMI Server says:
    If somebody wants to to have 'Object1' (called a 'lookup') the server searches the object and if it is availible, he will return it to the caller.
    About the server type: you can run the rmi server anywhere where you can run java.
    You can start this rmiregistry with a java method or start a seperate registry via the 'rmiregistry' binary.
    for example: on windows you can start it with: start rmiregistry.. on unix ./rmiregistry &
    (this binaray is located in $JAVA_HOME/bin)
    as far as i know there are possibilities to use rmi over HTTP.
    one example uses SOAP (simple object access protocol) which uses xml to transport the information...
    i hope this helps...
    greets
    mike

  • Oc4j server embeded in Jdeveloper 10g is not ruuning

    hi,
    1.
    I am trying to run ocrj server embede in Jdeveloper from command promt
    for which as given step in Jdevelioper handbook , i proceeded as executing
    setvars -go from directory jdev\bin , but i am getting the following error
    D:\JDev\jdev\bin>setvars -go
    Using JDeveloper installation in "D:\JDev\jdev\"
    Using JDeveloper root in "D:\JDev\"
    'findstr' is not recognized as an internal or external command,
    operable program or batch file.
    2. if i proceed next step without caring the previous step , the server is start but vanished instantly
    i am using Windows XP(sp 2) jdk 1.4
    pz can any one will guide me
    log file showing the following message
    06/02/13 20:25:11 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear...
    06/02/13 20:25:12 Auto-unpacking D:\JDev\BC4J\redist\bc4j.ear... done.
    06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear...
    06/02/13 20:25:19 Auto-unpacking D:\JDev\soap\lib\soap.ear... done.
    06/02/13 20:25:19 9.0.4.0.0 Started
    06/02/13 20:26:34 9.0.4.0.0 Started
    06/02/14 18:23:07 9.0.4.0.0 Started
    06/02/14 18:23:14 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/02/14 18:23:14 Recovery completed, 0 connections committed and 0 rolled back...
    06/02/14 18:23:14 9.0.4.0.0 Started
    06/02/15 09:58:49 9.0.4.0.0 Started
    06/02/15 09:58:55 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    06/02/15 09:58:55 Recovery completed, 0 connections committed and 0 rolled back...
    06/02/15 09:58:55 9.0.4.0.0 Started
    06/02/15 10:03:58 9.0.4.0.0 Started
    06/02/15 10:03:58 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 10:04:13 9.0.4.0.0 Started
    06/02/15 10:04:14 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 10:41:12 9.0.4.0.0 Started
    06/02/15 10:41:13 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:20:46 9.0.4.0.0 Started
    06/02/15 12:20:46 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:02 9.0.4.0.0 Started
    06/02/15 12:21:02 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:26 9.0.4.0.0 Started
    06/02/15 12:21:27 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:34 9.0.4.0.0 Started
    06/02/15 12:21:35 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:21:43 9.0.4.0.0 Started
    06/02/15 12:21:44 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:28:23 9.0.4.0.0 Started
    06/02/15 12:28:23 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:29:45 9.0.4.0.0 Started
    06/02/15 12:29:46 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:30:37 9.0.4.0.0 Started
    06/02/15 12:30:37 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 12:43:34 9.0.4.0.0 Started
    06/02/15 12:43:35 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 13:01:43 9.0.4.0.0 Started
    06/02/15 13:01:43 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 14:59:13 9.0.4.0.0 Started
    06/02/15 14:59:13 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 14:59:32 9.0.4.0.0 Started
    06/02/15 14:59:33 9.0.4.0.0 Stopped (JVM termination)
    06/02/15 15:05:39 9.0.4.0.0 Started
    06/02/15 15:05:39 9.0.4.0.0 Stopped (JVM termination)
    Waiting for your response
    Rgds
    nripa

    Thaks Frank ! I did as your suggestion and in the command line the following message comes
    D:\JDev\j2ee\home>java -jar oc4j.jar
    06/02/16 10:53:01 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)
    initialized
    I Assumed that oc4j server statrted , I test the server using the browser to connect to http://localhost:8888 i got
    You are not authorized to view this page
    You might not have permission to view this directory or page using the credentials you supplied.
    HTTP Error 403 - Forbidden
    Internet Explorer
    i checked the port number in relevent xml file
    pz if possible support me
    Rgds
    nripa

Maybe you are looking for

  • Skype Profile & Microsoft Profile/Messenger Profil...

    I don't like the way my profile works at this moment, when i change my phone number, profilepicture or city, i need to change this on https://secure.skype.com/portal/profile and https://account.live.com/ Please only let me update https://account.live

  • Why SLD for Adaptive RFC Model?

    Hi, Is it necessary to configure the settings in SLD in order to run an adaptive RFC Model or does one have alternatives? Because, while defining an adaptive RFC Model in NW-Dev-Studio, one does explicitly enter the SAP Log on information. Regards Me

  • Re "tips and hints for your security" post above

    surely the best tips and hints would be as follows: 1: skype, implement privacy settings that actually work. if you are unable to do so, do not offer them, and do not claim that they work.  2: try another provider. 3: try not to throw your computer o

  • How can I transfer my itunes from my iPhone to my new computer without deleting my songs off of my iPhone?

    I have a new computer with new songs I have purchased. But my iPhone has almost 2,000 songs on it and I have deleted it once before by trying to transfer my songs to a new computer before. Now I am a little bit scared to even try, so... How can I tra

  • Oracle10.1.0 and gcc3.4.3 ,getString error

    environment: Red Hat Enterprise Linux AS release 4 (Nahant) Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 gcc3.4.3 ORACLE_HOME = /u01/app/oracle/product/10.1.0/db_1 compile command is: g++ -o a.out -I/u01/app/oracle/product/10.1.0/db_1/rd