JLUPIN PLATFORM WEBSITE
tutorials
  • Rating:
  • Views: 438
  • Author: JLupin
  • Skill level: easy
  • Comments: 0

Migration

Below are described steps to migrate your microservice from 1.4.1.0-RC5 to 1.4.1.0-RC6.

Plugins

It is necessary to update JLupin Next Server IntelliJ Plugin to version 1.2.7 (new templates). JLupin Next Server Maven Plugin is same as for 1.4.1.0-RC5 (1.2.1).

Native microservice configuration file

There are some new and some unsupported configuration keys for native microservice so you need to update your configuration.yml file. Add:

PROPERTIES:
  [...]
  #javaExecutablePath: 'c:\\jvm\\bin\\java.exe'
  #additionalClassPath: 'c:\\temp\\*'
  isStartOnMainServerInitialize: true
  priorityStartOnMainServerInitialize: 4
  [...]
THREAD_POOLS:
  THREAD_POOL_1:
    size: 8
    waitingTimeForTasksCompletionInMillis: 10000
  #THREAD_POOL_2:
  #  size: 8
  #  waitingTimeForTasksCompletionInMillis: 10000

And remove:

PROPERTIES:
  [...]
  #startProcessCommand: c:\\jvm\\bin\\java.exe -Xms128M -Xmx256M - for custom path to JVM

Thread pools are just new option to use thread pools managed by JLupin Platform. If you want to know more about them just go to our documentation.

Servlet microservice configuration file

For servlet microservice situation is the same. Just add:

PROPERTIES:
  [...]
  #javaExecutablePath: 'c:\\jvm\\bin\\java.exe'
  #additionalClassPath: 'c:\\temp\\*'
  isStartOnMainServerInitialize: true
  priorityStartOnMainServerInitialize: 4
  [...]
THREAD_POOLS:
  THREAD_POOL_1:
    size: 8
    waitingTimeForTasksCompletionInMillis: 10000
  #THREAD_POOL_2:
  #  size: 8
  #  waitingTimeForTasksCompletionInMillis: 10000

And remove:

PROPERTIES:
  [...]
  #startProcessCommand: c:\\jvm\\bin\\java.exe -Xms128M -Xmx256M - for custom path to JVM

Main Server configuration file

From Main Server configuration file (main.yml) you need to remove serializeType parameter from queue server section:

SERVERS:
  [...]
  QUEUE:
    [...]:
    serializeType: 'default'

And that's all.

RATE & DISCUSS (0)

No comments found.