Setup a Developer AccountFirst browse to http://developer.force.com/ and join developer force. If you use a trial at salesforce.com alone then you will get an API_CURRENTLY_DISABLED error when trying to test the connection to salesforce.
|Join now page|
If you already have a username/password setup in salesforce then you will have to create a unique username. An email from firstname.lastname@example.org with the subject Welcome to Force.com! should be received. An additional email from email@example.com should be received with the subject Salesforce.com login confirmation. Click the link to login and set the password to Salesforce.com.
In order to access the API with our username and password we have to reset (create) a security token. Once you sign onto salesforce.com click on the My Personal Information link. The option to Reset your security token is then clicked. Once clicked on email from firstname.lastname@example.org with the subject salesforce.com security token confirmation should be received. This token appended with your username will login to salesforce.
|Reset Security Token|
I used SOA-P and EDS from Red Hat and added the server to the project. One note when going through the tutorial that if a managed connection error occurs then go into the ds.xml that is deployed to the app server and add the username and password in order to preview the data.