geode-dependencies.jar contains a MANIFEST that adds several other jars to
the classpath including geode-core.

The client API is currently in geode-core.

-Kirk

On Monday, October 24, 2016, Mark Secrist <msecr...@pivotal.io> wrote:

> Yep - I got that wrong. In both cases. It looks like in M3 anyway,
> geode-dependencies is mostly empty. You'll want geode-core, which has
> ClientCache and the other client APIs. Sorry about that. Looks like things
> may have changed over the releases. Also for the final 1.0.0 release,
> expect the packages to change from com.gemstone.gemfire to org.apache.geode.
>
> Mark
>
> On Mon, Oct 24, 2016 at 7:30 PM, John D. Ament <johndam...@apache.org
> <javascript:_e(%7B%7D,'cvml','johndam...@apache.org');>> wrote:
>
>>
>>
>> On Mon, Oct 24, 2016 at 9:26 PM Mark Secrist <msecr...@pivotal.io
>> <javascript:_e(%7B%7D,'cvml','msecr...@pivotal.io');>> wrote:
>>
>>> 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/
>>>
>>>
>> What's the difference between these two JARs?
>>
>>
>>> 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/
>>>
>>>
>> That's not a maven repo.  Everything seems to be in central though.  I
>> also see the 1.0.0 staging repo in nexus, but for now i'm fine with an
>> earlier release.
>>
>>
>>>
>>> On Mon, Oct 24, 2016 at 6:39 PM, John D. Ament <johndam...@apache.org
>>> <javascript:_e(%7B%7D,'cvml','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
>>>> <javascript:_e(%7B%7D,'cvml','msecr...@pivotal.io');>> wrote:
>>>> > There's here:
>>>> > http://geode.incubator.apache.org/docs/guide/basic_config/th
>>>> e_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
>>>> <javascript:_e(%7B%7D,'cvml','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/incu
>>>> bator-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
>>>> <javascript:_e(%7B%7D,'cvml','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
>>> <javascript:_e(%7B%7D,'cvml','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 <javascript:_e(%7B%7D,'cvml','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>
>

Reply via email to