Mostrando entradas con la etiqueta EJB. Mostrar todas las entradas
Mostrando entradas con la etiqueta EJB. Mostrar todas las entradas

viernes, 7 de enero de 2011

EJB 3.1 Global JNDI Access

Namespaces and Scopes
The EJB v. 3.1 Specification defines three distinct namespaces with its own scopes:

* Global.
* Application.
* Module.

Leer articulo completo aqui

Reference EJB3 Beans from EJB2 Beans

It is possible to reference an EJB3 bean from an EJB2 bean just like an EJB2 bean would reference any other EJB2 bean as long as the EJB3 bean is deployed with an EJB 2 client adaptor. Please note that EJB2 and EJB3 beans cannot reside on the same jar file and hence, the EJB2 beans must reside in a different jar to the EJB3 beans.
Leer articulo completo aqui

martes, 30 de noviembre de 2010

Como inicializo createEntityManagerFactory en JPA

Si todavia tienes dudas donde inicializar EntityManager en tu aplicación Te suguiero hecharle un vistaso a esta documentación


Ejemplo:

private static EntityManagerFactory emf;

public static final ThreadLocal _threadLocal = new ThreadLocal();

public static EntityManagerFactory getEntityManagerFactory() {
if (emf == null) {
emf = Persistence.createEntityManagerFactory("actionBazaar");
}

return emf;
}

public static EntityManager getEntityManager() {
EntityManager entityManager = _threadLocal.get();

if (entityManager == null) {
entityManager = emf.createEntityManager();
_threadLocal.set(entityManager);
}
return entityManager;
}

viernes, 19 de noviembre de 2010

miércoles, 17 de noviembre de 2010

lunes, 8 de noviembre de 2010

Las Mejores Practicas en EJB 2.0

Documentación en ingles que habla sobre el tema: http://www.precisejava.com/javaperf/j2ee/EJB.htm

EJB mejores prácticas: la optimización de la fuerza industrial JNDI

En esta técnica el artículo, Brett le muestra cómo la interfaz de su casa a la fábrica de reducir su aplicación EJB JNDI generales de búsqueda...
Leer Documento completo en: http://www.softcov.com/es/design-and-optimization/ejb-best-practices-jndi-optimization-of.html

martes, 13 de julio de 2010

Generardor de clave primaria en Ejb

Articulo completo sobre las opciones disponibles para Generar ID en EJB
Leer aquí