![]() |
![]() |
![]() |
![]() |
![]() |
• Configure Oracle Coherence cluster coherence_tux whose multicast port number is 51697 and unicast port number is 51687.
• Configure Oracle Coherence cache tux_distributed.Listing 4‑1 Prepare tangosol-coherence-override.xmlListing 4‑2 Prepare coherence-cache-config.xmljava -server -showversion $JAVA_OPTS -Dtangosol.coherence.mode=prod -cp ${APPDIR}/config: ${COHERENCE_HOME}/lib/coherence.jar com.tangosol.net.DefaultCacheServerSee Listing 4‑3, where the <server-clopt>-f /home/scott/tuxedo/dom1/config/tdcsvr_coh.conf</server-clopt> property specifies the TDC property file.Listing 4‑3 Configure Oracle Tuxedo Caching Server Module in Oracle Tuxedo Java Server Configuration File
Note: The class path ${APPDIR}/config</classpath> must be prior to the class path ${COHERENCE_HOME}/lib/coherence.jar.See Listing 4‑4, where it configures Oracle Tuxedo cache tc, which actually uses Oracle Coherence cache tux_distributed.See Listing 4‑5, where multi-threaded configuration is enabled and TMJAVASVR configuration file tdcsvr_coh.xml is set.Listing 4‑5 Configure TMJAVASVR in UBBCONFIGMODEL SHMListing 4‑6 Put an Oracle Tuxedo bufferListing 4‑7 Get an Oracle Tuxedo bufferConfigure your VIEWTABLE. See Listing 4‑9, where the buffer type is VIEW and the subtype is mystruct1.Listing 4‑9 Configure VIEWTABLE
• TMJAVASVR is configuredMulti-threaded configuration is enabled and the configuration file tdcsvr_coh.xml is set.Oracle Tuxedo service mysvc1 uses caching entry svccache1 to improve performance. svccache1 uses Oracle Tuxedo cache tc1 to cache the service result. The corresponding key of the response is the value of the request data.Listing 4‑10 Configure UBBCONFIGConfigure on server side. See Listing 4‑11, where the request of mysvc1 is set as STRING and the response of mysvc1 is a VIEW32 mystruct1.Listing 4‑11 Configure on Server SideListing 4‑12 Data File ExampleAt the first time where Scott is taken as the request, mysvc1 is invoked and the response is sent back and the response is cached into Oracle Tuxedo cache tc1 with a key Scott. As long as the data in the cache tc1 is not expired, all following requests for Scott to service mysvc1 will get response from the cache tc1 instead of invoking the service itself.Listing 4‑13 Set on Client Set