[SOLVED] DB connection

All Union Platform questions, comments, feature requests, and bug reports.

DB connection  

Postby rodrigo » Wed 22 Jan 2014 22:36

Hi, I'm using the latest Reactor sources... and I have not Java experience.
The examples to save persistent data in the Derby database doesnt work for me, the API changed.

I just need to save a few counter for stats in the database and some input from the user.... how can I accomplish this "globally"
like reactor.saveDatabaseAttribute( "somefield", "somevalue" ) ?

Thanks in advance.
rodrigo
 
Posts: 1
Joined: Wed 22 Jan 2014 22:33

Re: DB connection

Postby colin » Fri 24 Jan 2014 19:57

to save data for individual users, you need to have your users register and login. details here:
http://www.unionplatform.com/?page_id=942

to persistently save data for a general purpose, use setAttribute() on a room:
http://unionplatform.com/docs/reactor/a ... Attribute()

for example,
Code: Select all
room = reactor.getRoomManager().createRoom("meetingRoom");
room.setAttribute("somefield", "15", true, true);


colin
colin
 
Posts: 232
Joined: Mon 17 Oct 2011 18:47


Return to Union Platform

Online

Users browsing this forum: No registered users and 11 guests