JDBC Sessions in SunOne WebServer and

Has anyone in here worked with JDBC sessions in SunOne Webserver 6.1 ( with ASE 12.5.x / JDBC JConnect 5.x of course )?
In SunOne 6.1 webserver, you can specifically tell it to use JDBC for session persistence:
     http://docs.sun.com/source/817-1833-10/pwasessn.html
... by using "com.iplanet.server.http.session.JdbcStore" as the "session-data-store" property. It also goes on to allow you to specify the actual column names that are used, etc...
According to the URL above, the columns are:
create table sessions
SessionID VARCHAR(100),
AccessTime NUMERIC(9),
TimeOut NUMERIC(9),
Value VARBINARY(4096)
2) What indexes are required here ??
e.g. I presume you'll need to have a unique index on the SessionID column, and perhaps an index on AccessTime ( for the repear to delete expired sessions )
3) Any working example sun-web.xml using JdbcStore ??
Thanks,
John

2) What indexes are required here ??
e.g. I presume you'll need to have a unique index on
the SessionID column, and perhaps an index on
AccessTime ( for the repear to delete expired
sessions )You are correct on both accounts. Those are the only needed indexes as none of the other columns are used ias selection criterion.
>
>
3) Any working example sun-web.xml using JdbcStore
??Unfortunately, our collection of samples does not include one, but I do know of customers using this Store.

