wsjpaversion command

Use this command line tool to find out information about the installed version of Java Persistence API (JPA) for WebSphere® Application Server.

New or updated for this feature pack The Feature Pack for OSGi Applications and JPA 2.0 introduces support for Apache OpenJPA 2.0.

New or updated for this feature pack Run the JPA commands (.bat on Windows or .sh on UNIX) from the <profile_root>/bin directory, rather than from the <app_server_root>/bin directory to make sure you have the latest version of the commands for your release level.

Syntax

The command syntax is as follows:

[AIX] [HP-UX] [Linux] [Solaris] [z/OS]
wsjpaversion.sh 
[Windows]
wsjpaversion.bat

Usage

The version tool can be very useful when debugging problems with JPA in applications and for providing customer support teams with the information about the current JPA environment.

New or updated for this feature pack The command is run from the <profile_root> directory.

Examples New or updated for this feature pack

Find the version information of your JPA installation example output:
C:\was70-GM>profiles\a1002.07\bin\wsjpaversion.bat
WSJPA 2.0.0-SNAPSHOT
version id: WSJPA-2.0.0-SNAPSHOT-r1118:1843
revision: 1118:1843

OpenJPA 2.0.0-SNAPSHOT
version id: openjpa-2.0.0-SNAPSHOT-r422266:897308
Apache svn revision: 422266:897308

os.name: Windows XP
os.version: 5.1 build 2600 Service Pack 2
os.arch: x86

java.version: 1.6.0
java.vendor: IBM Corporation

java.class.path:
        C:\was70-GM\feature_packs\jpa\dev\JavaEE\j2ee.jar
        C:\was70-GM\feature_packs\jpa\plugins\com.ibm.ws.jpa.jar
        C:\was70-GM\plugins\com.ibm.ws.prereq.commons-collections.jar

user.dir: C:\was70-GM\plugins\com.ibm.ws.jpa.jar



Related tasks
Troubleshooting Java Persistence API (JPA) applications
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Jan 16, 2013 3:37:33 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v700osgijpa&product=was-nd-mp&topic=rejb_wsjpaversion
File name: rejb_wsjpaversion.html