Regarding channel function in WebLogic cluster

Hi all,
We would like to set the channel to a WebLogic cluster.
How to set this work?
Please let us know.
Regards,

An example and explanation is given here: http://middlewaremagic.com/weblogic/?p=7265
Just search for the word 'channel' in the post

Similar Messages

  • Having issue with start weblogic cluster with tangosol cluster

    Hi,
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    We are using Weblogic 8.1.5 with Tangosol 3.3.1 on Linux servers.
    And we added the initializing logic in the servlet's init() method to get all NamedCaches and put into the ServletContext.
    When we start weblogic cluster, the first weblogic member will startup successfully with following messages :
    <Nov 7, 2007 10:12:30 AM EST> <Info> <HTTP> <BEA-101047> <[2007-11-07 10ServletContext(id=259640596,name=clusterqa,context-path=)] initObjects: init>:12:31.565 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational configuration from resource "zip:/home/server/clusterqa/wls81/DOCVIEW/docqa1/.wlnotdelete/extract/docqa1_DOC_clusterqa/jarfiles/WEB-INF/lib/coherence.jar!/tangosol-coherence.xml"
    2007-11-07 10:12:31.598 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from file "/home/www/WEB-INF/lib/tangosol-coherence-override.xml"
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    Copyright (c) 2000-2007 Oracle. All rights reserved.
    2007-11-07 10:12:31.938 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded cache configuration from file "/home/www/WEB-INF/lib/pub-search-cache-config.xml"
    2007-11-07 10:12:31.983 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): sun.misc.AtomicLong is not supported on this JVM; using a synchronized counter. Though safe to ignore, you may upgrade to BEA's 1.5 JVM to fix this issue.
    2007-11-07 10:12:33.267 Oracle Coherence GE 3.3.1/389p1 <Warning> (thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
    2007-11-07 10:12:34.118 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2007-11-07 10:12:37.508 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Created a new cluster with Member(Id=1, Timestamp=2007-11-07 10:12:33.323, Address=10.5.176.86:8088, MachineId=48982, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2) UID=0x0A05B056000001161AAB782BBF561F98
    2007-11-07 10:12:37.736 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
    2007-11-07 10:12:38.168 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
    <Nov 7, 2007 10:12:38 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=259640596,name=clusterqa,context-path=)] xslProcessor: init>
    But trying to start the second weblogic member server, the startup process is stucked after tangosol cache initialization and the second weblogic member server never up running. Please see following messages :
    <Nov 7, 2007 9:49:38 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=153019550,name=clusterqa,context-path=)] initDSNames: init>
    <Nov 7, 2007 9:49:42 AM EST> <Info> <HTTP> <BEA-101047> <[ServletContext(id=153019550,name=clusterqa,context-path=)] initObjects: init>
    2007-11-07 09:49:43.156 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational configuration from resource "zip:/home/server/clusterqa/wls81/DOCVIEW/docqa2/.wlnotdelete/extract/docqa2_DOC_clusterqa/jarfiles/WEB-INF/lib/coherence.jar!/tangosol-coherence.xml"
    2007-11-07 09:49:43.188 Oracle Coherence 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded operational overrides from file "/home/www/WEB-INF/lib/tangosol-coherence-override.xml"
    Oracle Coherence Version 3.3.1/389p1
    Grid Edition: Development mode
    Copyright (c) 2000-2007 Oracle. All rights reserved.
    2007-11-07 09:49:43.528 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): Loaded cache configuration from file "/home/www/WEB-INF/lib/pub-search-cache-config.xml"
    2007-11-07 09:49:43.571 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Main Thread, member=n/a): sun.misc.AtomicLong is not supported on this JVM; using a synchronized counter. Though safe to ignore, you may upgrade to BEA's 1.5 JVM to fix this issue.
    2007-11-07 09:49:44.829 Oracle Coherence GE 3.3.1/389p1 <Warning> (thread=Main Thread, member=n/a): UnicastUdpSocket failed to set receive buffer size to 1428 packets (2096304 bytes); actual size is 89 packets (131071 bytes). Consult your OS documentation regarding increasing the maximum socket buffer size. Proceeding with the actual value may cause sub-optimal performance.
    2007-11-07 09:49:45.419 Oracle Coherence GE 3.3.1/389p1 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
    2007-11-07 09:49:45.555 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Failed to satisfy the variance: allowed=16, actual=47
    2007-11-07 09:49:45.555 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): Increasing allowable variance to 19
    2007-11-07 09:49:46.040 Oracle Coherence GE 3.3.1/389p1 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Timestamp=2007-11-07 09:49:45.69, Address=10.5.176.85:8088, MachineId=48981, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2) joined cluster with senior Member(Id=1, Timestamp=2007-11-07 09:45:10.205, Address=10.5.176.86:8088, MachineId=48982, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=2)
    Could you please explain why it happens, and what should I do to resolve this issues ?
    Many Thanks,
    Bing

    Hi, Gene
    Thank you for the response. I will send you our full log files and thread dumps.
    I just want to give you more details about our cases :
    1. This only happened without starting cache servers (com.tangosol.net.DefaultCacheServer).
    2. And our application which are running on weblogic cluster will just call "CacheFactory.getCache("XXX")", and running as the Tangosol DataClient.
    3. All weblogic member servers will be up running successfully if our cache servers are up running.
    Also I tried to test another case :
    Suppose all weblogic instances and cache server instances are up running. Now I trying to restart (kill weblogic instance process and restart) one of the weblogic member, It will up running successfully only if add some sleep times after killing weblogic processes and restarting it. Looks like tangosol cluster need certain time to aware the member has left cluster, then the restart process will be successful.
    Questions :
    1. Should we start our weblogic cluster only after cache server cluster is up running ?
    2. How do we decide how many time we should wait before start new process to join the cache cluster ?
    Could you please help to explain this one for me and let us if there anyway we can do to avoid the problem.
    Many Thanks !!!
    Bing

  • Caching read-only data in a weblogic cluster: Need Help

    Hello,
    I'm working on the development of a web site that will be based on a weblogic cluster spread across several weblogic instances running on several unix boxes.
    To avoid frequent hits to the database, I would like hold a huge amount of data in the application's in-memory cache. The idea is to query the database at startup and store the results in memory for the life of the JVM.
    I have three questions around this:
    1. Is it advisable to store this data in the form of read-only entity beans?
    2. If not, what other options do I have?
    3. In some rare cases, a back-end script might change (and commit) data contained in one or two of these 64000 records. What is the best way of propagating these data changes across the cluster?
    Any help in this regard would be greatly appreciated.
    Regards,
    Dipak Jha

    Could somebody please guide me on this?
    Dipak Jha

  • Timesten database driver is not supported in Weblogic Cluster mode domain??

    Does anybody encounter this situation??
    I have 2 managed server in a Weblogic cluster domain and there is DataSource for them.
    In each managed server, I setup Timesten client correctly to connect to Timesten Oracle DB cache server.
    But when we start each of managed server, I will get exception:
    ####<Nov 22, 2010 6:03:24 PM CST> <Critical> <WebLogicServer> <Machine1> <Main Thread> <<WLS Kernel>> <1290420204498> <BEA-000386> <Server subsystem failed. Reason: java.lang.AssertionError:
    java.lang.AssertionError: Unsupported database driver
    at weblogic.cluster.singleton.QueryHelperImpl.getTimeFunction(QueryHelperImpl.java:88)
    at weblogic.cluster.singleton.QueryHelper.getLeaseOwnerQuery(QueryHelper.java:110)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.pingDB(DatabaseLeasingBasis.java:411)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:465)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.getJDBCConnection(DatabaseLeasingBasis.java:507)
    at weblogic.cluster.singleton.DatabaseLeasingBasis.findOwner(DatabaseLeasingBasis.java:305)
    at weblogic.cluster.singleton.LeaseManager.findOwner(LeaseManager.java:218)
    at weblogic.cluster.singleton.MigratableServerService.findSingletonMaster(MigratableServerService.java:201)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.syncStateFromActiveStateManager(ReplicatedSingletonServicesStateManager.java:618)
    at weblogic.cluster.singleton.ReplicatedSingletonServicesStateManager.<init>(ReplicatedSingletonServicesStateManager.java:168)
    at weblogic.cluster.singleton.SingletonMonitor.<init>(SingletonMonitor.java:97)
    at weblogic.cluster.singleton.SingletonMaster.<init>(SingletonMaster.java:44)
    at weblogic.cluster.singleton.MigratableServerService.initialize(MigratableServerService.java:142)
    at weblogic.cluster.singleton.MigratableServerService.start(MigratableServerService.java:436)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    But if I create a standalone domain, still use the same datasource(still this timesten server), weblogic server can start successfully.
    BR,
    Peng

    Hi,
    I have use WebLogic Server Console, tree: Services -> JDBC -> Connection Pools. Then I have choose 'Configure a new JDBC Connection Pool...':
    1.) as 'Database Type:' I have select MySQL (version using com.mysql.jdbc.Driver) -> click 'Continue' button;
    2.) 'Database Name:' = OSS; 'Host Name' = localhost; 'Port' = 3306; 'Database User Name:' = root; -> click 'Continue' button;
    3.) 'Driver Classname:' = com.mysql.jdbc.Driver; 'URL:' = jdbc:mysql://localhost:3306/OSS; 'Database User Name:' = root; 'Properties:' = user=root -> click to 'Test Driver Configuration' button.
    After click on test driver button I get message: JDBC driver is not on the CLASSPATH.
    But when I check System variables (in Control Panel -> System) I have set up following:
    CLASSPATH=.;C:\DB2\java\db2java.zip;C:\DB2\java\db2jcc.jar;C:\DB2\java\sqlj.zip;C:\DB2\java\db2jcc_license_cu.jar;C:\DB2\bin;C:\DB2\java\common.jar;C:\DBS\JDBC\db2\db2.jar;C:\DB2\BIN;c:\mysql.jar
    The last value is 'c:\mysql.jar' and that's the mysql jdbc driver located on c:\.
    I don't understand why weblogic cannot find it.
    Any idea?
    Thanks in advance for help,
    with best regards,
    Julian Legeny

  • Issue listeneing queue from Weblogic Cluster server with multiple managed server

    Haveing issue listeneing queue from Weblogic Cluster server with multiple managed server.
    Weblogic Cluster structure is like
    Weblogic Cluster01
      --ManagedServer01(http://server01.myhost.com:7001)
      --ManagedServer02(http://server02.myhost.com:7001)
    JMS Servers
      JMSserver01 targeting: ManagedServer01
      JMSserver02 targeting: ManagedServer02
      JMSmodule
      ConnectionFactory01 targeting:JMSserver01,JMSserver02
      UDQueue01 targeting:JMSserver01,JMSserver02
    Uniform Distributed Queue in Monitoring tab showing like this
      mysystemmodule!JMSserver01@UDQueue01
      mysystemmodule!JMSserver02@UDQueue01
    So when I am sending message to any Host(by specifying the provider URL) its distributing equally on both server like
      mysystemmodule!JMSserver01@UDQueue01 10
      mysystemmodule!JMSserver02@UDQueue01 10
    But when try to listen message from these queue, it is listening from one server, for which URL given to connect.
      mysystemmodule!JMSserver01@UDQueue01 0
      mysystemmodule!JMSserver02@UDQueue01 10
    untill I connect to other server by giveing its URL, will not able to access other message left on the queue.
    Solutions that tried
      1) we have tried give both server URL coma sparated in provider URL
    we need to configur same scenario for 5 managed server with 3 listener on other servers.
    Do any one have solution for this.

    You need to have:
    1. Consumers connected to each UDQ member
    OR
    2. If no consumers in some of the members is expected, you can configure Forward Delay (specify the amount of time, in seconds, that a queue member with messages, but with no consumers, will wait before forwarding its messages to other queue members that do have consumers):
    http://docs.oracle.com/cd/E12839_01/apirefs.1111/e13952/taskhelp/jms_modules/distributed_queues/ConfigureUDQGeneral.html
    For example you can set it to 10 (10s)
    Additional Information here:
    http://docs.oracle.com/cd/E23943_01/web.1111/e13727/dds.htm#i1314228
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13951/mbeans/DistributedQueueBean.html?skipReload=true#ForwardDelay
    How Does JMS Load Balancing Work with Distributed Queues and Uniform Distributed Queues? (Doc ID 827294.1)
    I hope this helps
    Best Regards
    Luz

  • Weblogic cluster for 24x7 environment and a front OHS server

    Hi experts,
    We are going to set up a reliable J2EE application server environment by using clustering webgoic servers on TWO nodes, and a front OHS https server in DMZ for load balancing.
    I am new to weblogic cluster and load balance by OHS. I have visited this forum for Fusion MiddleWare clustering etc. Can some experts share some light on this?
    Will our deployment architecture be able to handle the J2EE applications failover? In other word, we can restart one of Weblogic Managed Servers when a new release of J2EE codes are re-deployed without impacting business end users’s usage?
    Problems we want to solve:
    1. All J2EE applications are available for 24x7 even when new J2EE codes are released and deployed on weblogic Managed Servers ANY TIME, side-by-side deployment and restart a managed server if we need to clean the HTTP cache.
    2. The J2EE applications should be accessed by external and internal users with a Single Access Point, like
    https://apps.company1.com/j2ee1
    https://apps.company2.com/j2ee1
    https://apps.company1.com/j2ee2
    https://apps.company2.com/j2ee2
    All J2EE applications (j2ee1, j2ee2, j2ee3 etc) should be deployed on both of weblogic Servers in a cluster, and pointing to a SAME backend database.
    Can some experts share with us the best practices on components and configurations? Thanks.

    Seems your architecture is like Browser => OHS ( DMZ ) => Weblogic => DB OR Browser => HLB( like bigip ) => OHS ( DMZ ) => Weblogic => DB
    Cluster is the solution for load balancing however if you are using OHS for redirection to weblogic then OHS does the load balancing in round robin way. using cluster in this way has a benefit of in case of any one of your managed server is down the OHS will divert connection request to any one of the active managed server ( you have to turn on dynamic list on at OHS ).
    http://weblogicserveradministration.blogspot.com/2010/10/load-balancing-in-weblogic-server.html
    Failover is something different, if in case any of the any managed server goes down then your user you get the application session from another server but new one, means the the tasks not saved by the users on earlier session will lost. for that yo need to use cluster and then need to enable the session replication. another best option is you can use the coherence web if you are using latest versions of weblogic supporting coherence web. with that you not need to worry on user sessions and you can start any of the managed server anytime without worrying about the user sessions.
    http://weblogicserveradministration.blogspot.com/2010/10/manage-http-session-states-session.html
    http://weblogicserveradministration.blogspot.com/2011/05/oracle-coherence-37-coherenceweb.html
    http://weblogicserveradministration.blogspot.com/2010/11/clustering-part-i.html
    another way is, you can use side by side deployment feature in case you don't want shutdown your application completely, with this, old connections and new requests will goes to old application and once new application activated all new requests will come to new application and once all requests on old application will complete that application will retire automatically.
    Regards
    Mukesh Negi
    http://weblogicserveradministration.blogspot.com

  • Error when deploy to weblogic cluster

    My cluster has 2 servers A, B. when I deploy an WebCenter Custom Portal application to weblogic cluster, application on server A work well and application on server B is failed. Log on failed server is “what do i do: seems an odd quirk of the EJB spec. The exception is:java.lang.NoClassDefFoundError: Oracle/jdeveloper/db/adapter/DatabaseProvider”
    When I reconfig cluster and then deploy, application on server B work well but application on server A is failed.
    Please advise what should I do in this situation?

    Hi,
    It seems your Application is running with non-seralizable objects where non-searlizable are not supported on cluster environment.
    Please check server logs whether you have such warning messages are not.
    Let me know if you need any further help on this issue.
    Regards,
    Kal

  • Singleton class in WebLogic Cluster

    Hi,
    We have an application set-up in a weblogic cluster.
    We have a singleton class in the application.
    Since we have two managed servers in the cluster the singleton has two instances, one in each server.
    So the basic purpose of use of singleton is lost.
    Could anyone please give some alternative implementation.
    Regards
    Gunajit K

    One alternative is to set up some type of centralized store for the information you are trying to share between VMs. I would look at what you are trying to do with the singleton and make some descisions.
    Specifically, I would at least look at how much access you will need to the data, how much network traffic it will take to send it to each node in your cluster, and what kind of transactional integrity you require.
    A JMS publish/subscribe topic would be a good solution if you are caching some type of data that changes relatively infrequently. You could set this up yourself or check out SpiritSoft's Spirit Cache product (no, I don't work for SpiritSoft).
    Or you could simply store the information in some type of database and access it via EJBs or JDBC or whatever you like.
    Clearly, the performance of such a store will not be as quick as the in-memory access a Singleton provides inside a single JVM. So be careful about what solution you choose and be sure to optimize its performance as best you can.

  • Who takes care of load balancing work in weblogic cluster ?

    Hi Folks,
    How load balancing is handled internally by weblogic cluster ? Does Admin server takes care of cluster load balancing ? According to me Admin has nothing to do with load balancing in cluster . Manage server continue to run even when Admin server is down.
    I am not looking for explanation about different load balancing algorithm. I am interested in who executes those algorithms in weblogic cluster and how .
    Cheers
    B.

    Hi,
    You need to configure loadbalancer and there are different ways to do this. Please go through the below thread to user Apache Loadbalancer.
    problem with Apache Proxy plugin
    Regards
    Suresh.

  • FrontEnd hosts in weblogic cluster

    Hello,
    I have set the frontEnd hosts in weblogic cluster(10.3.5) to the loadbalancer URL(https://xyz.com) . Webservice developed in 11g is deployed to the cluster. The dynamic wsdl generated contains the the Address of the frontEnd in <address> Tag of the WSDL file.
    But when i try to test the service by clicking on 'test client' on the deployment page. It gives me following error
    failed due to This service requires https,but the attempt to access Test Client at https address https://<ip address where weblogic managed server is running>:443/wls_utc/begin.do did not suceed due to java.net.ConnectException: Tried all:1 addresses, but could not connect over HTTPS to server:<ip address where weblogic managed server is running> port:443. In order to test  a service that requires https the Test Client must be running on a server configured for https.
    Can we configure the front end hosts point to https and still test the test client using the deployment page.?
    Thanks,
    Ram

    Hi Kal,
    I did try to enable SSL listen port. Though i am able to access WSDL but the Test Client is still giving the same exception.
    regards,
    Ram

  • Help on Coherence + Weblogic Cluster configuration

    Hi,
    I am new to Coherence. I am exploring coherence to fulfill one of my requirement.
    My requirement : I have an application deployed on a Web logic Server clustered environment. I need to cache the application specific data(java maps) and that should be available for all nodes of the WLS cluster. The application data that's being cached, can be updated from any of the node from the WLS cluster and updated application data from the cache should be available for all the nodes of the WLS cluster. The nodes in the WLS cluster resides in different machines from different locations.
    Can I use coherence as a caching services for my requirement?
    If Yes, do I need to start a coherence cache server on each node of the WLS cluster?
    If yes, do I need to specially configure these cache servers, so that these cache servers would communicate each other in case of any data updates in the cache?
    It will be great help if you could also provide sample configurations to achieve the above scenarios.
    Thanks in advance!
    regards,
    Srinivas M

    You can start one cache server in the network by using for example
    # home directory
    BEA_HOME="/home/oracle/bea"
    export BEA_HOME
    # java vendor (for example Oracle or Sun)
    JAVA_VENDOR="Oracle"
    export JAVA_VENDOR
    # cache server klasse
    CACHE_SERVER_CLASS="com.tangosol.net.DefaultCacheServer"
    export CACHE_SERVER_CLASS
    # coherence options
    COHERENCE_OPTIONS="-Dtangosol.coherence.management=all"
    export COHERENCE_OPTIONS
    COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.management.remote=true"
    #COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.cacheconfig=WEB-INF/classes/session-cache-config.xml"
    #COHERENCE_OPTIONS="${COHERENCE_OPTIONS} -Dtangosol.coherence.session.localstorage=true"
    WL_HOME="${BEA_HOME}/wlserver_10.3"
    export WL_HOME
    BEA_JAVA_HOME="${BEA_HOME}/jrockit_160_05_R27.6.2-20"
    export BEA_JAVA_HOME
    SUN_JAVA_HOME="${BEA_HOME}/jdk160_11"
    export SUN_JAVA_HOME
    if [ "${JAVA_VENDOR}" = "Oracle" ]; then
         JAVA_HOME="${BEA_JAVA_HOME}"
         export JAVA_HOME
         MEM_ARGS="-jrockit -Xms512m -Xmx512m -Xss128k -Xgcprio:throughput"
         export MEM_ARGS
    fi
    if [ "${JAVA_VENDOR}" = "Sun" ]; then
         JAVA_HOME="${SUN_JAVA_HOME}"
         export JAVA_HOME
         MEM_ARGS="-server -Xmx512m -Xms512m -Xmn256m -Xss128k -XX:PermSize=128m -XX:MaxPermSize=128m -XX:+UseParallelGC -XX:ParallelGCThreads=2 -XX:+UseParallelOldGC -XX:+AggressiveOpts -XX:+UseBiasedLocking"
         export MEM_ARGS
    fi
    # classpath for the cache server
    CLASSPATH="${WL_HOME}/coherence/coherence.jar"
    export CLASSPATH
    # start the cache server
    ${JAVA_HOME}/bin/java ${MEM_ARGS} ${COHERENCE_OPTIONS} ${CACHE_SERVER_CLASS}The -Dtangosol.coherence.management=all option gives you some handy information on what the cache is doing by using for example the mbean browser provided by jconsole or jrockit mission control.
    You can create an application in which you create a cache, the following shows an example of a servlet
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.IOException;
    import java.util.Random;
    public class TestServlet extends HttpServlet {
        private NamedCache movies;
        public void init() throws ServletException {
            movies = CacheFactory.getCache("repl-movies");
            movies.put(10, new Movie(10, "Rear Window", "Alfred Hitchcock"));
            movies.put(20, new Movie(20, "Vertigo", "Alfred Hitchcock"));
            movies.put(30, new Movie(30, "Double Indemnity", "Billy Wilder"));
            movies.put(40, new Movie(40, "Touch of Evil", "Orson Welles"));
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            Integer[] integers = {10, 20, 30, 40};
            Random random = new Random();
            while (true) {
                movies.get(integers[random.nextInt(4)]);
    }Package the servlet into for example a WAR file and deploy it to a configured WebLogic cluster.
    By accessing servlet on the different nodes of the cluster a new cache gets created and added to the
    already running DefaultServer.
    The hard part is to configure your cache. As you can see in the servlet init we ue something like CacheFactory.getCache("repl-movies");
    Coherence default with some example cache configurations which are contained in the coherence.jar (coherence-cache-config.xml).
    The following entry is used
    <cache-mapping>
          <cache-name>repl-*</cache-name>
          <scheme-name>example-replicated</scheme-name>
    </cache-mapping>
    <replicated-scheme>
          <scheme-name>example-replicated</scheme-name>
          <service-name>ReplicatedCache</service-name>
          <backing-map-scheme>
            <local-scheme>
              <scheme-ref>unlimited-backing-map</scheme-ref>
            </local-scheme>
          </backing-map-scheme>
          <autostart>true</autostart>
    </replicated-scheme>A replicated cache is probably what you need as well. As you want all the data to be available on all nodes. If you want to use
    your own cache configuration you can add the option -Dtangosol.coherence.cacheconfig (see the start script for the default server)
    A good introduction on Coherence can be found here:
    http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-1
    and
    http://www.packtpub.com/article/installing-coherence-3.5-and-accessing-the-data-grid-2?utm_source=rk_coherence_abr1_0310&utm_medium=content&utm_campaign=ramsai

  • WCI 10gR3 - Weblogic Cluster

    Hi,
    Does WCI 10gR3 support HTTP Session replication using Weblogic Cluster? Is there any documentation about this? I could not find any.
    Thanks,
    Andreas

    Hi,
    Most of the time DB store are used instead of the file store.
    I recommend to use DB store only.
    with this you have option to use leasing option too.
    Regards,
    Kal

  • ACFS recomandations for weblogic cluster

    Hi,
    Can some one help me to findout material(step by step) for ACFS usage with weblogic clustering.
    Originally I started thread here :
    Re: ACFS recomandations for weblogic cluster
    Thanks in advance for valuable time
    Datla

    The first question you need to ask yourself is for what purpose do i need this type of filesystem when using a WebLogic Cluster?
    The first which comes to mind is the migration of so-called singleton service, such as JMS Servers, persistence stores and JTA.
    For example, when a machine fails, we must bring the services, running on the failed machine, up on other machines. The JTA
    service plays a critical role in recovery from a failure scenario where transactions are involved. In-flight transactions can hold locks
    on underlying resources. If the transaction manager is not available to recover these transactions, resources may hold on to these
    locks for a long time. This makes it difficult for an application to function properly. JTA service migration is possible only if the server's
    default persistent store (where the JTA logs are kept) is accessible to the server to which the service will migrate.
    This where a shared storage mechanism comes into play - to store files which need to be accessible from every server. The concept
    of ACFS which is useful in this scenario is the mount model (http://download.oracle.com/docs/cd/E14072_01/server.112/e10500/asmfilesystem.htm#CACJGEAC)
    To set-up a mount point you can follow the steps presented here: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1049463
    This link contains the steps in order to configure JMS migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1065826
    This link contains the steps in order to configure JTA migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1054024

  • Session lost problem in Weblogic cluster and Iplanet proxy

              We have an environment like this
              Iplanet 4.1--> Two Weblogic servers.(WLS 6.1 sp1)
              The Weblogic servers are not really clusterd, but we are using the Weblogic Cluster
              attribute in the obj.conf to configure the proxy (The Weblogic servers are really
              independant servers with the same application deployed).
              This is working fine in our development environment. No problem with session and
              load balancing. Although this architecture is not documented in Weblogic docs,
              I have seen several references to this type of architecture in the web and it
              seems to be working.
              Now we are into our pre-production environment. The same archictecture exists.
              Only the following differences
              1. Both the weblogic servers run on multihomed machines. We have bound the Weblogic
              servers to specific IP addresses using the Listen address option.
              2. The same IP addresses are there in the proxy plug-in conf file.
              3. There is a firewall between the Iplanet and Weblogic.
              Now if only one weblogic is running, the application works fine. The moment we
              turn the other weblogic on, the application starts misbehaving. The session seems
              to get lost and proxy forwards requests randomly.
              What could be the reason?
              Regards
              Anup
              

              Hi
              The problem got solved. There was an older version of libproxy.so in the Iplanet
              proxy
              Regards
              Anup
              Yeshwant Kamat <[email protected]> wrote:
              >Anup,
              >
              >Is there a reason you are not clustering the WLS instances? Remove the
              >firewall in your
              >prod environment and see if that makes a difference.
              >
              >Anup wrote:
              >
              >> Hi Mike
              >> 1. As per the documentation WebLogic Server is set up to handle session
              >tracking
              >> by default. So we are not doing anything special. Since the application
              >works
              >> fine with one Weblogic and multiple clients connecting to it through
              >Iplanet ,
              >> I think there is no problem with Session tracking as such.
              >>
              >> 2.We are using the default cookie name for session (JSESSIONID). So
              >we haven't
              >> done anything extra in the proxy set up or weblogic.xml
              >>
              >> 3. I have watched the cookie that comes on the browser
              >> PAACk3iviDm4ZuMPIbB9TpTTw9slk40IEC02MKjpu14EZ9ayzqaP!-1196227542!gmbpds054!7015!7016.
              >>
              >> gmbpds054 is the DNS name of one of the weblogic servers. So that is
              >also fine.
              >>
              >> What else could be the problem.
              >> Regards
              >> Anup
              >>
              >> "Mike Reiche" <[email protected]> wrote:
              >> >
              >> >If you have session tracking turned on in weblogic, creating a session
              >> >will write
              >> >a cookie back to the browser. iPlanet does sticky load balancing
              >based
              >> >on the
              >> >IP address in this cookie. So -
              >> >
              >> >1) do you have session tracking turned on?
              >> >
              >> >2) is the cookie getting written to your browser?
              >> >
              >> >3) are iPlanet and WebLogic using the same cookie? (same name)
              >> >
              >> >Mike
              >> >
              >> >"Anup Maliyackel" <[email protected]> wrote:
              >> >>
              >> >>We have an environment like this
              >> >>
              >> >>Iplanet 4.1--> Two Weblogic servers.(WLS 6.1 sp1)
              >> >>
              >> >>The Weblogic servers are not really clusterd, but we are using the
              >Weblogic
              >> >>Cluster
              >> >>attribute in the obj.conf to configure the proxy (The Weblogic servers
              >> >>are really
              >> >>independant servers with the same application deployed).
              >> >>
              >> >>This is working fine in our development environment. No problem with
              >> >>session and
              >> >>load balancing. Although this architecture is not documented in Weblogic
              >> >>docs,
              >> >>I have seen several references to this type of architecture in the
              >web
              >> >>and it
              >> >>seems to be working.
              >> >>
              >> >>Now we are into our pre-production environment. The same archictecture
              >> >>exists.
              >> >>Only the following differences
              >> >>1. Both the weblogic servers run on multihomed machines. We have
              >bound
              >> >>the Weblogic
              >> >>servers to specific IP addresses using the Listen address option.
              >> >>
              >> >>2. The same IP addresses are there in the proxy plug-in conf file.
              >> >>
              >> >>3. There is a firewall between the Iplanet and Weblogic.
              >> >>
              >> >>Now if only one weblogic is running, the application works fine.
              >The
              >> >>moment we
              >> >>turn the other weblogic on, the application starts misbehaving. The
              >> >session
              >> >>seems
              >> >>to get lost and proxy forwards requests randomly.
              >> >>
              >> >>What could be the reason?
              >> >>
              >> >>Regards
              >> >>Anup
              >> >
              >
              

  • How to deploy WebLogic Cluster on a Blade?

    Hi, I am looking for recommendations on how ( if it makes sense ) to deploy WebLogic
    Cluster on the (Intel) Blade HW. The question is, actually, caused by the fact
    that the Blade is totally redundant and load-balanced HW where the requests are
    managed by a Big-IP module ( and redirected to the IPs on the internal Blade Cassettes
    One of possible solutions, we discuss now, is "either-or", i.e. let's discard
    the App.Server cluster and use the HW cluster. This might work for the request
    load balance but we loose all other, out-of-the-box, cluster features like session,
    EJB, JNDI and so on failover and balance features.
    Any notes with this regard will be greatly appreciated.
    Thanks, - Michael
    P.S. I repeated the same question om "cluster" Newsgroup but have not seen any
    responds so far.

    It sounds like you're getting request routing and fail-over in front of
    WLS with the Big-IP. Typically people would enable WLS clustering to
    get replicated HTTP sessions in an environment like this.
    -- Rob
    Michael Poulin wrote:
    Hi, I am looking for recommendations on how ( if it makes sense ) to deploy WebLogic
    Cluster on the (Intel) Blade HW. The question is, actually, caused by the fact
    that the Blade is totally redundant and load-balanced HW where the requests are
    managed by a Big-IP module ( and redirected to the IPs on the internal Blade Cassettes
    One of possible solutions, we discuss now, is "either-or", i.e. let's discard
    the App.Server cluster and use the HW cluster. This might work for the request
    load balance but we loose all other, out-of-the-box, cluster features like session,
    EJB, JNDI and so on failover and balance features.
    Any notes with this regard will be greatly appreciated.
    Thanks, - Michael
    P.S. I repeated the same question om "cluster" Newsgroup but have not seen any
    responds so far.

Maybe you are looking for

  • How can I play xbox games on my macbook pro??

    I travel a lot and I cannot take my xbox with me everywhere I go. I have a macbook pro and want to be able to play xbox games on my mac. Is there anyway I can do this? Safely?

  • BUG: Warning/Error just refreshing page several times???

    Hi! I made a simple page: <?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"           xmlns:f="http://java.sun.com/jsf/core"           xmlns:h="http://java.sun.com/jsf/html"           xmlns:af="ht

  • Pof Serialization Error leads to partial cache updates in XA Tran

    I am using coherence jca adapter to enlist in XA transactions with the database operations. The data is being stored in distributed caches with the cache member running on weblogic server with "Storage disabled". POF is being used for serialization.

  • Applications rearranging themselves after reset

    OK here's a new one...for me anyway....  About 2 weeks ago I noticed apps on my 2nd and 3rd pages would now appear on the first page after a reset of my VZW Pre Plus.  Things like Mobile Hotspot and Google Maps that have stayed put for months.  I wou

  • Upgrade Failure from apex 3.0 to 3.1 on Oracle 10.2.0.3

    Hi: When I was upgrading apex from 3.0 to 3.1 on Oracle 10.2.0.3, I experienced the error below: I did use the sysdba login when I was doing the upgrade. Thank you for your help! ...create wwv_flow_sw_binds references flows_files.wwv_flow_file_object