Similar Messages

  • Issue with WebPass for Sunone webserver.

    Hi,
    I installed sunone web server 6.1 and OAM WebPass for Sunone webserver. When i installed sunone webserver and started the same it worked fine but after installing webpass for sunone webserver and when i try to start webserver i am getting the following error:
    Server Start Up
    Status:
    [https-aldggni.dummy.com.]: start failed. (0: Error 0)
    [https-aldggni.dummy.com.]: Sun ONE Web Server 6.1SP10 (64-Bit) B09/04/2008 12:11
    [https-aldggni.dummy.com.]: failure: CORE3170: Configuration initialization failed: Error running init function load-modules: dlopen of /exaccess08/home/oracle/OAM/Webcomponent/identity/oblix/lib/libgcc_s.so.1 failed (ld.so.1: webservd: fatal: /exaccess08/home/oracle/OAM/Webcomponent/identity/oblix/lib/libgcc_s.so.1: wrong ELF class: ELFCLASS32)
    [https-aldggni.dummy.com.]: failure: server initialization failed
    Error
    An error occurred during startup.
    The server https-aldggni.dummy.com. was not started.
    THis complete installation is on Solaris Sprac 10. Any help on this is highly appreciated.
    Thanks

    The webpass requires a 32-bit version of SunOne WebServer.
    The certification matrix shows the supported platforms-
    http://www.oracle.com/technology/software/products/ias/files/idm_certification_101401.html#BABGCCGA

  • Disable Pagma and Cache-Control headers in SunOne WebServer 6.1

    Hi,
    I want the [Pragma] and [Cache-Control] headers completely disappear from SunOne WebServer 6.1 JSP responses (like the SunOne WebServer 6.0 SP8, http/1.1 but no [Pragma] and [Cache-Control] headers), can I achieve this?
    Thanks,
    Harry

    Hi Harry
    Do you mean that WebServer 6.0 SP8 provide a way to disable these two attributes? If so, that will be a regression issue for WS6..

  • Problem in integrating sunone webserver with websphere app server

    Hello all
    I am trying to integrate sunone6.0 webserver with websphere5.0 app server. I did the following changes in sunone6.0 config files
    1) Added one directive to the obj.conf file after "<Object name=default>":
    Service fn="as_handler"
    2) Added two directives to the end of the magus.conf file:
    Init fn="load-modules" funcs="as_init,as_handler,as_term" shlib="/opt/WebSphere/AppServer/bin/libns41_http.so"
    Init fn="as_init" bootstrap.properties="/opt/WebSphere/AppServer/config/cells/plugin-cfg.xml"
    Can any one of u tell me how to check whether sunone webserver is redirecting request to webshere app server?
    i tried this url https://sunonewebserver:80/webapps/examples but i was not getting any result of that url.

    You might want to check here http://developers.sun.com/prodtech/webserver/
    and here http://developers.sun.com/
    These have forums and articles devoted to specific Sun products

  • Sunone webserver(proxy) --SSL- weblogic

    In our environment we are using Sunone webserver 7.0.9 as a proxy server to forward the request to the weblogic server 10.3.3. Now the requirement is to secure the communication between the proxy and weblogic server. As a standard way we can configure the proxy server to use SSL in obj.conf as below:
    <Object name=”weblogic” ppath=”*/DefaultWebApp/*”>
    Service fn=wl_proxy WebLogicHost=”myIP WebLogicPort=”mySSLPort SecureProxy=”ON” Debug=”ALL” WLLogFile=”/home/support/IPlanet60SP5/server/logsupport.txt” TrustedCAFile=”/home/support/IPlanet60SP5/TrustedCA.pem” RequireSSLHostMatch=”true”
    </Object>
    My question is when we have installed a self signed certificate on weblogic, how do we trust that certificate in the proxy server. If it was a third party certificate we can get the root CA certificate that can be added as trust entry in the obj.conf. But in self signed case we do not have a intermediate or root certificate. So how do we trust the self signed server certificate in the proxy server.

    851935 wrote:
    In our environment we are using Sunone webserver 7.0.9 as a proxy server to forward the request to the weblogic server 10.3.3. Now the requirement is to secure the communication between the proxy and weblogic server. As a standard way we can configure the proxy server to use SSL in obj.conf as below:
    <Object name=”weblogic” ppath=”*/DefaultWebApp/*”>
    Service fn=wl_proxy WebLogicHost=”myIP WebLogicPort=”mySSLPort SecureProxy=”ON” Debug=”ALL” WLLogFile=”/home/support/IPlanet60SP5/server/logsupport.txt” TrustedCAFile=”/home/support/IPlanet60SP5/TrustedCA.pem” RequireSSLHostMatch=”true”
    </Object>
    My question is when we have installed a self signed certificate on weblogic, how do we trust that certificate in the proxy server. If it was a third party certificate we can get the root CA certificate that can be added as trust entry in the obj.conf. But in self signed case we do not have a intermediate or root certificate. So how do we trust the self signed server certificate in the proxy server.Just import the self signed cert as trusted.

  • Fatal bug with shared JDBC Session Persistence

    We are attempting to launch a three-tier site with two clusters, one at the
              web layer (JSP/servlet/images) and a separate cluster at the app server
              layer (EJBs). We are running WebLogic server 4.5.1 Service Pack 8 on Solaris
              2.7. In production we use Solaris JDK 1.2.1.04, and in development we use
              JavaSoft JDK 1.2.2. We are able to duplicate this problem with both JDKs. We
              are using the WebLogic kona/oracle driver for session persistence because
              the Oracle JDBC driver would not work for this purpose - we are using the
              Oracle OCI driver for our EJB persistence in a separate pool in the app
              server cluster.
              We attempted to configure our web cluster to work with in-memory session
              replication. We found the performance of the WebLogic proxy to be abysmal -
              causing a 5x to 10x performance degredation over shared JDBC persistence. We
              were running the proxy on WebLogic, which we were advised would be slow. Its
              performance is beyond slow, it is completely unusable and should NEVER be a
              recommended or even supported configuration. We do not wish to purchase
              separate licenses for iPlanet, refuse to run IIS in a production setting,
              and cannot use Apache until WebLogic 5.1, so we are stuck with shared JDBC
              persistence until we can upgrade to 5.1.
              Using JDBC session persistence with a shared persistent store amongst all
              the clustered web servers results in our users getting brand-new sessions
              populated with data from OTHER USERS' SESSIONS. This is very easy to
              replicate using the provided test JSP and java class. This behavior results
              in new users coming to the site and finding themselves logged in as other
              users.
              The test.jsp file simply accesses the session, prints out some information,
              and then adds a few values to the session. The JSP prints out the value of
              session.isNew(), the session's ID, and the number of values in the session
              space. If you hit this jsp with a new browser window, the session should be
              new, and the number of values should be zero.
              The test Java class hits a URL with this test.jsp file repeatedly, and
              checks to make sure that the session is empty. It keeps a counter of the
              number of hits which resulted in non-empty sessions and the total number of
              hits. Because this java class does not maintain cookie data of any kind and
              merely opens new HTTP connections, it should always receive a brand-new,
              non-empty session.
              When we set the JDBC session persistence property
              weblogic.httpd.session.persistentStoreShared=true and run the test, we see
              periodically see the test.jsp file receiving a brand-new (session.isNew() =
              true), yet non-empty (session.getValueNames().length != 0) session. This is
              extremely bad behavior and makes the shared JDBC session persistence setting
              worthless. We were able to duplicate this behavior with both a single server
              and multiple servers in a cluster.
              If we set weblogic.httpd.session.persistentStoreShared=false, then this test
              works fine. This also means that we cannot cluster web servers.
              To run the test, simply start a WebLogic instance using the provided
              properties file, put the jsp in the document-root somewhere, and then run
              SessionTest.java, providing the URL of the test JSP as the only command-line
              argument. You will need to modify the properties file to have the proper
              database settings and document-root. The java class will display a running
              tally of the number of hits, and the number of hits that result in
              non-empty, illegal sessions, with a total at the end.
              So, we are now in a position where we are completely unable to launch our
              site in a clustered, no-single-point-of-failure configuration. Obviously,
              clustering was one of the main reasons to choose WebLogic, and we are
              extremely distressed that we are unable to get this configuration to work.
              Any help would be appreciated.
              [web.standalone.properties]
              [SessionTest.java]
              [test.jsp]
              

    I hope this is not too far fetched, but we are expieriencing a similar
              problem with jms (messages are mixed up between queues). This happens only
              if we are using message persistence in an oracle db (everything works ok
              when we are not using persistent messages). Could it be that there is a
              serious bug in the jdbc code/oracle driver code or connection handling
              (regarding multi threading)? This would explain that, whenever you use
              persistence with oracle databases, messages/sessions (or other) are mixed
              up.
              - Falk
              "Grant Kushida" <[email protected]> wrote in message
              news:[email protected]...
              > We are attempting to launch a three-tier site with two clusters, one at
              the
              > web layer (JSP/servlet/images) and a separate cluster at the app server
              > layer (EJBs). We are running WebLogic server 4.5.1 Service Pack 8 on
              Solaris
              > 2.7. In production we use Solaris JDK 1.2.1.04, and in development we use
              > JavaSoft JDK 1.2.2. We are able to duplicate this problem with both JDKs.
              We
              > are using the WebLogic kona/oracle driver for session persistence because
              > the Oracle JDBC driver would not work for this purpose - we are using the
              > Oracle OCI driver for our EJB persistence in a separate pool in the app
              > server cluster.
              >
              > We attempted to configure our web cluster to work with in-memory session
              > replication. We found the performance of the WebLogic proxy to be
              abysmal -
              > causing a 5x to 10x performance degredation over shared JDBC persistence.
              We
              > were running the proxy on WebLogic, which we were advised would be slow.
              Its
              > performance is beyond slow, it is completely unusable and should NEVER be
              a
              > recommended or even supported configuration. We do not wish to purchase
              > separate licenses for iPlanet, refuse to run IIS in a production setting,
              > and cannot use Apache until WebLogic 5.1, so we are stuck with shared JDBC
              > persistence until we can upgrade to 5.1.
              >
              > Using JDBC session persistence with a shared persistent store amongst all
              > the clustered web servers results in our users getting brand-new sessions
              > populated with data from OTHER USERS' SESSIONS. This is very easy to
              > replicate using the provided test JSP and java class. This behavior
              results
              > in new users coming to the site and finding themselves logged in as other
              > users.
              >
              > The test.jsp file simply accesses the session, prints out some
              information,
              > and then adds a few values to the session. The JSP prints out the value of
              > session.isNew(), the session's ID, and the number of values in the session
              > space. If you hit this jsp with a new browser window, the session should
              be
              > new, and the number of values should be zero.
              >
              > The test Java class hits a URL with this test.jsp file repeatedly, and
              > checks to make sure that the session is empty. It keeps a counter of the
              > number of hits which resulted in non-empty sessions and the total number
              of
              > hits. Because this java class does not maintain cookie data of any kind
              and
              > merely opens new HTTP connections, it should always receive a brand-new,
              > non-empty session.
              >
              > When we set the JDBC session persistence property
              > weblogic.httpd.session.persistentStoreShared=true and run the test, we see
              > periodically see the test.jsp file receiving a brand-new (session.isNew()
              =
              > true), yet non-empty (session.getValueNames().length != 0) session. This
              is
              > extremely bad behavior and makes the shared JDBC session persistence
              setting
              > worthless. We were able to duplicate this behavior with both a single
              server
              > and multiple servers in a cluster.
              >
              > If we set weblogic.httpd.session.persistentStoreShared=false, then this
              test
              > works fine. This also means that we cannot cluster web servers.
              >
              > To run the test, simply start a WebLogic instance using the provided
              > properties file, put the jsp in the document-root somewhere, and then run
              > SessionTest.java, providing the URL of the test JSP as the only
              command-line
              > argument. You will need to modify the properties file to have the proper
              > database settings and document-root. The java class will display a running
              > tally of the number of hits, and the number of hits that result in
              > non-empty, illegal sessions, with a total at the end.
              >
              > So, we are now in a position where we are completely unable to launch our
              > site in a clustered, no-single-point-of-failure configuration. Obviously,
              > clustering was one of the main reasons to choose WebLogic, and we are
              > extremely distressed that we are unable to get this configuration to work.
              > Any help would be appreciated.
              >
              >
              >
              >
              

  • ColdFusion MX7 with Sunone Webserver 7.0

    Hi All,
    I have an issue configuring my webserver with CF MX7.
    The problem is the CF admin page opens when the Sun webserver
    is not configured and CF uses its own internal webserver.
    Once i configure Sun's webserver i get an error not opening
    the admin page. It tries to open the admin page with notepad.
    I am not sure whether CF MX7 is compatible with Sunone
    webserver 7.0 or not?
    Or all this is a totally different aspect of looking at it.
    Anyone has any idea how to deal with this issue, kindly help
    me out.
    Thanks,
    Vamsee.

    It looks like we have never tested ColdFusion 7 with Sunone
    7. Check out this Support matrix. It shows that only Sunone 6.x
    versions are supported. Have you tried versions 6?
    http://www.adobe.com/products/coldfusion/productinfo/systemreqs/fp_frameset.html

  • Tomcat vs. SunOne WebServer

    Why to use SunOne WebServer for Java Servlet applications? Developers want to use Tomcat 4.x.x versions. How to speak up for SunOne WebServers? Performance, security...?

    No, the HTTP engine in Sun ONE Application Server 7 is based on Sun ONE Web Server 6.0. It is in no way related to Tomcat.
    The Sun ONE Application Server 7 Servlet container, however, is based on Tomcat 4.0.4. (Note that Tomcat is the Servlet spec reference implementation and that Sun is the primary contributor to Tomcat.)

  • Cron Job to start SunOne WebServer

    Hello,
    I installed the SunOne Webserver in Linux AS 4 as OS level. I try to create a cron job to stop and start the WebSever every night. The stop is quite simple to create a cron job. However, the start script is a bit tricky since I will have to key in the Token (password) as I manual start the script. How do I create a cron job to start the Web Server like this?
    I used the Web server to do datatel's webadvisor. I just don't know how to configure the SunOne Web Server 6.1 (SP5) to the best interface with webadvisor. Does any one have this kind of experience please share with me?
    Your thought would be greatly appreciated!!!!

    mle wrote:
    Hello,
    I installed the SunOne Webserver in Linux AS 4 as OS level. I try to create a cron job to stop and start the WebSever every night. Why on earth would you want to do that? This is Linux, not Windows.
    My guess is that you have memory leaks that benefit from a bounce to set the clock back to zero on a daily basis.
    My advice would be to fix the leaks and don't bounce the server that way.
    If the leaks originate with the app server, get one that doesn't leak.
    Does any one have this kind of experience please share with me?Sounds like a very bad idea. I'd fix the root problem first.
    %

  • SunONE webserver file size limit

    I have a SunONE webserver 6.0SP3 as a front end to an app server running BEA.
    We are seeing a problem wherein the users are unable to upload/ download files larger than 2GB.
    Are there any settings in the webserver that can cause this behavior?
    What other things should I check to resolve thsi problem?
    Could it be caused by the BEA weblogic plugin on the webserver?
    Any suggestions will be highly appreciated.
    Thanks and regards,
    Vishal

    You didn't mention the operating system. iPlanet Web Server 6.0 SP3 can serve files > 2GB on operating systems and file systems that support files > 2GB. Solaris is such an operating system.
    What are the symptoms of the problem you are seeing? What do the access and errors logs say?
    Are the files being served by BEA WebLogic then proxied by Web Server? If so, the limitation is likely in the BEA WebLogic server or plugin.

  • WebServices in SunONE Webserver 6

    Hi,
    did anybody successfully enable WebServices on S1 WebServer (SP 5)?
    We tried to enable WebServices by installing the extra jars that come with WebServices Developer Pack into the SunONE WebServer. But the examples of the WSDP don't work.
    Any idea how to enable JAXRPC and JAXM on SunONE WebServer?

    Hi,
    I am also having same requirement, deploy java webservices in SunONE Webserver 6.
    please tell me what you did for your requirement
    Thanks
    Chandra

  • JDBC Sessions Are Left Open

    I am having a problem where the JDBC sessions are not being closed. We are using the NCR Teradata JDBC driver talking to a Teradata Data warehouse. I am not aware of any way to explicitly close the JDBC sessions using JDeveloper, since I don’t directly issue any JDBC statements for selecting data. Is there a way for me to close the sessions in code?

    The following is the Data Source that I am using:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source
    name="jdev-connection-Teradata"
    class="com.evermind.sql.DriverManagerDataSource"
    location="jdbc/TeradataCoreDS"
    xa-location="jdbc/xa/TeradataXADS"
    ejb-location="jdbc/TeradataDS"
    pooled-location="jdbc/TeradataPooledDS"
    connection-driver="com.ncr.teradata.TeraDriver"
    username="GavinLDCHBull"
    password="xxxxxx"
    url="jdbc:teradata://FONEBONE/DATABASE=HABWaiver"
    inactivity-timeout="30">
    </data-source>
    </data-sources>
    We are using the ADF framework (i.e. entities and simple views) for accessing all Teradata data. I do not explicitly issue any JDBC calls for accessing the data. When I update the data, I use JDBC calls to initiate stored procedures. However, the problem (not closing the statements) happens almost immediately after starting the application, and prior to issuing any stored procedures.
    I have not tried to duplicate the problem using a simple java program because I am using ADF for data access (again, I don't explicitly issue any JDBC statements).

  • I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

    I am trying to buy songs on itunes and half way through the terms and conditions come up, I accept them and press return and then I get a 'session timed out' notice and the sale hasn't gone through - tried loads of times / updating software, any answers?

  • Server 2012 R2 RDS- Only want the Session Host, Connection Broker and Licensing Server!

    Hi all,
    Wondering if anyone has experience with implementing Remote Desktop Services (RDS) on Windows Server 2012 R2.
    I am doing an RDS design for a platform where we only need an RDS Session Host, Licensing Server and Connection Broker. We do not need web access as these servers will simply be jump boxes internally!
    However, implementing this correctly in our test environment has proved to be tricky. The options are:
    Use the Server Manager and do a traditional install via Roles and Features ( specifically add the Session Host, Licensing Server and Connection Broker). The installation process seems to go through ok in this scenario but when I head over to the Remote
    Desktop Services section of the Server Manager I simply get the message 'An RDS Deployment does not exist in the server pool. To create a deployment head to Roles and Features'.
    Use the specific ‘Remote Desktop Services installation’ option on the Server Manager and do a Session Based Desktop deployment and Quick Start. This installation process seems to go through correctly and the Remote Desktop Section seems to be working
    correctly via the Server Manager. However this process is ‘hard locked’ i.e. it installs the session host, web access and connection broker. I can then remove the web access component later from Roles/ Features.
    Is there a best practice (if any) for installation? i.e. Will there be any issues down the line if I remove RDS Web Access from my server while following method 2?
    There is a complete lack of documentation from Microsoft here so not sure what to do! Just need a basic RDS session based deployment.

    Hi,
    As I know from server 2012\R2 the best deployment skill is to perform via “Remote Desktop Services” installation mode with Standard deployment and don’t let single role to install. Because when we install through RDS mode, there are specific extra tools and
    services activated along with that deployment which you can’t find with single role installation. And that is for sure, when we install RDS role as of this, by default we will get install RDCB, RDSH and RDWA role installed.
    Sorry don’t have any option to try to remove that role as that role basically needed for RemoteApp and Desktop purpose. But if you want then you can try it with help of “Remove-RDServer”Powershell command.
    https://technet.microsoft.com/en-us/library/jj215506.aspx
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to share the same session between JNLP Application and browser session

    How to share the same session between JNLP Application and browser session using BasicService.showDocument(url) method? It appears whenever i launch any URL from within a JNLP application using BasicService.showDocument(url) , it creates new instance of browser and session even after i used cooke handlers to restore JSESSIONID and Ltpa token etc.
    public static int showDocument(String urlToOpen)
    BasicService obj = (BasicService) ServiceManager.lookup("javax.jnlp.BasicService");
    obj.showDocument(urlToOpen);
    }

    Try using Reflection

Maybe you are looking for