{"id":570,"date":"2016-03-30T19:09:40","date_gmt":"2016-03-30T10:09:40","guid":{"rendered":"http:\/\/esoro.jp\/?p=570"},"modified":"2018-07-30T18:05:23","modified_gmt":"2018-07-30T09:05:23","slug":"coherence%e3%81%a8%ef%bc%91%e5%b9%b4%e4%bb%98%e3%81%8d%e5%90%88%e3%81%a3%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/esoro.jp\/?p=570","title":{"rendered":"Coherence\u3068\uff11\u5e74\u4ed8\u304d\u5408\u3063\u3066\u307f\u305f"},"content":{"rendered":"<p>\u3000Oracle\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u30fc\u30b0\u30ea\u30c3\u30c9Coherence\u3092\u4f7f\u3063\u305f\u958b\u767a\u306b\u643a\u308f\u308a\uff11\u5e74\u7acb\u3061\u307e\u3057\u305f\u3002\u9014\u4e2d\u306e\u6570\u30f6\u6708\u306f\u5225\u306e\u4e8b\u3082\u3084\u3063\u305f\u308a\u3067\u6bd4\u8f03\u7684\u307e\u3063\u305f\u308a\u3084\u3063\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u3053\u306e\u8fba\u3067\u3061\u3087\u3063\u3068\u6574\u7406\u3002\u5225\u306b\u7b46\u8005\u304c\u9078\u5b9a\u3057\u305f\u8a33\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u4eca\u643a\u308f\u3063\u3066\u3044\u308b\u4ed5\u4e8b\u3067Coherence\u3092\u4f7f\u3046\u4e8b\u306b\u306a\u3063\u305f\u306e\u306f\u3001Web\u30b5\u30fc\u30d3\u30b9\u3067\u30df\u30c3\u30b7\u30e7\u30f3\u30af\u30ea\u30c6\u30a3\u30ab\u30eb\u304b\u3064\u3001\u5fdc\u7b54\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u6700\u5c0f\u5316\u3068\u3044\u3046\u8981\u4ef6\u3092\u6e80\u305f\u3059\u70ba\u3067\u3057\u305f\u3002\u69cb\u6210\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" src=\"\/wordpress\/wp-content\/uploads\/2016\/02\/cohe-1.png\" alt=\"\u69cb\u6210\" \/><\/p>\n<p>\u3000\u4e0a\u8a18\u306eWebLogic\u306b\u30c7\u30d7\u30ed\u30a4\u3055\u308c\u3066\u3044\u308b\u30d5\u30ed\u30f3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3001\u5225\u9014\u30d0\u30c3\u30af\u306bJavaVM\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u308b\u30d7\u30ed\u30bb\u30b9\u306e\u4e21\u65b9\u306bCoherence\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30c7\u30fc\u30bf\u304c\u914d\u7f6e\u3055\u308c\u307e\u3059\u3002\u30d5\u30ed\u30f3\u30c8\u306f\u9759\u7684\u304b\u3064\u30a2\u30af\u30bb\u30b9\u983b\u5ea6\u304c\u9ad8\u3044\u30de\u30b9\u30bf\u7cfb\u30c7\u30fc\u30bf\u3092\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u914d\u7f6e\u3001\u30d0\u30c3\u30af\u5074\u306f\u4e3b\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u7cfb\u30c7\u30fc\u30bf\u3092\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u3068\u3057\u3066\u914d\u7f6e\u3059\u308b\u3053\u3068\u3067\u3001\u5206\u6563\u304b\u3064\u4ed6\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u3063\u3066\u304f\u308c\u307e\u3059\u3002\u30b3\u30f3\u30d5\u30a3\u30b0\u6b21\u7b2c\u3067\u4ed6\u30b5\u30fc\u30d0\u3068\u304b\u306b\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u53d6\u308b\u3088\u3046\u306b\u3082\u51fa\u6765\u308b\u3088\u3046\u3067\u3059\u3002\u307e\u305f\u30d0\u30c3\u30af\u30ad\u30e3\u30c3\u30b7\u30e5\u3067\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u3068\u3044\u3063\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u7121\u3051\u308c\u3070DB\u306b\u53d6\u308a\u306b\u884c\u3063\u305f\u308a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u5165\u3063\u305f\u3082\u306e\u3092DB\u3078\u5165\u308c\u305f\u308a\u3059\u308b\u6a5f\u80fd\u304c\u52d5\u4f5c\u3057\u307e\u3059\u3002<br \/>\n\u3000Coherence\u306b\u95a2\u3057\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3068\u3053\u308d\u306f\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u683c\u7d0d\u3059\u308b\u30c7\u30fc\u30bf\u3068\u306a\u308b\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30e2\u30c7\u30eb\u3001\u4e0a\u8a18\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u3001\u305d\u306e\u4ed6\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30a4\u30d9\u30f3\u30c8\u51e6\u7406\u3084\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u5074\u306e\u70ba\u306bDAO\u7684\u306a\u3082\u306e\u3092\u7528\u610f\u3059\u308b\u304f\u3089\u3044\u3067\u3059\u3002<\/p>\n<p>\u3000\u307e\u305a\u3001\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u30e2\u30c7\u30eb\u3068\u3057\u3066PortableObject\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"lang:java decode:true \" title=\"TrnRequest.java\" >package jp.co.esoro.cache.EDM;\r\n\r\nimport java.io.IOException;\r\n\r\nimport com.tangosol.io.pof.PofReader;\r\nimport com.tangosol.io.pof.PofWriter;\r\nimport com.tangosol.io.pof.PortableObject;\r\n\r\n\/** \u53d6\u5f15\u5c65\u6b74 *\/\r\npublic class TrnRequest implements PortableObject{\r\n\r\n\t\/** \u53d6\u5f15\u5e74\u6708\u65e5 *\/\r\n\tprivate String trnDate;\r\n\t\/** \u6240\u5c5e\u5148ID *\/\r\n\tprivate String companyID;\r\n\t\/** \u53d6\u5f15\u756a\u53f7 *\/\r\n\tprivate String trnID;\r\n\t\/** \u53d6\u6d88\u30d5\u30e9\u30b0 *\/\r\n\tprivate String canselFlg;\r\n\t\/** \u30e6\u30fc\u30b6\u30fcID *\/\r\n\tprivate String userID;\r\n\t\/** \u91d1\u984d *\/\r\n\tprivate long amount;\r\n\t\/** \u53d6\u5f15\u533a\u5206 *\/\r\n\tprivate String requestType;\r\n\t\r\n\tpublic String getTrnDate() {\r\n\t\treturn trnDate;\r\n\t}\r\n\tpublic void setTrnDate(String trnDate) {\r\n\t\tthis.trnDate = trnDate;\r\n\t}\r\n\tpublic String getCompanyID() {\r\n\t\treturn companyID;\r\n\t}\r\n\tpublic void setCompanyID(String companyID) {\r\n\t\tthis.companyID = companyID;\r\n\t}\r\n\tpublic String getTrnID() {\r\n\t\treturn trnID;\r\n\t}\r\n\tpublic void setTrnID(String trnID) {\r\n\t\tthis.trnID = trnID;\r\n\t}\r\n\tpublic String getCanselFlg() {\r\n\t\treturn canselFlg;\r\n\t}\r\n\tpublic void setCanselFlg(String canselFlg) {\r\n\t\tthis.canselFlg = canselFlg;\r\n\t}\r\n\tpublic String getUserID() {\r\n\t\treturn userID;\r\n\t}\r\n\tpublic void setUserID(String userID) {\r\n\t\tthis.userID = userID;\r\n\t}\r\n\tpublic long getAmount() {\r\n\t\treturn amount;\r\n\t}\r\n\tpublic void setAmount(long amount) {\r\n\t\tthis.amount = amount;\r\n\t}\r\n\tpublic String getRequestType() {\r\n\t\treturn requestType;\r\n\t}\r\n\tpublic void setRequestType(String requestType) {\r\n\t\tthis.requestType = requestType;\r\n\t}\r\n\tpublic String getId() {\r\n\t\treturn trnDate + companyID + trnID;\r\n\t}\r\n\r\n\t@Override\r\n\tpublic void readExternal(PofReader arg0) throws IOException {\r\n\t\tsetTrnDate(arg0.readString(1));\r\n\t\tsetCompanyID(arg0.readString(2));\r\n\t\tsetTrnID(arg0.readString(3));\r\n\t\tsetCanselFlg(arg0.readString(4));\r\n\t\tsetUserID(arg0.readString(5));\r\n\t\tsetAmount(arg0.readLong(6));\r\n\t\tsetRequestType(arg0.readString(7));\r\n\t}\r\n\t@Override\r\n\tpublic void writeExternal(PofWriter arg0) throws IOException {\r\n\t\targ0.writeString(0, getId());\r\n\t\targ0.writeString(1, getTrnDate());\r\n\t\targ0.writeString(2, getCompanyID());\r\n\t\targ0.writeString(3, getTrnID());\r\n\t\targ0.writeString(4, getCanselFlg());\r\n\t\targ0.writeString(5, getUserID());\r\n\t\targ0.writeLong(6, getAmount());\r\n\t\targ0.writeString(7, getRequestType());\r\n\t}\r\n}<\/pre>\n<p>\u3000\u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u30ad\u30fc\u9805\u76ee\u304c\u53d6\u5f15\u5e74\u6708\u65e5\u3068\u6240\u5c5e\u5148ID\u3068\u53d6\u5f15\u756a\u53f7\u306e3\u3064\u3067\u3059\u304c\u3001KeyValue\u306a\u306e\u3067\uff11\u9805\u76ee\u306e\u30ad\u30fc\u3068\u3057\u3066getId\u3068\u3044\u3046\u30e1\u30bd\u30c3\u30c9\u3092\u5165\u308c\u3066\u307e\u3059\u3002<br \/>\n\u3000<br \/>\n\u3000\u6b21\u306b\u30d0\u30c3\u30af\u30ad\u30e3\u30c3\u30b7\u30e5\u5074\u3067\u52d5\u4f5c\u3059\u308bCacheStore\u3092\u5b9f\u88c5\u3057\u307e\u3059\u3002\u3053\u3093\u306a\u611f\u3058\u3002 <\/p>\n<pre class=\"lang:java decode:true \" title=\"ReqCacheStore.java\" >package jp.co.esoro.cache.Cachestore;\r\n\r\nimport java.sql.Connection;\r\nimport java.sql.PreparedStatement;\r\nimport java.sql.SQLException;\r\nimport java.util.Collection;\r\nimport java.util.Map;\r\nimport java.util.Map.Entry;\r\n\r\nimport jp.co.esoro.cache.EDM.TrnRequest;\r\n\r\nimport oracle.ucp.jdbc.PoolDataSource;\r\nimport oracle.ucp.jdbc.PoolDataSourceFactory;\r\n\r\nimport org.apache.logging.log4j.LogManager;\r\nimport org.apache.logging.log4j.Logger;\r\n\r\nimport com.tangosol.net.cache.CacheStore;\r\n\r\n\/**\r\n * \u5c65\u6b74\u30c6\u30fc\u30d6\u30eb\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\r\n * *\/\r\npublic class ReqCacheStore implements CacheStore {\r\n\tprotected static Logger logger;\r\n\tprivate Connection con = null;\r\n\tPreparedStatement storePs = null;\r\n\tPoolDataSource pds;\r\n\t\r\n\tprivate static String sql_TrnRequest = \"MERGE INTO TrnRequest H \"\r\n\t\t\t+ \"USING (SELECT ? trnDate, ? companyID, ? trnID FROM DUAL) U \"\r\n\t\t\t+ \"ON (H.trnDate = U.trnDate \"\r\n\t\t\t+ \"AND H.companyID = U.companyID \"\r\n\t\t\t+ \"AND H.trnID = U.trnID) \"\r\n\t\t\t+ \"WHEN MATCHED THEN \"\r\n\t\t\t+ \"UPDATE SET canselFlg=? \"\r\n\t\t\t+ \"WHEN NOT MATCHED THEN \"\r\n\t\t\t+ \"INSERT (trnDate,companyID,trnID,canselFlg,userID,amount,requestType) \"\r\n\t\t\t+ \" VALUES (?,?,?,?,?,?,?)\";\r\n\t\r\n\tpublic ReqCacheStore(String cacheName) {\r\n\t\tsuper();\r\n\t\tlogger = LogManager.getLogger();\r\n\t\ttry {\r\n\t\t\tpds = PoolDataSourceFactory.getPoolDataSource();\r\n\t\t\tpds.setConnectionPoolName(cacheName);\r\n\t\t\tpds.setConnectionFactoryClassName(   \r\n\t\t\t        \"oracle.jdbc.pool.OracleDataSource\");\r\n\t\t\tpds.setValidateConnectionOnBorrow(true);\r\n\r\n\t\t\tpds.setURL(\"****************\");\r\n\t\t\tpds.setUser(\"user\");\r\n\t\t\tpds.setPassword(\"password\");\r\n\t\t\tpds.setInitialPoolSize(1);\r\n\t\t\tpds.setMinPoolSize(1);\r\n\t\t\tpds.setMaxPoolSize(20);\r\n\t\t\t\r\n\t\t\tcon = pds.getConnection();\r\n\t\t\tstorePs = con.prepareStatement(sql_TrnRequest);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t}\r\n\r\n\t@Override\r\n\tpublic Object load(Object arg0) {\r\n\t\t\/\/get\u6642\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u7121\u3044\u5834\u5408DB\u7b49\u304b\u3089\u8aad\u8fbc\u307f\u304c\u5fc5\u8981\u306a\u5834\u5408\u8a18\u8ff0\r\n\t\treturn null;\r\n\t}\r\n\r\n\t@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic Map loadAll(Collection arg0) {\r\n\t\t\/\/get\u6642\u30ad\u30e3\u30c3\u30b7\u30e5\u306b\u7121\u3044\u5834\u5408DB\u7b49\u304b\u3089\u8aad\u8fbc\u307f\u304c\u5fc5\u8981\u306a\u5834\u5408\u8a18\u8ff0\r\n\t\treturn null;\r\n\t}\r\n\t\r\n\t@Override\r\n\tpublic void erase(Object arg0) {\r\n\t\t\/\/\u524a\u9664\u304c\u5fc5\u8981\u306a\u5834\u5408\u8a18\u8ff0\r\n\t}\r\n\t\r\n\t@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic void eraseAll(Collection arg0) {\r\n\t\t\/\/\u524a\u9664\u304c\u5fc5\u8981\u306a\u5834\u5408\u8a18\u8ff0\r\n\t}\r\n\t\r\n\t\/**\r\n\t * \uff24\uff22\u66f8\u8fbc\u307f\r\n\t * *\/\r\n\t@Override\r\n\tpublic void store(Object arg0, Object arg1) {\r\n\t\ttry {\r\n\t\t\tTrnRequest trn = (TrnRequest)arg1;\r\n\t\t\t\r\n\t\t\tstorePs.setString(1, trn.getTrnDate());\r\n\t\t\tstorePs.setString(2, trn.getCompanyID());\r\n\t\t\tstorePs.setString(3, trn.getTrnID());\r\n\t\t\tstorePs.setString(4, trn.getCanselFlg());\r\n\t\t\tstorePs.setString(5, trn.getTrnDate());\r\n\t\t\tstorePs.setString(6, trn.getCompanyID());\r\n\t\t\tstorePs.setString(7, trn.getTrnID());\r\n\t\t\tstorePs.setString(8, trn.getCanselFlg());\r\n\t\t\tstorePs.setString(8, trn.getUserID());\r\n\t\t\tstorePs.setLong(10, trn.getAmount());\r\n\t\t\tstorePs.setString(11, trn.getRequestType());\r\n\t\t\t\r\n\t\t\tstorePs.executeUpdate();\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t}\r\n\r\n\t@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic void storeAll(Map arg0) {\t\t\r\n\t\tfor (Object entry :arg0.entrySet()){\r\n\t\t\tstore( (Object)((Entry&lt;?, ?&gt;) entry).getKey(),(Object)((Entry&lt;?, ?&gt;) entry).getValue());\r\n\t\t}\r\n\t}\r\n}\r\n<\/pre>\n<p>\u4e0a\u8a18\u306fDB\u66f8\u304d\u8fbc\u307f\u306e\u307f\u306e\u5b9f\u88c5\u4f8b\u3067\u3059\u3002<\/p>\n<p>\u3000\u3053\u306e\u5148\u306f\u30b3\u30f3\u30d5\u30a3\u30b0\u3092\uff13\u3064\u66f8\u304d\u307e\u3059\u3002\u51dd\u3063\u305f\u4e8b\u3092\u3057\u306a\u3051\u308c\u3070\u30d5\u30ed\u30f3\u30c8\u7528\u3082\u30d0\u30c3\u30af\u7528\u3082\u540c\u3058\u3082\u306e\u3067OK\u3067\u3059\u3002\u3053\u308c\u3089\u306fJVM\u8d77\u52d5\u6642\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002\u30af\u30e9\u30b9\u30d1\u30b9\u5185\u306a\u3089\u30d5\u30a1\u30a4\u30eb\u540d\u3060\u3051\u3001\u5916\u306b\u7f6e\u3044\u3066\u3082\u30d5\u30eb\u30d1\u30b9\u3067\u6307\u5b9a\u3059\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u3000\u307e\u305a\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30af\u30e9\u30b9\u30bf\u8a2d\u5b9a\u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u30af\u30e9\u30b9\u30bf\u540d\u3060\u3051\u66f8\u3044\u3066\u304a\u3051\u3070\u5f8c\u306f\u52dd\u624b\u306b\u5404\u30d7\u30ed\u30bb\u30b9\u304c\u9023\u643a\u3057\u3066\u304f\u308c\u307e\u3059\u3002<br \/>\n\u3000\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001-Dtangosol.coherence.override=tangosol-coherence-override.xml<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"tangosol-coherence-override.xml\" >&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\r\n&lt;coherence xmlns=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-operational-config\" xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:schemaLocation=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-operational-config http:\/\/xmlns.oracle.com\/coherence\/coherence-operational-config\/1.2\/coherence-operational-config.xsd\"&gt;\r\n    &lt;!--coherence-version:12.1.3--&gt;\r\n    &lt;cluster-config&gt;\r\n        &lt;member-identity&gt;\r\n            &lt;cluster-name system-property=\"tangosol.coherence.cluster\"&gt;cohe-cluster1&lt;\/cluster-name&gt;\r\n        &lt;\/member-identity&gt;\r\n        &lt;multicast-listener&gt;\r\n          &lt;address system-property=\"tangosol.coherence.clusteraddress\"&gt;224.0.0.1&lt;\/address&gt;  \r\n          &lt;port system-property=\"tangosol.coherence.clusterport\"&gt;11131&lt;\/port&gt;\r\n        &lt;\/multicast-listener&gt; \r\n    &lt;\/cluster-config&gt;\r\n&lt;\/coherence&gt;<\/pre>\n<p>\u3000\u6b21\u306bPortableObject\u3068\u3057\u3066\u5b9f\u88c5\u3057\u305f\u3082\u306e\u3092POF\u30b3\u30f3\u30d5\u30a3\u30b0\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002\u756a\u53f7\u306f1000\u4ee5\u4e0a\u3067\u9069\u5f53\u306b\u4e26\u3079\u307e\u3059\u3002<br \/>\n\u3000\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001-Dtangosol.pof.config=pof.xml<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"pof.xml\" >&lt;?xml version=\"1.0\"?&gt;\r\n&lt;pof-config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n    xmlns=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-pof-config\"\r\n    xsi:schemaLocation=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-pof-config http:\/\/xmlns.oracle.com\/coherence\/coherence-pof-config\/1.2\/coherence-pof-config.xsd\"&gt;\r\n\t&lt;user-type-list&gt;\r\n\t&lt;!-- include all \"standard\" Coherence POF user types --&gt;\r\n\t&lt;include&gt;coherence-pof-config.xml&lt;\/include&gt;\r\n\t&lt;user-type&gt;\r\n\t\t&lt;type-id&gt;1001&lt;\/type-id&gt;\r\n\t\t&lt;class-name&gt;jp.co.esoro.cache.EDM.MstUser&lt;\/class-name&gt;\r\n\t&lt;\/user-type&gt;\r\n\t&lt;user-type&gt;\r\n\t\t&lt;type-id&gt;1002&lt;\/type-id&gt;\r\n\t\t&lt;class-name&gt;jp.co.esoro.cache.EDM.TrnRequest&lt;\/class-name&gt;\r\n\t&lt;\/user-type&gt;\r\n\t&lt;\/user-type-list&gt;\r\n&lt;\/pof-config&gt;\r\n<\/pre>\n<p>\u3000\u6700\u5f8c\u306b\u5404\u30ad\u30e3\u30c3\u30b7\u30e5\u69cb\u6210\u3068\u3057\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u30bf\u30a4\u30d7\u3084\u69cb\u6210\u3001\u4f5c\u6210\u3057\u305f\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u7b49\u3092\u66f8\u304d\u307e\u3059\u3002<br \/>\n\u3000\u8d77\u52d5\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001-Dtangosol.coherence.cacheconfig=cache-config.xml<\/p>\n<pre class=\"lang:xhtml decode:true \" title=\"cache-config.xml\" >&lt;?xml version=\"1.0\"?&gt;\r\n&lt;cache-config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\r\n              xmlns=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-cache-config\"\r\n              xsi:schemaLocation=\"http:\/\/xmlns.oracle.com\/coherence\/coherence-cache-config http:\/\/xmlns.oracle.com\/coherence\/coherence-cache-config\/1.2\/coherence-cache-config.xsd\"&gt;\r\n  &lt;defaults&gt;\r\n    &lt;serializer&gt;pof&lt;\/serializer&gt;\r\n    &lt;socket-provider system-property=\"tangosol.coherence.socketprovider\"\/&gt;\r\n  &lt;\/defaults&gt;\r\n  &lt;caching-scheme-mapping&gt;\r\n    &lt;cache-mapping&gt;\r\n      &lt;cache-name&gt;userMst&lt;\/cache-name&gt;\r\n      &lt;scheme-name&gt;master-scheme&lt;\/scheme-name&gt;\r\n    &lt;\/cache-mapping&gt;\r\n    &lt;cache-mapping&gt;\r\n      &lt;cache-name&gt;RequestTrn&lt;\/cache-name&gt;\r\n      &lt;scheme-name&gt;trn-scheme&lt;\/scheme-name&gt;\r\n    &lt;\/cache-mapping&gt;\r\n  &lt;\/caching-scheme-mapping&gt;\r\n  &lt;caching-schemes&gt;\r\n    &lt;replicated-scheme&gt;\r\n      &lt;scheme-name&gt;master-scheme&lt;\/scheme-name&gt;\r\n      &lt;service-name&gt;master-service&lt;\/service-name&gt;\r\n      &lt;backing-map-scheme&gt;\r\n      \t&lt;local-scheme&gt;&lt;\/local-scheme&gt;\r\n      &lt;\/backing-map-scheme&gt;\r\n      &lt;autostart&gt;true&lt;\/autostart&gt;\r\n    &lt;\/replicated-scheme&gt;\r\n    \r\n    &lt;distributed-scheme&gt;\r\n      &lt;scheme-name&gt;trn-scheme&lt;\/scheme-name&gt;\r\n      &lt;service-name&gt;trn-service&lt;\/service-name&gt;\r\n      &lt;thread-count&gt;3&lt;\/thread-count&gt;\r\n      &lt;backing-map-scheme&gt;\r\n        &lt;read-write-backing-map-scheme&gt;\r\n          &lt;internal-cache-scheme&gt;\r\n      \t    &lt;local-scheme&gt;\r\n      \t      &lt;eviction-policy&gt;LRU&lt;\/eviction-policy&gt;\r\n      \t      &lt;high-units&gt;1000000&lt;\/high-units&gt;\r\n      \t    &lt;\/local-scheme&gt;\r\n          &lt;\/internal-cache-scheme&gt;\r\n          &lt;cachestore-scheme&gt;\r\n            &lt;class-scheme&gt;\r\n              &lt;class-name&gt;jp.co.esoro.cache.Cachestore.ReqCacheStore&lt;\/class-name&gt;\r\n                 &lt;init-params&gt;\r\n                &lt;init-param&gt;\r\n                  &lt;param-type&gt;java.lang.String&lt;\/param-type&gt;\r\n                  &lt;param-value&gt;{cache-name}&lt;\/param-value&gt;\r\n                &lt;\/init-param&gt;\r\n              &lt;\/init-params&gt;\r\n            &lt;\/class-scheme&gt;\r\n          &lt;\/cachestore-scheme&gt;\r\n          &lt;write-delay&gt;5s&lt;\/write-delay&gt;\r\n          &lt;write-requeue-threshold&gt;1&lt;\/write-requeue-threshold&gt;\r\n        &lt;\/read-write-backing-map-scheme&gt;\r\n      &lt;\/backing-map-scheme&gt;\r\n      &lt;autostart&gt;true&lt;\/autostart&gt;\r\n    &lt;\/distributed-scheme&gt;\r\n    \r\n    &lt;proxy-scheme&gt;\r\n      &lt;scheme-name&gt;proxy-scheme&lt;\/scheme-name&gt;\r\n      &lt;service-name&gt;proxy-service&lt;\/service-name&gt;\r\n      &lt;thread-count&gt;10&lt;\/thread-count&gt;\r\n      &lt;acceptor-config&gt;\r\n        &lt;tcp-acceptor&gt;\r\n          &lt;local-address&gt;\r\n            &lt;address&gt;192.168.111.113&lt;\/address&gt;\r\n            &lt;port&gt;9099&lt;\/port&gt;\r\n          &lt;\/local-address&gt;\r\n        &lt;\/tcp-acceptor&gt;\r\n      &lt;\/acceptor-config&gt;\r\n      &lt;proxy-config&gt;\r\n        &lt;cache-service-proxy&gt;\r\n          &lt;enabled&gt;true&lt;\/enabled&gt;\r\n        &lt;\/cache-service-proxy&gt;\r\n        &lt;invocation-service-proxy&gt;\r\n          &lt;enabled&gt;true&lt;\/enabled&gt;\r\n        &lt;\/invocation-service-proxy&gt;\r\n      &lt;\/proxy-config&gt;\r\n      &lt;autostart&gt;true&lt;\/autostart&gt;\r\n    &lt;\/proxy-scheme&gt;\r\n  &lt;\/caching-schemes&gt;\r\n&lt;\/cache-config&gt;\r\n<\/pre>\n<p>\u3000\u4e0a\u8a18\u3067\u3059\u3068userMst\u306f\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30ad\u30e3\u30c3\u30b7\u30e5\u3001RequestTrn\u306f\u5206\u6563\u30ad\u30e3\u30c3\u30b7\u30e5\u3067OutOfMemory\u5bfe\u7b56\u3068\u3057\u3066\uff11\u30d7\u30ed\u30bb\u30b9\u6700\u5927\uff11\uff10\uff10\u4e07\u4ef6\u307e\u3067\u3001\u51e6\u7406\u8ca0\u8377\u5206\u6563\u306e\u70ba\u306b\u30b9\u30ec\u30c3\u30c9\u3092\uff13\u3064\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u30b9\u30c8\u30a2\u306f\u5fdc\u7b54\u30ec\u30b9\u30dd\u30f3\u30b9\u3092\u610f\u8b58\u3057\u3066\u30ad\u30e3\u30c3\u30b7\u30e5\u66f8\u304d\u8fbc\u307f\uff15\u79d2\u5f8c\u306b\u975e\u540c\u671f\u3067\u52d5\u4f5c\u3059\u308b\u3068\u3044\u3046\u5185\u5bb9\u3067\u3059\u3002\u6700\u5f8c\u306eProxy\u306f\u30af\u30e9\u30b9\u30bf\u69cb\u6210\u30d7\u30ed\u30bb\u30b9\u5916\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9(*Extends)\u304c\u3042\u308b\u5834\u5408\u306e\u53d7\u4fe1\u53e3\u3092\u7528\u610f\u3057\u3066\u3044\u308b\u5f62\u306b\u306a\u3063\u3066\u307e\u3059\u3002\u306a\u304a\u3001\u8907\u6570\u30d7\u30ed\u30bb\u30b9\u3092\u52d5\u4f5c\u3055\u305b\u308b\u5834\u5408\u306f\u3001PORT\u3092\u500b\u3005\u306b\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3000Oracle\u306e\u30a4\u30f3\u30e1\u30e2\u30ea\u30fc\u30b0\u30ea\u30c3\u30c9Coherence\u3092\u4f7f\u3063\u305f\u958b\u767a\u306b\u643a\u308f\u308a\uff11\u5e74\u7acb &hellip; <a href=\"https:\/\/esoro.jp\/?p=570\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/570"}],"collection":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=570"}],"version-history":[{"count":0,"href":"https:\/\/esoro.jp\/index.php?rest_route=\/wp\/v2\/posts\/570\/revisions"}],"wp:attachment":[{"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esoro.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}