Chapter 6 Deploy the EJB jar

Worked using glassfish v3 Promoted Build of 09/16/2009.

Created connection pool:

C:\glassfishv3\bin>asadmin create-jdbc-connection-pool --datasourceclassname=org
.apache.derby.jdbc.ClientDataSource --restype=javax.sql.DataSource --property po
rtNumber=1527:password=APP:user=APP:serverName=localhost:databaseName=chapter06D
B:connectionAttributes=;create\=true Chapter06Pool

Command create-jdbc-connection-pool executed successfully.
C:\glassfishv3\bin>

Incidentally, this didn't work until I changed C:\Documents and Settings\Walt\.asadminpass to say
asadmin:admin@localhost:4848
instead of
asadmin:
anonymous@localhost:4848

I could then ping the connection pool:

C:\glassfishv3\bin>asadmin ping-connection-pool Chapter06Pool

Command ping-connection-pool executed successfully.
C:\glassfishv3\bin>

Declare the datasource:

C:\glassfishv3\bin>asadmin create-jdbc-resource --connectionpoolid Chapter06Pool
 jdbc/chapter06DS

Command create-jdbc-resource executed successfully.
C:\glassfishv3\bin>

List datasources:

C:\glassfishv3\bin>asadmin list-jdbc-resources
jdbc/__TimerPool
jdbc/chapter06DS
jdbc/__default

Command list-jdbc-resources executed successfully.
C:\glassfishv3\bin>

DEPLOY SUCCESSFUL

C:\JavaEE6\Chapter06>asadmin deploy --force=true target\chapter06-1.0.jar

Command deploy executed successfully.
C:\JavaEE6\Chapter06>
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License