Red Hat ã®ã½ãªã¥ã¼ã·ã§ã³ã¢ã¼ããã¯ãã®ç¬æ¸ã§ãã
ãã®è¨äºã¯Red Hat Developerã® How to migrate apps from JBoss EAP 7.x to JBoss EAP 8-Beta ãã許å¯ãããã¦ç¿»è¨³ãããã®ã§ãã
ãã®è¨äºã§æ¶åãã¦ããMTRã®å»æ¢ã決ã¾ã£ã¦ãã¾ãã®ã§ã移è¡æ¹æ³ã«ã¤ãã¦ããããã¦ã¾ã¨ãã¾ããã以ä¸ã®è¨äºãåç §ãã¦ãã ããã(2024å¹´4æ)
ãã®è¨äºã§ã¯æè¿ãªãªã¼ã¹ãããJBoss EAP 8-Betaã«ã¤ãã¦èª¬æãã¾ããJBoss EAP 8 ã§å°å ¥ãããå¤æ´ç¹ã«ã¤ãã¦è§£èª¬ããã¢ããªã±ã¼ã·ã§ã³ã JBoss EAP 7.4 ãã移è¡ããããã«å¿ è¦ãªæé ã示ãã¾ãã
JBoss EAP 8.0 ã¯Jakarta EE 10ããµãã¼ããã¾ããJakarta EE 10 㯠EAP 7 ã§ãµãã¼ãããã¦ãã Jakarta EE 8 ä»æ§ã¨æ¯è¼ã㦠Jakarta EE ã«å¤§ããªå¤æ´ãããããã¾ããJBoss EAP 8 ã§ã¯ä»¥ä¸ã®æ©è½ã«ãå¤æ´ãå ¥ã£ã¦ãã¾ãã
- Picketbox ã®åé¤: JBoss EAP 6.4 ããéæ¨å¥¨ã«ãªã£ã¦ãã¾ãããã¬ã¬ã·ã¼ãªã»ãã¥ãªãã£ã¼è¨å®ã¯Elytron ã»ãã¥ãªãã£ã¼ãµãã·ã¹ãã ã«ç§»è¡ããå¿ è¦ãããã¾ãããã§ã« Elytron ã«ç§»è¡æ¸ã¿ã® EAP ã¦ã¼ã¶ã¼ã¯å¤æ´ãå ããå¿ è¦ã¯ããã¾ããã
- PicketLink ã®åé¤: JBoss EAP 6.4 ããéæ¨å¥¨ã«ãªã£ã¦ãã¾ãããPicketLink ã§æä¾ããã¦ããã·ã³ã°ã«ãµã¤ã³ãªã³æ©è½ã«ã¯ RH SSO ãå©ç¨ãããã¨ããå§ããã¾ãã
- OpenID Connect (OIDC) ã®ãµãã¼ã ã¯ãåå¥ã® RH-SSO OIDC ã¢ããã¿ã¼ã®ãããã« elytron-oidc-client ãµãã·ã¹ãã ã«ãã£ã¦æä¾ãããããã«ãªãã¾ãã
- SAML ãµãã¼ã 㯠RH-SSO SAML ã¢ããã¿ã¼ã«ãã£ã¦æä¾ãããããã«ãªãã¾ã (Picketlink SAML ã¯åé¤ããã¾ãã)ãJBoss EAP 8.0 GA ã§ã¯ãSAML ã®ãµãã¼ãã¯æ°ãã RH-SSO SAML Galleon Feature Pack ã«ãã£ã¦æä¾ããã¾ãã
- Hibernate 6.x: 5.11.x ãã 6.0.x ã¸ã®ç§»è¡ã«é¢ããã¬ã¤ãã³ã¹ã«ã¤ãã¦ã¯ã Hibernate Search ã®è¨äºãåç §ãã¦ãã ããã
- JDK 8 ã®åé¤: JDK 11 ã¾ã㯠JDK 17 ãå¿ è¦ã«ãªãã¾ããã
- Jolokia 㨠Prometheus ã®åé¤: Red Hat ã¯ãããã®æ©è½ããµãã¼ãããªããªãã¾ããJBoss EAP ãµã¼ãã¼ã¯ããµã¼ãã¼ã¡ããªã¯ã¹ã¨ã³ããã¤ã³ã (
: /metrics) ãä»ãã¦ã¡ããªã¯ã¹ãå ¬éãã¾ãã - Apache Log4j 1.x ã® APIã® åé¤:ã¢ããªã±ã¼ã·ã§ã³ã log4j.jar ããã³ Log4jã®è¨å®ãã¢ããªã±ã¼ã·ã§ã³ã®ä¸é¨ã¨ãã¦å«ãã§ããªãå ´åã¯ãããããæ´æ°ããå¿ è¦ãããã¾ãã
- æ°ãã maven ãã©ã°ã¤ã³: æ°ãã eap-maven-plugin 㯠Galleon ãã¯ããã¸ã使ç¨ãã¦ãã¢ããªã±ã¼ã·ã§ã³ã§å¿ è¦ãªã¬ã¤ã¤ã¼æ§æã«åºã¥ãã¦ãµã¼ãã¼ãæ§ç¯ãã¾ããããã«ããå®è¡æãµã¤ãºã¨ã¡ã¢ãªãããããªã³ããåæ¸ãããå¤é¨ããã®æ»æãåããå¯è½æ§ã®ããé åã縮å°ããã¾ããCVE ã®å½±é¿ãåãã JAR ãåå¨ããªãå ´åã«ã¯EAP 㯠CVE ã«å¯¾ãã¦èå¼±ã§ã¯ããã¾ãããJBoss EAP 8 OpenShift ã¤ã¡ã¼ã¸ã«ã¯ãEAP 6 㨠EAP 7 ã§ä½¿ç¨ããã¦ãããã㪠EAP ã©ã³ã¿ã¤ã ãã¤ããªã¯å«ã¾ãã¦ãã¾ããããã®ãã©ã°ã¤ã³ã¯ãµã¼ãã¼è¨å®ãã«ã¹ã¿ãã¤ãºããããã® JBoss EAP CLI ã¹ã¯ãªãã ãã¡ã¤ã«ã®å®è¡ããµãã¼ããã¦ãã¾ããOpenShift Source to Image ãã«ã (S2I) ã¯ãã®å¤æ´ãçµã¿è¾¼ã¿ãeap-maven-plugin ãå©ç¨ãã¦ãµã¼ãã¼ãä½æããããã«åè¨è¨ããã¾ããã詳細ã«ã¤ãã¦ã¯ããã¥ã¡ã³ããåç §ãã¦ãã ããã
- ããªãã¸ã®ãããã¤ã失æãã: 以åã¯ããªãã¸ã使ç¨ããæã¾ã§èª¤ã£ã¦æ§æããã¦ãããããããã¾ããã§ãããæ°ãããã¼ã¸ã§ã³ã§ã¯ããªãã¸ã®ãããã¤ã«å¤±æããå ´åã«ã¯è¿½å æã«å¤±æããããã«ãªãã¾ããã
ãã®ãã¼ã¿çãªãªã¼ã¹ã§å°å ¥ãããå¤æ´ç¹ã®è©³ç´°ã«ã¤ãã¦ã¯ããªãªã¼ã¹ãã¼ããåç §ãã¦ãã ããã
JBoss EAP 7.4 ãã JBoss EAP 8-Beta ã¸ã®ç§»è¡
ã¢ããªã±ã¼ã·ã§ã³ã JBoss EAP 7.4 ãã JBoss EAP 8.0 Beta ã«ç§»è¡ããããã«ã¯ã³ã¼ãã®å¤æ´ãå¿ è¦ã«ãªãã¾ã (Jakarta EE 8 ãã Jakarta EE 10 ã¸ã®ç§»è¡ ("javax"åå空éãã"jakarta"åå空éã¸ã®å¤æç) ã®ãã)ãã©ãããå¤æ´ãå¿ è¦ãªã®ãã«ã¤ãã¦ã¯ãã¡ãã®è¨äºãåç §ãã¦ãã ããã ãã®ç§»è¡ä½æ¥ã§ã客æ§ãæ¯æ´ããããã«Red Hat ã®ã¨ã³ã¸ãã¢ã¯ãã¼ã«ãMigration Toolkit for Applicationsã¨Migration Toolkit for Runtimes (MTRãOpenShiftã使ç¨ãã¦ããªãããã¸ã§ã¯ãç¨) ããã³ JBoss EAP Server Migration toolã®æ´æ°ã«å±ãã§ãã¾ãããã®è¨äºã§ã¯ããããã®ãã¼ã«ã使ç¨ãã¦ã¢ããªã±ã¼ã·ã§ã³ã JBoss EAP 7.4 ãã JBoss EAP 8-Beta ã«ç§»è¡ãã¾ãã
ãã®è¨äºã§ã¯2 ã¤ã®é åã«ç¦ç¹ãå½ã¦ã¾ããææ°ãã¼ã¸ã§ã³ã®MTR ãã¼ã«ã§ç¹å®ãããå¿ è¦ãªã³ã¼ãå¤æ´ã¨ãstandalone.xml ãã¡ã¤ã«ã®æ§æã®å¤æ´ã§ãã
ãJBoss EAP 7.4 ã¯ã¤ãã¯ã¹ã¿ã¼ãã«ãMySQL ãã¼ã¿ãã¼ã¹ã«æ¥ç¶ããããã®ããã¤ãã®å¤æ´ãå ããã¢ããªã±ã¼ã·ã§ã³ã使ç¨ãã¾ããããã«ããã¢ã¸ã¥ã¼ã«ã¨ãã©ã¤ãã¼ã®å¤æãæ¤è¨¼ã§ãã¾ãããã®ã¢ããªã±ã¼ã·ã§ã³ã®ã½ã¼ã¹ ã³ã¼ãã確èªã§ãã¾ãã
åææ¡ä»¶
å®éã®ç§»è¡ä½æ¥ãéå§ããåã«ãå®è¡ä¸ã®ã¢ããªã±ã¼ã·ã§ã³ã§ JBoss EAP 7.4 ã®ã¤ã³ã¹ã¿ã³ã¹ãã»ããã¢ãããã¾ããããã¯ãµã¼ãã¼æ§æãã¡ã¤ã«ã®ç§»è¡ããã»ã¹ã®ãã¢ã«ä½¿ãã¾ãã
JBoss EAP 7.4 ã¯ã¤ãã¯ã¹ã¿ã¼ãã®kitchensinkã¢ããªã±ã¼ã·ã§ã³ã次ã®ããã«å¤æ´ãã¦ä½¿ç¨ãã¾ãã
ã¢ããªã±ã¼ã·ã§ã³ãMySQL ãã¼ã¿ãã¼ã¹ã«æ¥ç¶ããããã«æ´æ°ãã¾ãããããã«ãããJ2EE ã¢ã¸ã¥ã¼ã«ã¨ãã©ã¤ãã¼ã®ç§»è¡ããã¹ãã§ãã¾ãã KCS ã®è¨äºã§èª¬æããã¦ããããã«ãJava Server Faces ããã¼ã¸ã§ã³ 2.2 ãã 2.3 ã«æ´æ°ãã¾ããã
次ã®ã³ãã³ãã使ç¨ãã¦ãPodman ã Docker ã使ç¨ãã¦ãæ£ããæ§æ㧠MySQL ã®ã¤ã³ã¹ã¿ã³ã¹ãå®è¡ã§ãã¾ãã
podman run -d -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=eap mysql
JBoss EAP 7.4 zip ãã£ã¹ããªãã¥ã¼ã·ã§ã³ããã¦ã³ãã¼ããã¾ãããã£ã¹ããªãã¥ã¼ã·ã§ã³ããã¼ã«ã«ãã©ã«ãã¼(ä¾: ~/jboss-eap-74) ã«è§£åãã¾ããRed Hat ã¢ã«ã¦ã³ããæã£ã¦ããªãå ´åã¯ã¢ã«ã¦ã³ããä½æãã¦ãã ããã
EAP_HOME ç°å¢å¤æ°ãè¨å®ãã¾ãã
export EAP_HOME=~/jboss-eap-74
ããããã¨æ¬¡ã®ã³ãã³ã㧠JBoss EAP 7.4 ãèµ·åã§ãã¾ãã
$EAP_HOME/bin/standalone.sh
ãã¡ãã®ãµã³ãã« ã¢ããªã±ã¼ã·ã§ã³ãgitã使ç¨ãã¦ãã§ãã¯ã¢ã¦ããã¦ãã ããã
ãã£ã¬ã¯ããªã eap-quickstarts/kitchensink ãã©ã«ãã¼ã«å¤æ´ãã¾ãã
modules ãã©ã«ãã¼ã®å 容ã ~/jboss-eap-74/modules ãã©ã«ãã¼ã«ã³ãã¼ãã¾ãã
cp -r modules/* $EAP_HOME/modules
JBoss EAP CLI ãå®è¡ãã¾ãã
$EAP_HOME/bin/jboss-cli.sh â-connect
JBoss CLI ã«æ¬¡ã®ã³ãã³ããå ¥åã㦠MySQL ãã©ã¤ãã¼ã¨ãã¼ã¿ã½ã¼ã¹ãè¨å®ãã¾ãã
/subsystem=datasources/jdbc-driver=mysql:add(driver-name=mysql,driver-module-name=com.mysql) data-source add --name=mysql --jndi-name=java:/jdbc/mysql --driver-name=mysql --connection-url=jdbc:mysql://127.0.0.1:3306/eap --user-name=root --password=root
ã¢ããªã±ã¼ã·ã§ã³ããã«ãããmaven ã使ç¨ã㦠JBoss EAP 7.4 ã«ãããã¤ãã¾ãã
mvn clean install wildfly:deploy
ãã®ã¢ããªã±ã¼ã·ã§ã³ãæ£å¸¸ã«ãããã¤ãããã¨ã http://127.0.0.1:8080/kitchensink ããã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ãã
ããã§ã¢ããªã±ã¼ã·ã§ã³ãå®è¡ãã¦ãã JBoss EAP 7.4 ã®ã¤ã³ã¹ã¿ã³ã¹ãä½æãããJBoss EAP 8.0 Beta ã«ç§»è¡ããæºåãæ´ãã¾ããã移è¡ãéå§ããåã«JBoss EAP 7.4 ãµã¼ãã¼ãã·ã£ãããã¦ã³ããJBoss EAP 7.4 ãããã¤ã¡ã³ãå ãæãç°å¢å¤æ°ãä½æãã¾ãã
export EAP_PREVIOUS_HOME=~/jboss-eap-74
JBoss EAP 8-Beta ãã£ã¹ããªãã¥ã¼ã·ã§ã³ããã¡ããããã¦ã³ãã¼ããã¦ãã ããã
ãã£ã¹ããªãã¥ã¼ã·ã§ã³ããã¼ã«ã«ãã©ã«ãã¼ (ä¾: ~/jboss-eap-8) ã«è§£åãã¾ãã
EAP_HOME ç°å¢å¤æ°ã次ã®ããã«è¨å®ãã¾ãã
export EAP_HOME=~/jboss-eap-8
ããã§JBoss EAP 7.4 ãã JBoss EAP 8.0 Beta ã¸ã®ç§»è¡ã«é²ããã¨ãã§ãã¾ãã
ãµã¼ãã¼æ§æã®å¤æ´
ã¢ããªã±ã¼ã·ã§ã³ã JBoss EAP 7.4 ã«ãããã¤ããã¨ãã«ãµã¼ãã¼è¨å®ã«å¤æ´ãå ã㦠MySQL ã«æ¥ç¶ããã¢ã¸ã¥ã¼ã«ã¨ãã©ã¤ãã¼ã追å ãã¾ããããããã®ã¢ã¸ã¥ã¼ã«ã¨ãã©ã¤ãã¼ãJBoss EAP 8-Beta ãµã¼ãã¼ã«æ£ããé ç½®ããåä½ãããã¨ã確èªããå¿ è¦ãããã¾ããJBoss EAP ãµã¼ãã¼ç§»è¡ãã¼ã«ã使ç¨ãã¦ããã®ç§»è¡ãå®è¡ã§ãã¾ãã
ãã¡ããããµã¼ãã¼ç§»è¡ãã¼ã«ããã¦ã³ãã¼ããã¾ãã
ã¢ã¼ã«ã¤ãããã¼ã«ã«ãã©ã«ãã¼ã«è§£åããæ°ãããã£ã¬ã¯ããªã«å¤æ´ãã¾ãã次ã®ã³ãã³ããå®è¡ãã¾ãã
./jboss-server-migration.sh -s $EAP_PREVIOUS_HOME -t $EAP_HOME
ãµã¼ãã¼ç§»è¡ãã¼ã«ã¯ã移è¡ããã»ã¹ä¸ã«ä¸éãã®è³ªåããã¾ãã
---------------------------------------------------------- ---- JBoss Server Migration Tool ----------------------- ---------------------------------------------------------- Retrieving servers... INFO SOURCE server name: JBoss EAP, version: 7.4.0.GA. INFO TARGET server name: JBoss EAP, version: 8.0.0.Beta. ---------------------------------------------------------- ---------------------------------------------------------- Server migration starting... INFO --- Migrating modules requested by environment... INFO No modules to migrate. Migrate the source's standalone server? yes/no?
ã¹ã¿ã³ãã¢ãã³æ§æã移è¡ããã«ã¯ã[yes]ãé¸æãã¾ãã
INFO --- Migrating standalone server... INFO Source's standalone content migrated. INFO Source's standalone configurations found: [standalone-full-ha.xml, standalone-full.xml, standalone-ha.xml, standalone-load-balancer.xml, standalone.xml] Migrate all configurations? yes/no?
[no]ãé¸æãã¾ãã移è¡ããæ§æãé¸æãã¾ãã
Migrate configuration standalone-full-ha.xml ? yes/no?
[no]ãé¸æãã¾ããstandalone-full-ha.xml ã移è¡ãããããã¾ããã
Migrate configuration standalone-full.xml ? yes/no?
[no]ãé¸æãã¾ããstandalone-full.xml ã移è¡ãããããã¾ããã
Migrate configuration standalone-ha.xml ? yes/no?
[no]ãé¸æãã¾ãã standalone-ha.xml ã移è¡ãããããã¾ããã
Migrate configuration standalone-load-balancer.xml ? yes/no?
[no]ãé¸æãã¾ããstandalone-load-balancer.xml ã移è¡ãããããã¾ããã
Migrate configuration standalone.xml ? yes/no?
[yes]ãé¸æãã¾ããstandalone.xml ã移è¡ãããã¨èãã¦ãã¾ãã
INFO Migrating standalone configuration standalone.xml... WARN Migration of legacy security domain jboss-web-policy's authorization is not supported and will be ignored. WARN Migration of legacy security domain jaspitest's authentication-jaspi is not supported and will be ignored. WARN Migration of legacy security domain jboss-ejb-policy's authorization is not supported and will be ignored. INFO Legacy security XML configuration retrieved. INFO Unsupported extensions removed: [org.jboss.as.security] INFO Unsupported subsystems removed: [urn:jboss:domain:security:2.0] INFO Referenced paths migrated. INFO Legacy security realms removed from XML configuration. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.wildfly.extension.elytron.SSLDefinitions (jar:file:/home/philip/Downloads/wildfly-ee-dist-8.0.0.Beta-redhat-00002/jboss-eap-8.0/modules/system/layers/base/org/wildfly/extension/elytron/main/wildfly-elytron-integration-jakarta-19.0.0.Beta16-redhat-00004.jar!/) to method com.sun.net.ssl.internal.ssl.Provider.isFIPS() WARNING: Please consider reporting this to the maintainers of org.wildfly.extension.elytron.SSLDefinitions WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release INFO Legacy security realm ManagementRealm migrated to Elytron. INFO Legacy security realm ApplicationRealm migrated to Elytron. INFO Legacy security domain other migrated to Elytron. Migrate the source's managed domain? yes/no?
[no]ãé¸æãã¾ããããã¼ã¸ããã¡ã¤ã³ã¯ä½¿ç¨ãã¦ãã¾ããã
Server migration done. INFO ---------------------------------------------------------------------------------------------------------- Task Summary ---------------------------------------------------------------------------------------------------------- server .......................................................................................... SUCCESS standalone ..................................................................................... SUCCESS contents.standalone.migrate-content-dir ....................................................... SUCCESS contents.standalone.migrate-content(path=7d/975dfd92d3b7a35f48054ad2190bdf7ebbeb3b/content) .. SUCCESS contents.standalone.migrate-content(path=b5/fe70630a477a851f755cc04eb5cc3030bb02db/content) .. SUCCESS contents.standalone.migrate-content(path=92/2cdbb0d087989ad5e6ecbd3c0123a34def19b7/content) .. SUCCESS contents.standalone.migrate-content(path=14/99d19995fc5835cb1c07eed113447b4fb46c4e/content) .. SUCCESS contents.standalone.migrate-content(path=3d/25c8107fcc4cf82f234dcf6ad5b8e926e7ec18/content) .. SUCCESS contents.standalone.migrate-content(path=45/9834b7318bd81b320829432fdef5a77bf93a19/content) .. SUCCESS contents.standalone.migrate-content(path=38/c53e35a6ab9d8a40016a5429f7115ff94e3ce7/content) .. SUCCESS standalone-configurations ..................................................................... SUCCESS standalone-configuration(source=standalone.xml) .............................................. SUCCESS ---------------------------------------------------------------------------------------------------------- Migration Result: SUCCESS ----------------------------------------------------------------------------------------------------------
ãã®æä½ãå®äºããããJBoss EAPãã¤ã³ã¹ãã¼ã«ãããã©ã«ãã¼ãã以ä¸ã®ã³ãã³ãã使ç¨ã㦠JBoss EAP 8.0 ãµã¼ãã¼ãèµ·åã§ãã¾ãã
./bin/standalone.sh
ãµã¼ãã¼ãæ£å¸¸ã«èµ·åãããã次ã®ã³ãã³ãã§æ§æããã¹ãã§ãã¾ãã
./jboss-cli.sh --connect
/subsystem=datasources:installed-drivers-list
åºåã«MySQLãã©ã¤ãã¼ã®æ å ±ã次ã®ããã«è¡¨ç¤ºããã¾ãã
{ "outcome" => "success", "result" => [ { "driver-name" => "mysql", "deployment-name" => undefined, "driver-module-name" => "com.mysql", "module-slot" => "main", "driver-datasource-class-name" => "", "driver-xa-datasource-class-name" => "", "datasource-class-info" => undefined, "driver-class-name" => "com.mysql.cj.jdbc.Driver", "driver-major-version" => 8, "driver-minor-version" => 0, "jdbc-compliant" => false }
次㮠JBoss CLI ã³ãã³ãã使ç¨ãã¦ãã¼ã¿ã½ã¼ã¹æ¥ç¶ããã¹ããããã¨ãã§ãã¾ãã
/subsystem=datasources/data-source=mysql:test-connection-in-pool
æ¥ç¶ãæåããã¨æ¬¡ã®ãããªã¬ã¹ãã³ã¹ãè¿ããã¾ãã
{ "outcome" => "success", "result" => [true] }
ã¢ããªã±ã¼ã·ã§ã³ã«å¿ è¦ãªãã©ã¤ãã¼ã¨ãã¼ã¿ã½ã¼ã¹ãåå¨ãããã¨ã確信ã§ããããã«ãªã£ãã®ã§ãã³ã¼ãåæã»ã¯ã·ã§ã³ã«é²ããã¨ãã§ãã¾ãã
ã³ã¼ãåââæ
JBoss EAP 7.4 ã§åãã¢ããªã±ã¼ã·ã§ã³ã®ã³ã¼ãåæãå®è¡ããã«ã¯ãMigration Toolkit for Runtimes(MTR) ã®ææ°ãã¼ã¸ã§ã³ã使ç¨ãã¾ãããã®ãã¼ã«ã¯ãã¡ããããã¦ã³ãã¼ãã§ãã¾ãã*1
ã³ãã³ã ./run_windup.sh
ãå®è¡ãã¦MTR ãã¼ã«ãèµ·åããhttp://127.0.0.1:8080/windup-ui ã«ç§»åãã¾ãã *2
MTRã®åæãã¼ã¸ (å³1) ã§ã[ Create Project ] ãã¯ãªãã¯ãã¾ãã
ããã¸ã§ã¯ãå (eap7-eap8 ãªã©) ãå ¥åãã[Next] ãã¯ãªãã¯ãã¾ãã
次ã«ãåæããã¢ã¼ãã£ãã¡ã¯ã(ã¢ããªã±ã¼ã·ã§ã³)ãã¢ãããã¼ãããå¿ è¦ãããã¾ã (å³2)ã
ã¢ããªã±ã¼ã·ã§ã³ããã«ããã¦ä½æããWARãã¡ã¤ã«ãWeb ã³ã³ã½ã¼ã«ããã¢ãããã¼ããã¾ããWAR ãã¡ã¤ã«ã¯ eap-quickstarts/kitchensink/target ãã©ã«ãã¼ã«ããã¾ãã
[次ã¸] ãã¯ãªãã¯ã ã¦é²ã¿ã¾ãã
次ã«å¤æã¿ã¼ã²ãããé¸æãã¾ã (å³3): [Application server migration to EAP 7] ããã¯ã¹ãã [eap8] ãé¸æãã¾ãã
[Next]ãã¯ãªãã¯ãã¦ç¶è¡ãã¾ãã
次ã®ç»é¢ã§ãé¸æããããã±ã¼ã¸ã®ãªã¹ãã«orgã追å ãã[Next] ãã¯ãªãã¯ãã¾ãã
å¾ç¶ã®ãã¼ã¸ãã¯ãªãã¯ãã¦é²ã¿ã[Save and Run]ãé¸æãã¦åæãéå§ãã¾ããåæãçµäºããããåæãªã¹ãè¡ã®å³å´ã«ããã°ã©ãã®è¨å·ãã¯ãªãã¯ãã¦ãã¬ãã¼ããèªã¿è¾¼ã¿ã¾ãã
ã¬ãã¼ãããããã¼ã«ããã®ã¢ããªã±ã¼ã·ã§ã³ã移è¡ããããã« 87 ã®ã¹ãã¼ãªã¼ ãã¤ã³ããè¦ç©ãã£ã¦ãããã¨ããããã¾ããã¹ãã¼ãªã¼ ãã¤ã³ãã®è¦ç©ããã¯ãæé (æéãæ¥ãªã©) ã¨ã¯é¢ä¿ããã¾ãããããã¯ãä»ã®åæããã®ã¬ãã¼ãã«å¯¾ãã¦æ¸¬å®ããããã®ææ¨ã§ããkitchensink.warãã¯ãªãã¯ãã¦ã対å¦ãã¹ãåé¡ã®è©³ç´°ã表示ãã¾ã (å³4)ã
ããã·ã¥ãã¼ã ãã¥ã¼ã§ [Issues] ã¿ããã¯ãªãã¯ãã¦ã 解決ããã¤ã³ã·ãã³ãã®ãªã¹ãã表示ãã¾ãã
ãã®è¨äºã§ã¯ã[Migration Mandatory](移è¡ã«å¿ é ãªé ç®)ã«ç¦ç¹ãå½ã¦ã¾ã (å³ 5)ã
ãã®åæã®çµæã¯ãç§ãã¡ã®äºæ³ã¨ä¸è´ãã¦ãã¾ã (ã¤ã¾ãã"javax"ã¸ã®åç §ã"jakarta"ã«å¤æ´)ãä»ã®ããã¤ãã®å¤æ´ç¹ã強調表示ããã¦ãã¾ã (ãã¨ãã°ãã¢ããªã±ã¼ã·ã§ã³ã¯ Java Server Faces ã使ç¨ãã¦ãã¾ã)ããã®ãããJBoss EAP 8-Beta ãã¼ã¸ã§ã³ã¨ä¸è´ããããã«ãã¼ã¸ã§ã³ãæ´æ°ããå¿ è¦ãããã¾ãã
ãããã®é ç®ãåå¥ã«èª¿ã¹ã¦ã³ã¼ããæåã§å¤æ´ããããOpenrewrite ãªã©ã®ãã¼ã«ã使ç¨ãã¦ãããã®å¤æ´ãèªååããããé¸æã§ãã¾ããOpenrewriteã使ç¨ã㦠Java EE 8 ãã Jakarta EE 9 ã«ç§»è¡ããæ¹æ³ã«ã¤ãã¦ã¯ããã¡ãã®è¨äºãåç §ãã¦ãã ããã
ã¬ãã¼ãã«è¨è¼ããã¦ããå¤æ´ã® 1 ã¤ã¯ãå³ 6 ã«ç¤ºããã¦ãã pom.xml ãã¡ã¤ã«ã®ä¾åé¢ä¿ãæ´æ°ãããã¨ã§ãã
ãã®ä¾ã§ã¯ãgroupId 㨠artifactId ã®å¤æ´ã«å ãã¦ãversion.server.bom ããããã£ãå¤æ´ããå¿ è¦ãããã¾ããpom.xml ã§ã以ä¸ãç½®ãæãã¾ãã
<version.server.bom>7.4.0.GA</version.server.bom>
ã
<version.server.bom> 8.0.0.Beta-redhat-00004 </version.server.bom>
注æ: ãã®ã¬ã¤ã㯠JBoss EAP ã®ãã¼ã¿çãªãªã¼ã¹ãæ±ã£ã¦ãããããæ©æã¢ã¯ã»ã¹ Maven ãªãã¸ããªã¼ãããã¸ã§ã¯ãã«è¿½å ããå¿ è¦ãããã¾ãããã㯠GA ãªãªã¼ã¹ã§ã¯å¿ è¦ãªãããã移è¡ãã¼ã«ãããã®è¦åã®å¯¾è±¡å¤ã§ãããããã®ãªãã¸ããªã追å ããã«ã¯ãpom.xml ãã¡ã¤ã«ã® repositories ãããã¯ã«ä»¥ä¸ã追å ãã¾ãã
<repository> <id>redhat-ea-maven-repository</id> <name>Red Hat Early Access Maven Repository</name> <url>https://maven.repository.redhat.com/earlyaccess/all/</url> <releases> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </releases> <snapshots> <enabled>true</enabled> <updatePolicy>never</updatePolicy> </snapshots> <layout>default</layout> </repository>
ãããã®å¤æ´ããã¹ã¦å®äºããã¨ã¢ããªã±ã¼ã·ã§ã³ããã«ãã㦠JBoss EAP 8-Beta ã«ãããã¤ã§ããããã«ãªãã¾ãããããã¤ããããã«ã¯JBoss EAP 8-Beta ãµã¼ãã¼ãå®è¡ããã¦ããç¶æ ã§æ¬¡ã®ã³ãã³ããå®è¡ãã¾ãã
mvn clean install wildfly:deploy
maven ããã»ã¹ãå®äºããã¨ãã¢ããªã±ã¼ã·ã§ã³ã http://127.0.0.1:8080/kitchensink ã§å©ç¨ã§ããããã«ãªãã¾ãã
æåã§ãï¼JBoss EAP 7.4 ã¢ããªã±ã¼ã·ã§ã³ã¨ãµã¼ãã¼è¨å®ã¯JBoss EAP 8-Beta ã«å®å ¨ã«ç§»è¡ããã¾ããã
JBoss EAP 8 ãã¼ã¿çãªãªã¼ã¹
ãã®è¨äºã§ã¯JBoss EAP 8.0 ã®ãã¼ã¿çãªãªã¼ã¹ã§å°å ¥ããã主ãªå¤æ´ç¹ã«ã¤ãã¦èª¬æãã¾ããããµã¼ãã¼ç§»è¡ãã¼ã«ã使ç¨ãã¦è¨å®ã JBoss EAP 7.4.0 ãã JBoss EAP 8.0 ã«ç§»è¡ããããã«å¿ è¦ãªå¤æ´ãè¡ãã¾ãããMigration Toolkit for Applications ã使ç¨ãã¦Jakarta EE 8 ãã Jakarta EE 10 ã¸ã®ç§»è¡ã«å¿ è¦ãªã³ã¼ãå¤æ´ã«é¢ããã¬ã¤ãã³ã¹ãæä¾ãã¾ããã
JBoss EAP Beta ãªãªã¼ã¹ã«é¢é£ãã便å©ãªãªã³ã¯ã以ä¸ã«ç¤ºãã¾ãã
- JBoss EAP 8-Beta ãªãªã¼ã¹ãã¼ã
- JBoss EAP 8 ãã¼ã¿çã®ãã¦ã³ãã¼ã
- Migration Toolkit for Applications*3
- JBoss ãµã¼ãã¼ç§»è¡ãã¼ã«ã®ãã¦ã³ãã¼ã
- Jakarta EE 8 ãã EE 10 ã¸ã® Red Hat JBoss EAP ã¢ããªã±ã¼ã·ã§ã³ã®ç§»è¡
- Hibernateã®5.11 ããã®ç§»è¡ã¬ã¤ã
- Migration Toolkit for Applications ã®æ¦è¦ãããª
*1:訳注:Migration Toolkit for Runtimesã¯Migration Toolkit for Applicationsããªãã©ã³ãããããã®ã§ããOpenShiftä¸ã§åãããªãå ´åã¯ãã¡ãã使ç¨ãããã¨ã«ãªãã¾ãããæ©è½ã¯ä¸ç·ã§ãã
*2:訳注:ã¢ã¯ã»ã¹ã§ããªãå ´åã¯EAPãã·ã£ãããã¦ã³ãã¦ãããã¨ã確èªãã¦ãã ããã
*3:訳注:OpenShiftä¸ã§åãããªãå ´åã¯MTRã使ç¨ãã¦ãã ããã https://developers.redhat.com/products/mtr/overview