You'll just need geode-dependencies.jar on your classpath for the client. You can use the references found here as an example of configuring Maven or Gradle. http://geode.incubator.apache.org/releases/
Instead of referencing geode-core, you'll reference geode-dependencies as the artifact id. The Maven repo is the Apache one at: https://dist.apache.org/repos/dist/release/incubator/geode/ On Mon, Oct 24, 2016 at 6:39 PM, John D. Ament <johndam...@apache.org> wrote: > Ok - but do I use the "geode-core" maven coordinate? Its not clear from > http://geode.incubator.apache.org/releases/ that this is the client lib. > > On 2016-10-24 20:15 (-0400), Mark Secrist <msecr...@pivotal.io> wrote: > > There's here: > > http://geode.incubator.apache.org/docs/guide/basic_config/ > the_cache/managing_a_client_cache.html > > > > And, the section in GitHub you reference shows a HelloWorld client. The > > "Geode in 5 minutes" shows starting a locator and a server to represent > the > > cluster and how to create a client to put data into the region. There are > > of course a lot of basic concepts left out, like how you configure a > client > > cache and the region that acts as a proxy to the server. However, the > > basics are there. > > > > To be more clear, the connection as a client requires a ClientCache > object > > configured, typically using a clientCache.xml file as shown in the Geode > > documentation. This configures the client to point to the locator. This > > allows servers to come and go without affecting the client. The Geode > > documentation shows configuring a ClientCache with an xml file that > defines > > the regions (proxy regions) to configure where the name of the region on > > the client (proxy) side matches the name of the server side region where > > the data will actually reside. The GitHub example shows the same > > configuration done 100% using Java API calls. > > > > So, the steps on the client: > > > > 1. Create a ClientCache object > > 2. Configure ClientCache with regerence to locator (via pool > > configuration) and proxy regions. This can either be done by explicit > API > > calls using the ClientRegionFactory or by reading in a cache.xml file > > 3. Get the region desired from the client cache > > 4. Invoke gets & puts as needed > > > > > > > > > > On Mon, Oct 24, 2016 at 5:59 PM, John D. Ament <johndam...@apache.org> > > wrote: > > > > > Hi, > > > > > > Reading through the geode docs, it seems like there's a key piece > missing > > > - how do I actually connect as a client? > > > > > > If I look here http://geode.incubator.apache. > org/docs/guide/developing/ > > > book_intro.html, I don't see anything obvious - e.g. what maven > > > coordinates to use to get a reference, or what to download. Seems > like I > > > need to build from source. > > > > > > If I look at https://github.com/apache/incubator-geode/blob/develop/ > > > README.md , I get a bit more worrisome (especially as an IPMC member). > > > The client section links me to 3 pivotal websites and one cwiki > entry. If > > > I want just a plain java client, no real information available (in > fact, > > > the Java client line isn't a link). > > > > > > So, how do I begin as a java client? And at what point does geode > update > > > their links for internal docs? For the record, the pivotal docs up > first > > > in searches > > > > > > John > > > > > > > > > > > -- > > > > *Mark Secrist | Sr Manager, **Global Education Delivery* > > > > msecr...@pivotal.io > > > > 970.214.4567 Mobile > > > > *pivotal.io <http://www.pivotal.io/>* > > > > Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn > > <http://www.linkedin.com/company/pivotalsoftware> | Facebook > > <http://www.facebook.com/pivotalsoftware> | YouTube > > <http://www.youtube.com/gopivotal> | Google+ > > <https://plus.google.com/105320112436428794490> > > > -- *Mark Secrist | Sr Manager, **Global Education Delivery* msecr...@pivotal.io 970.214.4567 Mobile *pivotal.io <http://www.pivotal.io/>* Follow Us: Twitter <http://www.twitter.com/pivotal> | LinkedIn <http://www.linkedin.com/company/pivotalsoftware> | Facebook <http://www.facebook.com/pivotalsoftware> | YouTube <http://www.youtube.com/gopivotal> | Google+ <https://plus.google.com/105320112436428794490>