Archive

Archive for the ‘ECF’ Category

Eclipse RCP/RAP with Spring DM, Spring Data JPA and Remoting [step11]

Mai 29, 2012 2 commentaires

In [step10] we have created RAP Application from the RCP Application. At this step we have several Client Layer :

  • OSGi Bundle Activator (simpleclient)
  • RCP Application
  • RAP Application

which consumes Service Layer : UserService (from Mock Dao, JPA Dao) to retrieve list of User :

package fr.opensagres.services;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import fr.opensagres.domain.User;

public interface UserService {

	Collection<User> findAll();

	Page<User> findAll(Pageable pageable);
		
	Collection<User> findByFirstNameLikeAndLastNameLike(String firstName,
			String lastName);

	Page<User> findByFirstNameLikeAndLastNameLike(String firstName,
			String lastName, Pageable pageable);

	User saveUser(User user);

}

Here, The Client and Service Layer are in the same OSGi container. Now we wish manage Client/Server architecture to have :

  • Client Layer in an OSGi container
  • Service Layer in an other OSGi container

the Client Layer will consume Service Layer with remoting mean.

Lire la suite…

Catégories :Apache CXF, DOSGi, ECF, Spring Remoting
Concevoir un site comme celui-ci avec WordPress.com
Commencer