function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Where does the BulkConnection class come from?

I also posted this under the REST API Integration Discussion board, but not sure if that's where it belongs, so here we go:


I'm trying to develop a solution in Java that uses the Bulk API to import objects into SalesForce and I'm following the Bulk API developers guide (located here:


In the example, references are made to a BulkConnection class.  I can't get this class to resolve...


I'm using the wsc-20.jar and the partner.jar generated from our Partner WSDL, but I can't find BulkConnection anywhere.


Any ideas? Thanks in advance!


RestConnection class in wsc-20 is renamed to BulkConnection in wsc-21. If you are using wsc-20, then please use RestConnection class instead.


WSC will be updated to version 21 after the next major release.







Thanks!  I'll try RestConnection until I can get my hands on the latest copy of WSC...


So you're saying I need to wait until the next major release before I can get a copy of wsc-21.jar?


Are there any differences between the two classes besides the name?


Thanks again.


Yes, you can use RestConnection till you get the latest WSC. It is just a rename.