[appengine-java] Multi user chat room

2011-08-19 Thread MK Z
Hi,
Im very new to this GAE services. So far I managed to run my apps on
GAE. Im trying to add multi-user chat on my app. Ive been trying to
search how to implement this-both using XMPP and Channel API. Im
interested on the latter. The problem is I couldnt find any tutorial
or example to begin with.. the channel API look simpler but whe I
visited other people blog/tutorial it doesnt really show how to do
it.. can someone help me please. Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Entity modelling

2011-08-14 Thread MK Z
Hi,
Thanks for your reply. The category is not related to the group - category
holds value like Science/Tech/Music while Group stores value like
Teens/Kids/Adult. The reason I have these two fields I want to be able to
sort the forum according to category and follow by group. So in the forum
object I have (field1, ... fieldN, forumcategoryid, forumgroupid) and
forumcategory object (forumcategoryid, field1...) and  forumgroup object
(forumgroupid, field1...). for small app, I think even without mappedBy
annonation in relevant class the application will still work. I just have to
tie up everything at app level, any advice?

btw, ive gone through the links u given, but there isnt enough app-like
example on one-to-many relationship (only the simple  guestbook example)


On Tue, Aug 9, 2011 at 5:07 PM, Simon Knott  wrote:

> Given that the target GAE datastore should be optimised for reads, since
> writes are expensive, normalization of data is by no means the way to go.
>
> Are Categories and Groups joined in any way? i.e. Has a specific Category
> got a set of groups, or the other way around?  If not, then storing the
> group/category as a property within the Forum seems fine to me.
>
> I would strongly suggest that you read up on the datastore before
> proceeding however - the GAE datastore doesn't really consist of tables.  I
> would read the following docs in their entirety before doing too much more
> work:
>
>- Datastore Overview -
>http://code.google.com/appengine/articles/datastore/overview.html
>- Java Datastore Docs -
>http://code.google.com/appengine/docs/java/datastore/
>- Objectify Docs - These give a good overview of restrictions and best
>practices when working with the datastore
>http://code.google.com/p/objectify-appengine/wiki/Concepts?tm=6
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/XdtplUMwmLAJ.
>
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Entity modelling

2011-08-08 Thread MK Z
Hello.
I need some help. Assuming I have three tables/objects: forum, forum 
category, forum group.

Forum - stores all topics posted by user. This object/table relates to other 
tables including the aforementioned tables.
Forum category - stores the category whether science, technology, etc. 
forumcategoryid is the primary key
Forum group - stores the group e.g. Adult, Teens, etc forumgroupid is the 
primary key.

In my Forum data model:
//all necessary imports plus declarations

I'm storing forumcategoryid and forumgroupid in the table Forum so that I 
can link Forum Category & Forum Group. When user post a new topic, the user 
select the category and group from the dropdown box which are pulled from 
Forum category and Forum Group. Do I need to do something like this in the 
Forum entity class:

..
private ForumCategory forumCategory;
private ForumGroup forumGroup;


//getter and setters for these two; category & group

public Forum (list of all fields)
{
...

}

I'm all confused. When user post a topic, it needs to be in one of those 
existing category and group. User is not allowed to create new category or 
group. So embedding the forum category & group in Forum entity is pointless? 
Another solution that I can think of, since the value of forumcategoryid and 
forumgroupid are pulled from other table, i just might use these values and 
save it into data store as part of Forum properties (so in the forum entity 
I will have two additional   fields named private String forumCategoryID, 
private String forumGroupID).. Can someone help me or point me in right 
direction? I'm a total beginner on this.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/C4HAQaETdmQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.