OracleAS MapViewer Bean

Hello,
I'm using the OracleAS MapViewer Bean in my JSP application. As said in the use guide, this Bean is used for all maps created during the current session. But for me, it's a problem because when I close a first map (with addPointFeature, addWMSMapTheme and addJDBCTheme functions) and want to create a second one (with the same functions but with another data), information of the firsts is always there.
Does anyone know how to put the scope of the Bean to page and not still to session?
(As in the tag
<jsp:usebean
id="BeanName"
class="com.XXX.class"
scope="page">
</jsp:usebean>
Thanks in advance.

The API has methods (such as deleteAllThemes, removeAllPointFeatures) to clean your current request. You can use these methods before creating the second map.

Similar Messages

  • Where do I find *the* mapviewer bean

    I have been reading this forum and I see people talk about "the" mapviewer bean, I would like to use this bean in my forms, but I can't seem to find it.
    Should I write my own Bean around the MapViewer class?

    the class oracle.lbs.mapclient.MapViewer class is the 'bean'. It's got everything you need to talk to Mapviewer from your Web app.
    this class is packaged inside the mvclient.jar file, which is located in your deployed/unpacked MapViewer directory, under $OC4J_HOME/j2ee/home/applications/mapviewer/web/WEB-INF/lib.
    thanks

  • Bounding Theme With Mapviewer Bean

    Hello
    I using the MapViewer Bean to render a map in Oracle Forms. I can successfully show the map and use addJDBCTheme to add a dynamic theme. I am now trying to zoom in/out on the map so the image returned shows all items in the dynamic theme. Does anyone no how to do this using the bean?
    TIS Chris

    Hi Joao
    Thanks for the reply.
    Although I have read about this procedure in some MapViewer documentation I am unable to get to it through the MapViewer java class - I am writing a bean that utilises this class and this method does not appear to to be in this class. Do you know of any other way a can access it?
    Thanks
    Chris

  • MapViewer Bean Feature Requests & Bug Tracking?

    Hi-
    I'm wondering where I should post feature req's and bugs for the MapViewer bean. Is there a place where these things are tracked?

    Please post here. The dev team will collect and track them internally. Or if you are a customer you can always go to metalink.oracle.com and post over there. The product id for mapviewer is 1215.
    thanks,
    LJ

  • MapViewer Bean Feature Selection

    I have written a java applet that uses the Mapviewer bean to set up and render a map based on Oracle spatial data. So far, so good. I have written tools to Zoom in, Zoom out, Pan etc etc. I now need to extend this as follows:
    1. Given the primary key of a feature (or set of features), I need the mapviewer to be able to highlight those features in the map (using some specified highlight color) and to zoom to the relevant extent.
    2. I need to be able to allow the user to select a rectangle on the map (using a rubberband tool that I already have in place) and have the mapviewer highlight all the features within the rectangle and also return the primary keys for all features found using a spatial query.
    The java applet needs to be thin. It will be running on slow networks so it can't be downloading large amounts of data.
    Having read the documentation, you need to set the themes to clickable before you can highlight them. This then means that the features are downloaded to the client - presumably ending up with large amounts of network traffic.
    Is there any way we can achieve what we need as described above?

    Please post here. The dev team will collect and track them internally. Or if you are a customer you can always go to metalink.oracle.com and post over there. The product id for mapviewer is 1215.
    thanks,
    LJ

  • The Oracle MapViewer brings the WebLogic Managed Server to crash

    Problem Description: The Oracle MapViewer brings the WebLogic Managed Server to crash, when we call a GetMap-Request with wrong Coordinates.
    This was found out for the SRS=EPSG:25833. Example:
    http://igdb-qm-svra1.blva.bayern.de:8080/mapviewer/wms?
    REQUEST=getMap&
    Version=1.1.1&
    LAYERS=&
    FORMAT=image/png&
    TRANSPARENT=false&
    STYLES=&
    Datasource=igvert_alkis_wms&
    basemap=AT_WMS_TN-KOMPLETT&
    SRS=EPSG:25833&
    BBOX=3.32358690717E7,5529425.0143,3.32369088846E7,5530464.8272&
    WIDTH=500&
    HEIGHT=500&
    With the Enterprise Manager was also evaluated during and after a crash of Server the SQL-Statements.
    If the SQL statements executed on the database itself, it takes a few seconds after a correct answer returns.
    I know that have the look for the EPSG coordinate as follows:
    BBOX=235869.071700,5529425.014300,236908.884600,5530464.827200&
    My question therefore: Why are these coordinates by the Oracle MapViewer approved and not caught? An Request with incorrect
    coordinates goes into a StuckThreads and then the ManagedServer crashed.
    In the appendix you will find the evaluation of the Enterprise Manager.
    I have tested the request with two different versions of Oracle MapViewer (Ver11_1_1_5_B110527 and Ver11_B100426). In both the same problem occurs on.
    I have also filed an SR.
    Best Regards
    Kerstin

    Hi,
    Can you confirm that you're trying to setup a managed server on another machine using the pack/unpack commands ?
    You might to want to take a look at that post.
    Clustering of 2 Physical server
    Hope that helps !
    Regards

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • Oracle MapViewer 12.1.3 and WFS-T (Transaction) Service

    Hello,
    I am new to Oracle MapViewer.
    Does Oracle MapViewer 12.1.3 supports WFS-T (Transaction) Service similar to ArcGIS Server 10.2?
    ArcGIS Help (10.2, 10.2.1, and 10.2.2)
    "WFS is a specification published by the Open Geospatial Consortium, Inc. (OGC), for serving geographic features on the Internet.
    A WFS service with transactions (WFS-T) allows WFS clients to apply edits (inserts, deletes, and updates) to the data in the source database through the WFS service."
    Thanks,
    Marcelo Marques
    Esri Technical Manager, OCP

    Hello,
    I am also having a hard time to understand all the required software and installation process to create a simple WFS service, the documentation is not very clear.
    - Oracle® Spatial and Graph Developer's Guide 12c Release 1 (12.1)
    http://docs.oracle.com/database/121/SPATL/toc.htm
    - 10 Introduction to Spatial Web Services
    http://docs.oracle.com/database/121/SPATL/sdo_webserv_intro.htm#CHDGBDCE
      10.3 Setting Up the Client for Spatial Web Services
      Before anyone can use Spatial and Graph web services, you, as an administrator with the DBA role, must ensure that:
      •The $ORACLE_HOME/md/jlib/sdows.ear file is deployed into an OC4J instance.
      •The necessary database connections are defined (if you accepted the default location for the sdows.ear file deployment) in the <j2ee_home>/home/applications/sdows/META-INF/data-sources.xml file. This file defines database connections available for use with all web services, including OpenLS and WFS.
      You should then examine and modify the <j2ee_home>/home/applications/sdows/sdows/WEB-INF/conf/WSConfig.xml file, which controls web services behavior. Example 10-1 shows the Oracle-supplied WSConfig.xml file, which you should modify as needed for your system environment. For more information about how to modify this and other files, see the Readme.txt file for the wsclient.jar demo file (described in Section 10.4, "Demo Files for Sample Java Client").
    What do I need to install? How do I deploy OC4J? How I deploy this in Weblogic or Glassfish? How do I deploy the .ear file in OC4J?
    I am a beginner and need more clear instructions .
    Deploying an EAR File to OC4J From the Command Line
    http://buttso.blogspot.com/2006/11/deploying-ear-file-to-oc4j-from.html
    15 Web Feature Service (WFS) Support
    http://docs.oracle.com/database/121/SPATL/sdo_wfs.htm#CIHEFGJJ
    I need something easier to follow, like this tutorial
    - Installing and Configuring Spatial Web Service in OC4J
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r1/prod/install/swsinst/swsinstall.htm?cid=4194&ssid=5275317476097
    But how I do the same in OC4J/Weblogic/Glassfish? and in 11gR2 and 12c?
    Any help is appreciate.
    Thanks,
    Marcelo

  • Controlling access to Oracle Mapviewer spatial data through VPD

    I am building a web GIS application in Oracle Application Express (APEX) and have used the Virtual Private Database feature of Oracle Database 11g Enterprise Edition so as to ensure row level security. I've integrated APEX with Oracle Mapviewer through Oracle Maps API in order to display a map.
    VPD feature is working properly through the command prompt at the database level but I also need to use the VPD policy at the application level so that each authenticated user can only see his own spatial data on the map.
    So far I have accomplished that by creating as many data sources as the number of application users on the mapViewerConfig.xml file. Every time a user logs in the web GIS application, the correct data source is being employed.
    I was wondering if there is any other parameterised way that I can perform this access control functionality without having to create all these data sources.
    Many thanks in advance.

    Yes you can define a single "secure" MapViewer data source to achieve VPD or make use of your database VPD setup. For more details and how to get the Apex app user to MapViewer and then onto VPD you can check out my blog post here: http://oraclemaps.blogspot.com/2008/09/apex-oracle-maps-and-secure-mapping.html
    hope this helps,
    LJ

  • How to set proxy credentials to access wms services in Oracle Mapviewer

    Hi,
    I use Oracle Mapviewer v. 11_1_1_4 and I want to access WMS service but my LAN uses a proxy server that requires authentication.
    The mapviewer configuration file doesn't allow setting 'user' and 'password' proxy parameters. Other threads report this problem like the following:
    https://forums.oracle.com/thread/620366
    The previous thread is five years old. Are there other solutions now? Does last mapviewer allow users setting proxy authentication?
    Can anyone help me?
    Thanks,
    Arturo

    go to commons-httpclient-3.1\docs\tutorial.html. In the left hand side you will get a link named as " user guide" and under that "Authentication Guide" link. check it out.

  • Access to non spatial tables in oracle mapviewer/ oracle maps V2

    Hello,
    We want to have access to non spatial oracle tables (for value list creation etc), existing in oracle mapviewer spatial datasource (ex datasource: MVDEMO/ nospatial table: Employees).
    We have allready created the datasource MVDEMO and we want to avoid the creation of an external datasource to the same oracle user.
    Thxs,
    Bill

    Thanks.  Your answer was very helpful.  It pointed me in the right direction.  I wanted to be able to generate a table, below the map, which listed all the points (and their associated data) shown on the map.  The simplified code I used is shown below.  The function is called using an event listener (map.addListener(OM.event.MapEvent.LAYER_ADDED, createTable) which fires after the pointlayer is added to the map.
    function createTable(evt) {
        var tableRecords = pointLayer.getAllFeatures();
        var tableRecordsAttr = pointLayer.getAttributeNames();
        divElem = document.createElement('div');
        tableElem = document.createElement('table');
        tbodyElem = document.createElement('tbody');
        rowElem = document.createElement('tr');
        // create the table headings     
        for (var i = 0; i < tableRecordsAttr.length; i++) {
            colElem = document.createElement('th');
            colElem.appendChild(document.createTextNode(tableRecordsAttr[i]));
            rowElem.appendChild(colElem);
        tbodyElem.appendChild(rowElem);
        // populate each row of the table with data
        for (var i = 0; i < tableRecords.length; i++) {
            rowElem = document.createElement('tr');
            for (var j = 0; j < tableRecordsAttr.length; j++) {
                colElem = document.createElement('td');
                colElem.appendChild(document.createTextNode(tableRecords[i].getAttributes()[tableRecordsAttr[j]]));
                rowElem.appendChild(colElem);
            tbodyElem.appendChild(rowElem);
        tableElem.appendChild(tbodyElem);
        divElem.appendChild(tableElem);
        document.getElementsByTagName('body')[0].appendChild(divElem);

  • What jar file contains oracle.ifs.beans and oracle.ifs.clients classes?

    I am trying to build some code which needs oracle.ifs.beans and oracle.ifs.clients packages and classes. I have downloaded the following:
    OracleAdministrativeClientUtility
    OracleApplicationServer
    OracleContentManagementSDK
    OracleIIOPClientLibrary
    OracleJDeveloper
    OracleRMIClientSideLibrary
    OracleSOA
    OracleWebServicesClientLibrary
    None of these appears to contain the oracle.ifs packages.

    oracle.ifs.beans and oracle.ifs.clients packages are for the Oracle Internet File System. Are the following JAR files available?
    repos.jar
    adk.jar

  • Oracle Mapviewer Commercial Use

    Dear Sirs,
    Are there any well known examples of Oracle Mapviewer used commercially as a GIS Webserver?
    Thank You

    Hi,
    Warsaw City GISPortal
    http://mapa.um.warszawa.pl/mapaApp1/mapa?service=mapa
    currently only in PL language
    technology stack:
    Spatial+WLS(cluster) +MapViewer 11.1.7(js v1 API)
    BR,
    Tomek

  • I tried Oracle Java Bean for getting client IP but keep getting 127.0.0.1

    We implemented Oracle Java Bean demo that reads client
    information as we need to know the IP address of the client.
    Everything works fine except that we keep getting the loopback
    address (127.0.0.1) instead of the client IP address.
    Any advice?

    I figured out what was happening and thought I should post the resolution in case it helps someone else.
    I have both the original ToyStore app and my new app running against the same schema. Fine so far, since they don't use the same table names and this is just for early development.
    The problem comes because they also use the same schema for maintaining the "Stateful" release mode. So they were both accessing the PS_TXN table to maintain state. For some reason, this worked for a while, but started failing yesterday. Clearing out the PS_TXN table when switching apps solved the problem.
    Clearly the admonition to use a separate schema for the internal connection used by the state management logic is a wise one! :-)
    Dennis

  • Straight lines are displayed as curved in Oracle Mapviewer

    Hi,
    we're using Oracle Mapviewer to display land area singlepart polygons (3003) from Oracle Spatial table called sdo_kol. The table has an attribute of mdsys.sdo_geometry. I'm pretty sure that data is loaded correctly using shp2sde tool from arcSde tool pallete. The thing is, when displaying the area's using ArcMap 8.3 we get the polygon shape on the screen. But when we look at the same thing through the Map Viewer the polygon lines look like zig-zag lines instead of straight lines.
    Anyone has an idea why?
    Cheers.
    Message was edited by:
    user526816

    I have tried the fast_unpickle option. I've set the fast_unpickle to false in user_sdo_maps (we're using predefined themes), or even issuing a manual xml api request with fast_unpickle = "false". I still get zigzag lines.
    This has to be a bug in 9.0.4 version of map viewer. Our geometries are of type 3003 and 3007 and one polygon has a lot of vertices, so that might be a rounding problem. We'll try the same thing on 10.1.2.0.2 and see what happens.
    Many thanks for your help, you have been very kind.

Maybe you are looking for

  • Time limit is not working correctly

    I'm using a dot-connection task in which my participants have to complete a picture by 'drawing' a line with the mouse to connect numbered dots. They get a time limit of 10 seconds to do this; and they have to do it with three different pictures, so

  • Making a loaded external image into a button in Actionscript

    My name is Steve Oatman I am a student at AIO for a Web Design Diploma class: Interactive Telecommunications IMD412 XA Professors to bussy! I have a flash web site that I am putting together. I am using AS to load some images from an external source.

  • Problem with URLDecoder.decode(s, enc)

    Hi! I'm having problems with the URLDecoder.decode(s, enc) method... When I send a string, encoded with the Javascript escape() function, to the server side of my application, I get a problem decoding it using this: myString = URLDecoder.decode(myStr

  • House Cleaning (OWB)

    Hi, Currently my mappings are running fine. I just need to know some info on cleaning up my OWB audit and logs tables. My tablespace for OWB is increasing and how can i do a cleaning activity every month? Please give me some suggestion. Regards Raj

  • Maximize compatibiliy issue/ Importing into LR

    New problem, never had it before. I opened 20 DNG files in PS, did some work and saved as PSD. I tried to import them into LR, but it says I need to go back to PS, and save them with maximize compatibility on. In fact, maximize compatibility was off.