[jboss-user] [EJB 3.0] - Re: Unknown error

sashaxiv do-not-reply at jboss.com
Wed May 2 02:29:26 EDT 2007


As i told you i found my error in classes with the @stateless. This is what i do at one of this classes.

package com.satdatatelecom.satdataweb.model.empresafachada.ejb;

import java.rmi.RemoteException;
import java.util.Collection;

import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import util.exceptions.DuplicateInstanceException;
import util.exceptions.InstanceNotFoundException;
import util.exceptions.InternalErrorException;

com.satdatatelecom.satdataweb.model.usuariofachada.exceptions.UsuarioNotFoundException;
import com.satdatatelecom.satdataweb.model.util.GlobalNames;


@Stateless
public class EmpresaFacadeEJB implements LocalEmpresaFacade, RemoteEmpresaFacade{

	@PersistenceContext (unitName=GlobalNames.PERSISTENCE_UNIT)
    private EntityManager entityManager;

	public EmpresaFacadeEJB(){
		
	} 



package com.satdatatelecom.satdataweb.model.util;

public final class GlobalNames {

    public static final String SATDATAWEB_DATA_SOURCE = "MSSQLDSSATDATAWEB";

    public static final String PERSISTENCE_UNIT = "SatDataWeb";
        
    private GlobalNames () {}

}


and my persistance.xml:

<?xml version="1.0" encoding="UTF-8"?>


	<persistence-unit name="SatDataWeb">
        <!-- SQLServer  -->

        <jta-data-source>java:/MSSQLDSSATDATAWEB</jta-data-source>
        
         
            <!-- SQLServer  -->

            
        
    </persistence-unit>


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

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



More information about the jboss-user mailing list