openbd

[Prev] Thread [Next]  |  [Prev] Date [Next]

[OpenBD] Re: GAE - Direct Java Access Vince Bonfanti Wed Jun 24 06:00:49 2009

This doesn't work?

<cfset ds = createObject(
"java","com.google.appengine.api.datastore.DatastoreServiceFactory").getDatastoreService()>
<cfdump var="#ds#">

On Wed, Jun 24, 2009 at 8:31 AM, Baz <[EMAIL PROTECTED]> wrote:

> Yes the DatastoreServiceFactory. I just can't seem to get the full path to
> put in CreateObject.
>
> Baz
>
>
>
>
> On Wed, Jun 24, 2009 at 5:13 AM, Vince Bonfanti <[EMAIL PROTECTED]>wrote:
>
>> I'm not sure what you mean by the "primary object for datastore access."
>> Do you want to use the GAE low-level datastore API?
>>
>>
>> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/package-summary.html
>>
>> Using this API from CFML might be tedious; it might be easier to write a
>> JSP page, then you can code in Java directly.
>>
>> The first thing you need to do is create a DatastoreService using the
>> DatastoreServiceFactory. All of your interaction with the datastore is
>> through the DatastoreService methods. You'll then need to create Query, Key,
>> or Entity instances to read/write to the datastore.
>>   On Wed, Jun 24, 2009 at 7:46 AM, Baz <[EMAIL PROTECTED]> wrote:
>>
>>> I want to run some tests using the native Java objects for GAE. I am not
>>> a Java expert but I have done this before using other Java libs. Could
>>> someone tell me how to create the primary object for datastore access -
>>> basically completing this command: createObject('Java',
>>> 'Path.To.Datastore.Object').init()
>>>
>>> Thanks,
>>> Baz
>>>
>>>
>>>
>>
>>
>>
>>
>
>  >
>

--~--~---------~--~----~------------~-------~--~----~
Open BlueDragon Public Mailing List
 http://groups.google.com/group/openbd?hl=en
 official site @ http://www.openbluedragon.org/

!! save a network - trim replies before posting !!
-~----------~----~----~----~------~----~------~--~---