Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Examples for StatelessHibernateSpaceDataSource and StatelessHibernateSpaceSynchronizationEndpoint

Hi , I'm working on a POC. In this, i would like to read data from the DB and push into the space and would like to implement the mirror service also. For this, I'm trying to use StatelessHibernateSpaceDataSource and StatelessHibernateSpaceSynchronizationEndpoint API. is there any examples available in Java. In .net, you have provided one example(StockSba ) .

Thanks, Sampath

asked 2014-02-07 17:12:28 -0500

tcskumar@gmail.com gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Sure.

See the maven templates.

They generate everything you need.

answered 2014-02-07 18:16:40 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Hi Shay,

i have checked the templates,Seems the available templates are concentrating only the async-persistence features. is there any template to read the data from DB and push into the space (tables as objects in space)?

Thanks, Sampath

tcskumar@gmail.com gravatar imagetcskumar@gmail.com ( 2014-02-08 00:47:47 -0500 )edit

If you are looking to load data from the DB once space is started all the templates with persistence support it. Its called initial load. In many vases to speed it up you should customize it. See dedicated page on this on the doc.

If you are looking for push changes conducted against the DB directly while the space is running you will need to use the approach described with the delta server on the best practices. These is one for db2 and another one for Oracle.

shay hassidim gravatar imageshay hassidim ( 2014-02-08 06:32:35 -0500 )edit

Thanks for your detailed explanation. yes ,Templates supports the initial load. i tried it with mysql DB.

tcskumar@gmail.com gravatar imagetcskumar@gmail.com ( 2014-02-09 12:18:55 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-02-07 17:12:28 -0500

Seen: 164 times

Last updated: Feb 07 '14