First make sure GlassFish Server is running. Then follow these steps:
- Log in to the GlassFish administration console at: http://%7bserver%7d:4848/login.jsf
- Click on 'Resources' in left pane
- Click on 'JDBC'
- Click on 'Connection Pools'
- In main window add a new Connection Pool by clicking 'New' and enter in your pool settings
- Click next and configure any additional settings, then click finish - You now have a Connection Pool
- Click 'Ping' to test your Connection Pool. If Ping fails, the next tip may resolve your issue
When I was creating my Connection Pool I was not successfully connecting. I stumbled across the following tip which hoepfully will save you time. This is what you need to do:
- Make sure the MySQL Driver (mysql-connector-{version}.jar) is located in your GlassFish installation domains/domain1/lib/ext directory
- Restart Server
- Try pinging again
Next you will create a JDBC Resource
- Click on 'JDBC Resources' in left pane
- In main window add a new JDBC resource by clicking 'New'
- Enter your JDBC Resource JNDI Name - JDBC/'something'
- Select the Connection Pool you created in previous steps
- Click OK
Start NetBeans IDE
First we need to make sure you have added your Database Application within GlassFish
- In left hand pane select Services
- Under Databases if your Database Application is not listed, right click and choose 'New Connection'
- Enter in your settings for your Database Application Connection
- Click File -New Project -SOA- BPEL Module
- Give your BPEL Module a name and click finish
- Right click on Process Files within that BPEL Module and select New - WSDL
- Enter a File Name
- Select Concrete WSDL
- In Binding select 'DATABASE'
- In Type select the appropriate value - I used 'Prepared Statement'
- In URl, select the conenction you created above
- Type in your prepared statement and enter any parameters
- In the JNDI Name, type in the JDBC resource you created in the beginning of these instructions.
I then took the database trigger WSDL and the associated schema and placed them within Intalio. Dropped the operation within Intalio Diagram, wired up the variables in the data mapper and deployed successfully.
If you need more assistance, contact me at http://btmsoftwaresolutions.com/