新手區最新隨筆(rss) RSS

Guide to the Most Important JVM Parameters

https://www.baeldung.com/jvm-parametersa

Optimising Your Minecraft: Jvm Arguments
https://xealgaming.net/threads/optimising-your-minecraft-jvm-arguments.4758/

2019-08-01 16:55 作者: paulwong【評論:0】【閱讀:13】 

JVM內存配置

     摘要: JVM內存主要分為兩個部分,分別是PermanentSapce和HeapSpace。PermantSpace主要負責存放加載的Class類級對象如class本身,method,field等反射對象,一般不用配置。JVM的Heap區可以通過-X參數來設定。HeapSpace= {Old + NEW {= Eden , from, to } }當一個URL被訪問時,內存申請過程如下:JVM會試圖為相關...  閱讀全文

2019-08-01 16:44 作者: paulwong【評論:0】【閱讀:20】 

使用 Awaitility 測試異步代碼

自動化工具 異步校驗工具 awaitility 快速入門
https://testerhome.com/topics/7408


https://yanbin.blog/test-asyn-call-with-awaitility/

Introduction to Awaitlity
https://www.baeldung.com/awaitlity-testing




2019-08-01 10:06 作者: paulwong【評論:0】【閱讀:16】 

Spring Batch JUnit test for multiple jobs

     摘要: https://stackoverflow.com/questions/34217101/spring-batch-junit-test-for-multiple-jobsCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->@Configurationpu...  閱讀全文

2019-07-31 10:48 作者: paulwong【評論:0】【閱讀:20】 

Keep SSH session alive

     摘要: sshd (the server) closes the connection if it doesn't hear anything from the client for a while. You can tell your client to send a sign-of-life signal to the server once in a while.The configuration ...  閱讀全文

2019-07-30 13:46 作者: paulwong【評論:0】【閱讀:19】 

publish over ssh 實現 Jenkins 遠程部署

     摘要: Jenkins遠程部署,一開始沒有任何頭緒,想了很多方案. 因為兩臺機器都是windows系統,所以想到publish over cifs, 但是這個網上資料太少,貌似只能內網使用。又想到了Jenkins 分布式構建,但是Jenkins構建的代碼和產物最后自動拷貝到主節點。而遠程機器其實是客戶方的機器,所以這個分布式構建并不適用。最后還是選定publish over ssh來實現遠程部署。&nbs...  閱讀全文

2019-07-25 09:33 作者: paulwong【評論:0】【閱讀:30】 

How do I clear my Jenkins/Hudson build history?

     摘要: 問題:I recently updated the configuration of one of my hudson builds. The build history is out of sync. Is there a way to clear my build history?Please and thank you回答1:If you click Manage Hudson / Relo...  閱讀全文

2019-07-24 16:18 作者: paulwong【評論:0】【閱讀:19】 

Springboot ActiveMQ jmsTemplate配置

     摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->@[email protected](value="cachingConnectionFactory")public class JmsTemplateConfigurat...  閱讀全文

2019-07-24 11:40 作者: paulwong【評論:0】【閱讀:24】 

Enterprise Integration Patterns

     摘要: Why Enterprise Integration Patterns? Enterprise integration is too complex to be solved with a simple 'cookbook' approach. Instead, patterns can provide guidance by documenting the kind of experience...  閱讀全文

2019-07-18 14:11 作者: paulwong【評論:0】【閱讀:24】 

SPRING BATCH & SPRING INTEGRATION TUTORIAL

     摘要: Spring JMS Integration Gateway Example 12 minute read A detailed step-by-step tutorial on how to connect to a JMS broker using a Spring Integration Gateway and Spring Boot. Spring JMS Artem...  閱讀全文

2019-07-18 13:21 作者: paulwong【評論:0】【閱讀:23】 

Spring Integration Java DSL

     摘要: This time I decided to play a little bit with Spring Integration Java DSL. Which has been merged directly into Spring Integration Core 5.0, which is smart and obvious move because:Everyone s...  閱讀全文

2019-07-18 13:16 作者: paulwong【評論:0】【閱讀:18】 

SPRING BATCH remote chunking模式下可同時處理多文件

     摘要: SPRING BATCH remote chunking模式下,如果要同一時間處理多個文件,按DEMO的默認配置,是會報錯的,這是由于多個文件的處理的MASTER方,是用同一個QUEUE名,這樣SLAVE中處理多個JOB INSTANCE時,會返回不同的JOB-INSTANCE-ID,導致報錯。 這時需更改SPRING BATCH使用SPRING INTEGRATION的模式中的GATEWA...  閱讀全文

2019-07-16 14:38 作者: paulwong【評論:0】【閱讀:24】 

Build Messaging Between Ruby/Rails Applications with ActiveMQ

https://dev.to/kirillshevch/build-messaging-between-ruby-rails-applications-with-activemq-4fin

2019-07-12 17:12 作者: paulwong【評論:0】【閱讀:25】 

STEP范圍內的ROUTER

在SPRING BATCH中,通常ROUTER是針對STEP的,但是如果在一個STEP中有多個WRITER,每個WRITER是寫不同文件的,因此需要一個STEP內的ROUTER,以便能ROUTE到不同的WRITER中。


https://gist.github.com/benas/bfe2be7386b99ce496425fac9ff35fb8

