[jboss-user] [EJB 3.0] - Re: EJb 3.0 primary key loose ?

stephan.opitz do-not-reply at jboss.com
Wed Sep 20 02:19:29 EDT 2006


and interface defined hier

import java.util.Date;

import de.Test.entity.Orders;

public interface OrdersFacade {

	/**
	 * Makes a Orders object persistent
	 * 
	 * @param order
	 *            Orders object
	 */
	public void save(Orders order);

and statelessbean here
with mark of which interface is local and remote - both same :-/
but local isn't need is'nt it - filled i mean?

import javax.ejb.Local;
import javax.ejb.Remote;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
...
import de.Test.entity.Orders;
import de.Test.facade.OrdersFacade;

@Local(OrdersFacade.class)
@Remote(OrdersFacade.class)
@Stateless
public class OrdersBean implements OrdersFacade {

	@PersistenceContext(unitName = "TestPU")
	private EntityManager em;

	// ------------------------------------------------------ Manifest Constants

	public static final String Remote = OrdersBean.class.getSimpleName()
			+ "/remote";

	public static final String Local = OrdersBean.class.getSimpleName()
			+ "/local";



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972817#3972817

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972817



More information about the jboss-user mailing list