JPA Eclipse link from Open JPA - IBM WAS 8.5.12 server - jpa

I would like to migrate to Eclipse link and JPA 2.1 on IBM WAS server and DB2. Could you please advice the sets need to be followed? If anyone used before, please explain to us what are the things to have cared?
I am going through the document - https://developer.ibm.com/wasdev/docs/can-i-use-jpa-2-1-on-websphere-application-server/

If you want JPA 2.1 I'd strongly suggest to migrate to WebSphere Liberty (preferably) , as it fully supports that and you already have license for that if you have WAS 8.5, or migrate to tWAS 9.0. On WAS 8.5.x you will have to disable JPA scanning, use application-managed persistence, create shared liberary.... not really worth.
In addition to server settings changes you will have to migrate your app from OpenJPA to EclipseLink. There is free Eclipse plugin - WebSphere_Application_Server_Migration_Toolkit that you can configure to scan your application sources for OpenJPA -> EclipseLink migration.
But also for WAS 8.5.x -> WebSphere Liberty migration ;-)

Related

MySQL to ObjectDB Migration

A maven JEE project using JSF, JPA (EclipseLink 2.3) is using MySQL comminity edition as the database. With the size of the database exceeding 20GB, there are database related peformance issues. As a solution, I am going to use ObjectDB.
I am doing to use two persistence units for each database and migrate objects. Will it work? If not, is there any other recommendation? I tired the web to search, but could not find any totorial explaining how to do it ?

does weblogic 12C support native toplink

from 11G, weblogic use ecliplselink as it's default jpa solution, anyone can tell me is native toplink is still be supported in weblogic 12c?
Yes, TopLink is still supported, certified and is considered the default provider in WLS, but what version do you mean and what API are you using?
You might want to checkout the TopLink datasheet and documentation though, as EclipseLink provides the core persistence used underneath TopLink.

NetBeans: create Entity from Database

I need to reverse engineer my database tables into Entity to run a Java EE project on JBoss AS 7. So I've added into the Services the JBoss application server and added as well as resources a MySQL datasource.
However, when I try to run the wizard Create Entity from Database I can see as only option the default ExampleDS Database. There is no other option to create a new DataSource or use the MySQL DataSource that I've installed on JBoss.
I wonder if it's a NetBeans bug, or I'm missing something. I'm using NetBeans 8.0.1 version.
I think it's an issue with the plugin that you are using for connecting to the application server. I remember I had this issue when I first tried to generate Entity classes from a Database using a Datasource on WildFly. Are you sure that the target application server is JBoss AS 7 and not WildFly ?
If so, try to connect the application to a JBoss AS 7 /EAP 6 instead and see if it works.
Hope it helps
Edit: I've included a JBoss NetBeans tutorial which shows the steps for reverse engineering database tables into Entity classes (and then JSF pages).

IBM websphere to JBOSS migration

I want to migrate EAR and WAR applications from WAS 8 to JBOSS AS 7.
Can any one provide any Check List for the same?
There's an automated pluggable rule-based migration tool JBoss Windup. Run the tool and get a report of what needs to be done to migrate.
You can also customize this tool to cover your specific code patterns you need to migrate. Sharing your custom rules back to the community is highly appreciated.
Have fun :)
WAS has tool Application Migration toolkit to check application being migrated from WebLogic /Jboss to WAS , not sure if such tool exist for JBOSS
http://www.ibm.com/developerworks/websphere/downloads/migtoolkit/compmig.htmlc

converting JPA 1.0 to JPA 2.0

In eclipse ,I am trying to upgrade my JPA from 1.0 to 2.0 (EJB project). I have made changes in the library and using eclipselink also but when I am again creating a project it is not giving an option of JPA 2 in faclets to select
any one have some idea whats the problem
It will depend on the version of Eclipse, and the weblogic plugin (OEPE) you are using. Without the correct connectors Eclipse is only aware that WebLogic server can run JPA1.0.
Perhaps try the latest version of OEPE pack here and point it at your workspace.
You also need to make sure the version of WebLogic you are using supports JPA2- you have tagged the question as weblogic 10.x which only supports JPA2.0 in 10.3.4 and later, and may require you to patch weblogic to enable the support.