แสดงบทความที่มีป้ายกำกับ websphere แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ websphere แสดงบทความทั้งหมด

วันเสาร์ที่ 16 กรกฎาคม พ.ศ. 2559

การใช้ Spring Boot บน Websphere 8, 8.5

เพราะว่าเป็น Enterprise เลยต้องมีเวลา Customize เพิ่มครับ

1. ต้อง Downgrade ให้ไปใช้ JPA2.0 แทนเพราะ Spring Boot ใช้ JPA2.1 (JPA จะโหลดจาก Application Server ไม่สามารถ Config ให้โหลดจาก Web  Project ได้ครับ) ทีนี่

2. Spring Boot จะ config แบบ no web.xml โดยการ extend SpringInitializer ถ้า Websphere ไม่สามารถโหลดได้ต้องเปลี่ยน Config ให้ใช้ web.xml ครับ แล้วอะไรที่ Config บน web.xml ต้องย้ายมาหมดพวก filter, ดัก error-page ที่นี่

3. สำหรับคนที่จะ Config Maven ให้ RAD ใช้งานได้ ดู ที่นี่

วันพุธที่ 30 เมษายน พ.ศ. 2557

Config Maven สำหรับ Websphere

เป็นการ Config Eclipse เพิ่มเติมสำหรับ Add Reference Websphere  ครับ
โดยเพิ่ม ข้อมูลตามนี้ แยกตามแต่ละชนิดของ Application (ในส่วน additionalProjectFacets) แล้วใส่เลขเวอร์ชั่นของ Websphere  ลงไป

 <plugin>  
                     <groupId>org.apache.maven.plugins</groupId>  
                     <artifactId>maven-eclipse-plugin</artifactId>  
                     <version>2.9</version>  
                     <configuration>  
                          <wtpversion>2.0</wtpversion>  
                          <additionalProjectFacets>  
                               <jst.ear>6.0</jst.ear>  
                               <com.ibm.websphere.extended.ear>8.0</com.ibm.websphere.extended.ear>  
                               <com.ibm.websphere.coexistence.ear>8.0</com.ibm.websphere.coexistence.ear>  
                          </additionalProjectFacets>  
                     </configuration>  
                </plugin>  

1. Web Project เพิ่ม
     - com.ibm.websphere.extended.web
     - com.ibm.websphere.coexistence.web
2. EJB Project
     - com.ibm.websphere.extended.ejb
3. Enterprise Project
     - com.ibm.websphere.extended.ear
     - com.ibm.websphere.coexistence.ear