Index: jpa/eclipselink.jpa.test/build.xml
===================================================================
--- jpa/eclipselink.jpa.test/build.xml (revision 1676)
+++ jpa/eclipselink.jpa.test/build.xml (working copy)
@@ -58,11 +58,48 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -712,7 +749,7 @@
-
+
@@ -720,11 +757,11 @@
-
+
-
+
@@ -831,13 +868,21 @@
+
+
+
+
+
+
+
+
@@ -851,7 +896,7 @@
-
+
@@ -864,7 +909,7 @@
-
+
@@ -879,14 +924,14 @@
-
+
-
+
Index: jpa/eclipselink.jpa.test/configWebSphere.py
===================================================================
--- jpa/eclipselink.jpa.test/configWebSphere.py (revision 0)
+++ jpa/eclipselink.jpa.test/configWebSphere.py (revision 0)
@@ -0,0 +1,58 @@
+# This program may be used, executed, copied, modified and distributed
+# without royalty for the purpose of developing, using, marketing, or distribution
+
+#------------------------------------------------------------------------
+#
+# installEJB3CounterSample
+#
+# This is a jython script designed to be run with the wsadmin command. It
+# assumes a simple single node, single server install. It should be
+# invoked from within the /bin directory as:
+# wsadmin.bat|sh -lang jython -f c:\Temp\Was\configWebSphere.py
+#------------------------------------------------------------------------
+# Create JDBC Driver
+try:
+ AdminConfig.remove(AdminConfig.getid('/Node:%%hostName%%Node01/Server:server1/JDBCProvider:OracleJDBCProvider/'))
+except:
+ print 'OracleJDBCProvider was not previously installed'
+AdminConfig.save()
+
+n1 = ['name', 'OracleJDBCProvider']
+implCN = ['implementationClassName', 'oracle.jdbc.pool.OracleConnectionPoolDataSource']
+jdbcAttrs = [n1, implCN, ['classpath', '%%oracleDriver%%']]
+print jdbcAttrs
+node = AdminConfig.getid('/Node:%%hostName%%Node01/Server:server1/')
+newJDBC = AdminConfig.create('JDBCProvider', node, jdbcAttrs)
+AdminConfig.save()
+print newJDBC
+
+# Create DataSource
+name = ['name', 'EclipseLinkDS']
+dsAttrs = [name, ['jndiName', 'jdbc/EclipseLinkDS']]
+newds = AdminConfig.create('DataSource', newJDBC, dsAttrs)
+AdminConfig.save()
+print newds
+
+# Create DataSource Custom Properties
+newds = AdminConfig.getid('/Node:%%hostName%%Node01/Server:server1/JDBCProvider:OracleJDBCProvider/DataSource:EclipseLinkDS/')
+print newds
+newpropset = AdminConfig.create('J2EEResourcePropertySet',newds,[])
+AdminConfig.create('J2EEResourceProperty', newpropset, [['name', 'URL'], ['value', '%%dbURL%%']])
+AdminConfig.create('J2EEResourceProperty', newpropset, [['name', 'user'], ['value', '%%dbUser%%']])
+AdminConfig.create('J2EEResourceProperty', newpropset, [['name', 'password'], ['value', '%%dbPassword%%']])
+AdminConfig.save()
+print '-> Done!'
+
+# Create Shared Library
+try:
+ AdminConfig.remove(AdminConfig.getid('/Node:%%hostName%%Node01/Server:server1/Library:eclipselinkjpa'))
+except:
+ print 'eclipselinkjpa was not previously installed'
+AdminConfig.save()
+
+n1 = AdminConfig.getid('/Node:%%hostName%%Node01/Server:server1/')
+print n1
+library = AdminConfig.create('Library', n1, [['name', 'eclipselinkjpa'],
+['classPath', '%%eclipselinkLibDir%%/eclipselink.jar']])
+print library
+AdminConfig.save()
Index: jpa/eclipselink.jpa.test/installApps.py
===================================================================
--- jpa/eclipselink.jpa.test/installApps.py (revision 0)
+++ jpa/eclipselink.jpa.test/installApps.py (revision 0)
@@ -0,0 +1,41 @@
+# This program may be used, executed, copied, modified and distributed
+# without royalty for the purpose of developing, using, marketing, or distribution
+
+#------------------------------------------------------------------------
+#
+# installApps
+#
+# This is a jython script designed to be run with the wsadmin command. It
+# assumes a simple single node, single server install. It should be
+# invoked from within the /bin directory as:
+# wsadmin.bat|sh -lang jython -f /installApps.py
+#------------------------------------------------------------------------
+
+# If the application is currently installed, uninstall it
+try:
+ AdminApp.uninstall('%%appName%%')
+except:
+ print '%%appName%% was not previously installed'
+AdminConfig.save()
+
+# Set the options for the install
+attrs = ['-appname', '%%appName%%']
+
+# Install the application
+AdminApp.install('%%ear%%', attrs)
+AdminConfig.save()
+
+# Associate shared library
+deployment = AdminConfig.getid('/Deployment:%%appName%%/')
+print deployment
+appDeploy = AdminConfig.showAttribute(deployment, 'deployedObject')
+print appDeploy
+classLoad1 = AdminConfig.showAttribute(appDeploy, 'classloader')
+print classLoad1
+print AdminConfig.create('LibraryRef', classLoad1, [['libraryName',
+'eclipselinkjpa'], ['sharedClassloader', 'true']])
+AdminConfig.save()
+
+# Start the application
+appManager = AdminControl.queryNames('type=ApplicationManager,*')
+AdminControl.invoke(appManager, 'startApplication', '%%appName%%')
Index: jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties
===================================================================
--- jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties (revision 0)
+++ jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties (revision 0)
@@ -0,0 +1 @@
+javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
Index: jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties
===================================================================
--- jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties (revision 0)
+++ jpa/eclipselink.jpa.test/resource/websphere/jaxp.properties (revision 0)
@@ -0,0 +1 @@
+javax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl
Index: jpa/eclipselink.jpa.test/unInstallApps.py
===================================================================
--- jpa/eclipselink.jpa.test/unInstallApps.py (revision 0)
+++ jpa/eclipselink.jpa.test/unInstallApps.py (revision 0)
@@ -0,0 +1,19 @@
+# This program may be used, executed, copied, modified and distributed
+# without royalty for the purpose of developing, using, marketing, or distribution
+
+#------------------------------------------------------------------------
+#
+# installApps
+#
+# This is a jython script designed to be run with the wsadmin command. It
+# assumes a simple single node, single server install. It should be
+# invoked from within the /bin directory as:
+# wsadmin.bat|sh -lang jython -f /unInstallApps.py
+#------------------------------------------------------------------------
+
+# If the application is currently installed, uninstall it
+try:
+ AdminApp.uninstall('%%appName%%')
+except:
+ print '%%appName%% was not previously installed'
+AdminConfig.save()
Index: jpa/eclipselink.jpa.test/websphere.properties
===================================================================
--- jpa/eclipselink.jpa.test/websphere.properties (revision 0)
+++ jpa/eclipselink.jpa.test/websphere.properties (revision 0)
@@ -0,0 +1,21 @@
+# WebSphere Server Testing Environment Properties.
+
+# Standard server properties.
+server.user=
+server.pwd=
+server.url=iiop://localhost:2809/
+server.testrunner=org.eclipse.persistence.testing.framework.server.TestRunner
+server.lib=C:/IBM/WAS61/runtimes
+server.depend=com.ibm.ws.admin.client_6.1.0.jar
+server.platform=WebSphere_6_1
+server.factory=com.ibm.websphere.naming.WsnInitialContextFactory
+
+# WebSphere specific properties.
+was.home=C:/IBM/WAS61
+instance.host=yzhao-pc
+eclipselink.jar.dir=C:/EclipseLink/trunk
+
+junit.lib=../../../extension.lib.external/junit.jar
+eclipselink.jar.name=../../eclipselink.jar
+jdbc.driver.jar=C:/Drivers/OracleDrivers/10gr1/ojdbc14.jar
+
Index: jpa/eclipselink.jpa.test/websphere.xml
===================================================================
--- jpa/eclipselink.jpa.test/websphere.xml (revision 0)
+++ jpa/eclipselink.jpa.test/websphere.xml (revision 0)
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+