2019-07-11 11:45 作者: paulwong【評論:0】【閱讀:14】 

動態改變SPRING BATCH 的 CHUNKSIZE

 在SPRING BATCH REMOTE CHUNKING的模式下:
SPRING BATCH 讀文件時,是按一行一行來讀取數據,再按CHUNKSIZE提交到REMOTE操作,有時要整合當前行和下幾行,再決定CHUNKSIZE,以便相關的數據能在遠程同一個PROCESSOR中按順序進行處理,因為相關的數據被拆成幾個CHUNK來處理的話,就有可能不按順序來處理。這樣就需要動態調整CHUNKSIZE。

參照如下:
https://stackoverflow.com/questions/37390602/spring-batch-custom-completion-policy-for-dynamic-chunk-size

并結合SingleItemPeekableItemReader(裝飾者,允許查看下一條數據,真正的操作委托給代理)。

2019-07-02 11:13 作者: paulwong【評論:0】【閱讀:29】 

RABBITMQ資源

消息隊列之 RabbitMQ
https://www.jianshu.com/p/79ca08116d57

Spring Boot 中使用 RabbitMQ
https://juejin.im/post/59f194e06fb9a0451329ec53




2019-06-28 10:24 作者: paulwong【評論:0】【閱讀:20】 

How to implement JMS ReplyTo using SpringBoot

     摘要: Request-Response is a message-exchange-pattern. In some cases, a message producer may want the consumers to reply to a message. The JMSReplyTo header indicates which destination, if any, a JMS co...  閱讀全文

2019-06-27 09:20 作者: paulwong【評論:0】【閱讀:29】 

ACTIVE MQ高級特性

https://blog.51cto.com/1754966750/category17.html

2019-06-26 14:13 作者: paulwong【評論:0】【閱讀:24】 

JMS消息消費的順序性

現有的系統架構都是分布式的。有多個消息的發送者和多個消息的消費者。例如訂單創建消息和訂單支付消息,我們需要保證先消費訂單創建消息,然后消費訂單支付消息。

如何解決MQ消息消費順序問題
https://segmentfault.com/a/1190000014512075

jms-如何保證消息的順序
https://leokongwq.github.io/2017/01/23/jms-message-order.html







2019-06-24 17:42 作者: paulwong【評論:0】【閱讀:28】 

Multiple MongoDB connectors with Spring Boot

http://blog.marcosbarbero.com/multiple-mongodb-connectors-in-spring-boot/

2019-06-20 15:12 作者: paulwong【評論:0】【閱讀:23】 

NFS Server 架設

     摘要: 安裝 nfs-utils 套件。[[email protected] ~]# yum install -y nfs-utils建立 NFS 分享目錄。Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->[[email protected]  閱讀全文

2019-06-18 09:08 作者: paulwong【評論:0】【閱讀:35】 

centos7 mysql數據庫安裝和配置


https://www.cnblogs.com/starof/p/4680083.html

2019-06-14 10:24 作者: paulwong【評論:0】【閱讀:27】 

SPRING BOOT 打包部署指南


https://segmentfault.com/a/1190000017386408

2019-06-13 15:22 作者: paulwong【評論:0】【閱讀:31】 

Spring batch 的高級特性--監聽,異常處理,事務


https://my.oschina.net/u/2600078/blog/909346

2019-06-12 17:03 作者: paulwong【評論:0】【閱讀:30】 

LINUX安裝NFS

     摘要: https://qizhanming.com/blog/2018/08/08/how-to-install-nfs-on-centos-7 How to fix "mountd: refused mount request: unmatched host" https://www.golinuxhub.com/2016/09/how-to-fix-mountd-refused-moun...  閱讀全文

2019-06-12 15:24 作者: paulwong【評論:0】【閱讀:43】 

zip4j

縮解壓ZIP之Zip4j
https://rensanning.iteye.com/blog/1836727

2019-06-10 16:47 作者: paulwong【評論:0】【閱讀:30】 

Message Processing With Spring Integration

Full demo
https://dzone.com/articles/message-processing-spring

2019-06-05 11:08 作者: paulwong【評論:0】【閱讀:31】 

Spring integration 基本概念

     摘要: 1.spring integration 's architecture 主要提供兩個功能: 在系統內提供實現輕量級、事件驅動交互行為的框架 在系統間提供一種基于適配器的平臺,以支持靈活的系統間交互 2.spring integration對于企業集成模式的支持 2.1Message:一個信息的單元,通常有消息頭(header)和消息內容(payload)組成...  閱讀全文

2019-06-05 10:36 作者: paulwong【評論:0】【閱讀:42】 

如何在SPRING INTEGRATION中使用事務

File Polling using the Spring Integration DSL
http://porterhead.blogspot.com/2016/07/file-polling-using-spring-integration.html

2019-06-04 14:19 作者: paulwong【評論:0】【閱讀:37】 

SpringBoot使用MongoDB異常問題

https://www.cnblogs.com/linzhanfly/p/9674778.html

2019-05-29 16:58 作者: paulwong【評論:0】【閱讀:60】 

技 術 改 變 世 界

宣傳語

網站分類

其他分類

Google站內搜索

 

24小時內最熱隨筆

統計信息

訂閱

Blog客戶端API

推薦客戶端

博客排行榜[前100人]

友情鏈接

魔法糖果闯关