Preparing Web Shops for Business-on-Behalf 
In your SAP NW AS Java system, you have to do the following:
Make sure that at least one web shop is available
See Creating a Web Shop for Business on Behalf for a description of how to achieve this.
Make sure that there is a suitable application configuration that you can use with the Java application for business-on-behalf to access your web shops remotely from SAP CRM
See Creating an Application Configuration in XCM for a description of how to achieve this.
Note
These steps are independent of each other, so the order in which you perform them does not matter.