Problem in using XSQL-session and connecting database

Hello
Let me explain clearly. We have some data entry screens for which we want to use session with time out option. Normally in Servlet, we use to create a session with max age option. Then everytime the browser call the servlet we use to check for session.isnew(). If it is new session then we will forward the page to Relogin (because session is timed out) or we proced with further action.
In XSQLServlet, how will do this. Do I have to create my own servlet extended from XSQLServlet ? Override the Service method and write about the session part and call
super(). Here only I am getting confused. In servlet mapping we have given for every .XSQL call run the XSQLServlet. How will I override this ?
And also we have problem with user id and password. We don't want to use the same id (system id as defined in XSQLConfig.xml) for every database connection. We want to define only the connection information like SID, Server, Port number. But user id and password should be dynamic. How can I achieve this ?
Please help us on solving these problem. Thanks.
Lakshmi
null

You'll need to implement your own classes that implement the:
oracle.xml.xsql.XSQLConnectionManagerFactory
and
oracle.xml.xsql.XSQLConnectionManager
to change the way XSQL handles connections. Using this mechanism, you should be able to implement any alternative connection scheme you choose.
If you run into problems implementing these interfaces, give us a shout here in the forum.

Similar Messages

  • Problem in using XSQL-Session

    We want to use Session information in our application. How do I use XSQL-SEt-Session-param ? Do I have to create another servlet to manage session and call the XSQLServlet from that session servlet or can I use XSQL-session elements ?
    Please help on this.

    <xsql:set-session-param> sets a session-level parameter to a value
    To refer to the session-level parameter value, just refer to its name as a parameter.
    No extra servlets needed.

  • SSL Session and Connection

    What is the difference between SSL Session and Connection. I understand, that session is negotiation of parameters and connections are built upon the sessions. But please help me understand, how it works in practicaly as in when using a Any connect client or browser, how does it function.

    How about something like:
    // It appears there may be issues with TLS...
    // so to prevent it from being used, we'll be
    // specific...SSLv3
    SSLContext context = SSLContext.getInstance("SSLv3");
    context.init(kmFactory.getKeyManagers(), null, null);
    SSLSocketFactory ssf = context.getSocketFactory();
    com.sun.net.ssl.HttpsURLConnectionHttpsURLConnection.setDefaultSSLSocketFactory(ssf);
    That do ya?
    -michael

  • Internet sessions, VPN session, and connections dropping frequently

    I'm in an apartment. This problem started about a week ago. All of my browser sessions, vpn session, and connections such as AIM or netflix drop frequently. I often have to click links twice to get a page to load. I have to reload videos a lot to get them to continue to stream. I am constantly signing in and out of AOL IM.
    I believe the problem has to do with several MoCs (coax connections) listed on my router page, and these MoCs have names of other people on them. Until I noticed them a week ago, I had only seen one MoC belonging to me listed on the router connection page.
    Thus, I think that something got crossed up of misconfigured in the ONT for my apartment complex. The gateway light on my router stays green as all of these problems happen.
    Pinging google.com, I get
    --- google.com ping statistics ---76 packets transmitted, 55 packets received, 27.6% packet lossround-trip min/avg/max/stddev = 31.282/39.339/48.217/3.548 ms
    Anyone seen this before and know how to get verizon to fix this?
    I have had nothing but problems with FIOS since getting it, and I have wasted a lot of time with their "customer support."

    I am sorry to hear about your connection problems. I have sent you a private message so we can get your information and look more deep into your connection.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • Difference between session and connection

    Not sure this is the right place for this, but I am not able to find a proper definition between these 2 terms.
    What is the difference between session and connection, theoritically speaking ?

    Hello
    In order to get the meaning of terms Connection and Session let's define first the term Flow.
    The definition of a Flow is historically accepted as:
    A unidirectional sequence of packets between 2 network endpoints that have the following 7 things in common:
    1. Source IP address
    2. Destination IP address
    3. L3 Protocol type
    4. Source port
    5. Destination port
    6. Tos (Type of Service)
    7. Input interface
    The terms Connection and Session can have many different meanings depending on the framework that they are used, but it can be said that:
    Connection: A bidirectional Flow
    Session: Many connections between the same source and same destination
    HTH

  • Using START WITH and CONNECT BY PRIOR in a report

    Hi - I am using Oracle 9i and reports 10g. Does anyone know of a reason why running my sql in TOAD will produce the correct results, but the report is dropping records? I am using start with and connect by prior to build a hierarchy of linked records. The report is dropping the "child records" and only returning records from the route level.
    Thanks you for your help.

    Hi user574499
    Could u pls share us ur Query...?
    Regards,
    Abdetu...

  • If you're trying use your hotspot and connected to wifi on your iphone, does the wifi stop working and start using your data instead of staying connected to the wifi?

    If you're trying use your hotspot and connected to wifi on your iphone, does the wifi stop working and start using your data instead of staying connected to the wifi?

    Spencer Simmonds wrote:
    Thanks for the quick response. What you have said makes sense but there is no rhyme or reason to he data used. I reset my cellular data counter to zero so both sent and received read zero. I was connected to wifi and let the phone to go into sleep mode. I waited about ten minutes and sent myself the same email four times, each with a 750 kb attachment. It was sent to my .me address so it was push mail on my phone. Sure enough I checked a minute later while bringing the phone out of sleep mode and checked the data. It showed just 10kb sent but 1mb received which just doesn't tally with the 4 x 750kb mails received. It just isn't making sense.
    He knows what you asked and has already answered it!
    I thought I had read where the iOS4 (or maybe just the iPhone 4) was supposed to be able to keep wifi connections alive while inactive. If the phone is sitting there on a charger with a wifi connection available, why use the 3G?

  • Is there anyway to solve Wifi problem on Macbook while using it closed and connected to external display?

    Hello,
    I'm using my Macbook connected to external LCD while the screen of the Macbook is closed. So I can use the full screen resoluiton of my LCD. When not closed but connected the mirroring reduces the resolution and not useful.
    But recently I recognized that when the Macbook screen is closed my fiber internet speed is down almost %50. When I test my fiber speed, when the macbook screen is open it's around 20mb/s, when the screen is closed and connected to LCD it's around 10 mb/s. I guess the wifi antenna is located at the screen I don't know. Is there any way to solve this probem? I want to use the lid closed without any sacrifice from my internet speed.
    Thanks for any answers in advance

    I have this same issue but what's strange is that it's only recently occurred since upgrading to FiOS's 50MB/s service.  I was seeing 20MB/s WiFi speeds with my previous 25MB/s service.  Frustrating!!

  • My problem in using weblogic Datasource and proxy user

    Hello
    I create a DataSource in Weblogic that connect to the database by a proxy user and I have a client application that use this DataSource and create a proxy session , I've written my client application (it's a stand alone client application) code below :
    public static void main(String [] args) {
    OracleConnection conn=null;
    javax.sql.DataSource ds=null;
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" );
    env.put(Context.PROVIDER_URL, "t3://127.0.0.1:7001");
    try{
    Context context=new InitialContext( env );
    ds=(javax.sql.DataSource) context.lookup ("OracleConnection2");
    conn=(OracleConnection) ds.getConnection();
    java.util.Properties prop = new java.util.Properties();
    prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");
    prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1");
    conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop);
    if (conn.isClosed()){
    System.out.println("Connection closed");
    return;
    testJDBC(conn,true);
    for(int k=0;k<10;k++){
    testJDBC(conn,false);
    conn.close(OracleConnection.PROXY_SESSION);
    conn.close();
    }catch(Exception ex){
    ex.printStackTrace();
    It works but my problem is that in line "prop.put(OracleConnection.PROXY_USER_PASSWORD,"web_user1")" or line "prop.put(OracleConnection.PROXY_USER_NAME, "web_user1");"
    Let me to mention a scenario :
    *1- I type a wrong username or password in my client application and I run the client application it shows me this error : invalid username/password*
    *this error is acceptable*
    *2- then I correct the wrong username or password immediately and run the application again , it shows me this error (at line conn.openProxySession(OracleConnection.PROXYTYPE_USER_NAME, prop)) :*
    java.sql.SQLException: Closed Connection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
    *3- I run the application again (by correct username and password) but this time it shows me this error :*
    java.sql.SQLException: Unsupported feature
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
         at weblogic.jdbc.rmi.internal.ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at weblogic.jdbc.rmi.SerialConnection_weblogic_jdbc_rmi_internal_ConnectionImpl_weblogic_jdbc_wrapper_JTAConnection_weblogic_jdbc_wrapper_XAConnection_oracle_jdbc_driver_LogicalConnection_1032_WLStub.openProxySession(Unknown Source)
         at oracle.HRFacadeClient.main(HRFacadeClient.java:38)
    *4 - if I repeat running the application for multi times every time it shows me the previous error*
    *5- I wait about one minute the problem solved and my application can create proxy session *
    the result is that if I wanna create proxy session by wrong username or password and I get "Invalid username/password" error message , then after correcting username or password I have to wait about one minute and then run the application again_
    Do you know how I can overcome this problem ?
    Thank you

    Hi Jamshid,
    There is same problem observed few days back with us, and we have used the below code, and it got solved. Actually there is a problem observed while using proxy connections on weblogic.
    if(conn instanceof weblogic.jdbc.extensions.WLConnection){
         weblogic.jdbc.extensions.WLConnection cn=(weblogic.jdbc.extensions.WLConnection)conn;
         cn.clearStatementCache();
    http://rocksolutions.wordpress.com/2010/06/04/connection-pool-issue-on-weblogic/
    Hope this helps.
    Thanks

  • Tracking Individual Users Scores using Captivate 4 and Connect Enterprise

    Hi,
    I work in an IT shop and currently I am having trouble supporting our Marketing division's Captivate needs. They wish to be able to create quizes for online viewing in an LMS and be able to track individual users scores for accountability. Right now I we are using Captivate 4 with Adobe Connect Enterprise. I have been able to use the LMS and view quizes online, but all reporting is done as aggregate and not a session by session (individual) basis. Thus, I only have access to average, max, min scores and other info about all test takers, but no information about specific test users. I have considered accomplishing this by sending data to an access database, but this would require the IT deparment to regularly assist them with creating tests. Obviously I am looking to have the Marketing department be as self-sufficient as they can be. I think the easiest way would be to have the quiz report a session ID (unique for each instance of the quiz being accessed) to Adobe Connect and having Connect associate each aswer to a specific session ID. Other than that I do not have any other ideas for proper tracking of each user's score.
    Does anyone know what the easiest (least amount of involvement from the IT staff each time Marketing needs to make a test in captivate) way to accomplish this?
    Thanks!

    So, i sorta found a way to do this -- by adding a TOC and making the lessons self-paced, the user will always be brought back to the place where they left off when they exited the lesson.
    But it seems that even though the icon in the curriculum list changes to CONTINUE when the user closes the lesson, it still unlocks the next lesson even though the staus checkmarks in the previous lesson are not complete.
    Help. Are there any other such postings?

  • Is there any incompatibility in using different JDBC and Oracle database versions?

    Hi everybody,
    I hope you can answer me ASAP.
    Which version of JDBC driver for Oracle could I use to access an Oracle database version 8.0.4.3.0 running on a SUN machine?
    Is it necessary to use the specific driver concerning to that version or could we use the JDBC version 8.1.6?
    If we decide to use JDBC 8.1.6 to work against the 8.0.4.3.0 database, will we find any incompatibility or problem?
    Thanks.
    null

    I don't know the answer to your question, but while looking for something else, I found a table listing "requirements and compatibilities for oracle jdbc drivers" that might answer your question:
    http://technet.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/a83724/getsta1.htm#1008206
    (My aologies if that URL gets broken apart by this posting software and you have to piece it together.)
    Hope this helps.

  • Slow Problems with Oracle Forms 10g and Oracle Database 11g

    Hi, I wonder if there is a compatibility problem between Version 10.1.2.0.2 32 Oracle Forms and Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production. This is because my application runs correctly on a version of Oracle Database 10g, and when we migrated the database to an Oracle Database 11g, slowness problems came out.
    Thanks.

    We have the same issue happening with our custom forms and with some of the standard forms in EBSO. So far we have found that the form invoking a view causes ridiculous slowness in opening the form (40 mins). Using a table access has shortened the open time significantly. At this time Oracle DBAs at OOD have no clear idea why it is happening.
    we are on 11.1 database with 11.5 EBSO
    Edited by: user3223867 on Feb 4, 2011 7:55 AM

  • XSQL Session and Cookies

    Hi, Steven,
    I have a question about cookies parameters in include-parameters.
    When set the following in my xsql file:
    <xsql:set-session-param name="current_user" value="{@sessionid}"/>
    <xsql:include-param name="mode"/>
    <xsql:include-request-params/>
    In the xml output, it looks like this.
    <request>
    <parameters>
    </parameters>
    <session/>
    <cookies/>
    </request>
    How come the session and cookies values are not appeared in XML file? However, if I reload the xsql file, the session and cookies values are there. Any idea what might be wrong or it is what should be?
    Thanks in advance.
    Julie Zhu

    I'd expect the cookies not to show up until the page request after the one in which they are set. This is correct since setting the cookies is something that's done on the response. Reading the cookies is reading them from the request.
    Regarding the session variables, it's
    always important to say what Web Servlet / Servlet Engine you're using XSQL with. Perhaps the setting of Servlet session variables behaves differently on different servers.

  • Without using order by and connect by clause

    hi all,
    can i write a tree query without using start with clause and connect by clause
    and
    can i order the employee names in a select query without using order by clause
    can those things are possible in select statement...

    dipuna wrote:
    hi all,
    can i write a tree query without using start with clause and connect by clause
    and
    can i order the employee names in a select query without using order by clause
    can those things are possible in select statement...A very odd question.
    Those clauses are the means to do what you are asking. Why would you be looking for some other method?

  • Using a dongle and connecting with an Xbox 360...

    Hi guys,
    Quick question, i've moved into my new uni place but it hasn't got any internet. So im looking at getting a dongle but I still want to hook up my xbox to xbox live. Is there a way of feeding the internet through my imac (which is using the dongle) to the xbox. If its any help i do have the extra wireless box for the xbox and also an either-net cable.
    Thanks!

    You X-Box can connect to the internet thru the Mac using either wifi or ethernet, whichever works best for you.
    If you want Ethernet, connect a cable between them
    If you want wifi, you need to first create a network.
    System prefs -> Network.
    Select Airport then click on Network name: and select *Create network...*.
    Give it a name, tick require password.
    Now go System prefs -> Sharing.
    Click on *Internet Sharing*.
    Set *Share your connection from:* and select the dongle (likely showing up as USB).
    If you connect them using Ethernet, set *To computers using:* and select Ethernet.
    If you connect them using wifi, set *To computers using:* and select Wifi.
    You will need to enable wifi on the X-Box and connect with the password you set above.

Maybe you are looking for