[jbosstools-dev] Re: Whats new in 3.alpha
Snjezana Peco
snjeza.peco at gmail.com
Sun Aug 10 16:14:35 EDT 2008
Hi Max,
Max Rydahl Andersen wrote:
> Hi,
>
>> Attached are JBoss Tools Portlet N&N and JBoss BIRT Integration N&N
>> (corrected the HTML syntax).
>
> Looks good! ...
>
> One question though:
>
> *A Seam project that includes the BIRT facet can be deployed as any
> project. If you define the Hibernate ODA driver, the JBoss BIRT engine
> will use JNDI URL that has to be bind to either Hibernate Session
> Factory or Hibernate Entity Manager Factory"
>
> What settings exactly will a user need to add or at least verify to
> make it work ? which JNDI URL is it ?
>
Any Seam project with the BIRT facet that uses the Hibernate ODA driver
has to bind a Hibernate session factory or an Hibernate entity manager
factory. It doesn't matter which of these two factories the user binds
because the Hibernate ODA driver will recognize the type of the object
(see ServerOdaFactory.getSessionFactory(Properties properties)).
When creating a Seam EAR project, Hibernate Entity Manager Factory is
binded to java:/{projectName}EntityManagerFactory.
All the user needs to do is using the Hibernate Configuration created
automatically. The user can use default values for the Hibernate
Configuration and JNDI URL within the BIRT Hibernate Data Source.
When using a Seam WAR project, neither HSF nor HEMF aren't binded to
JNDI by default.
The user has to do this manually.
For instance,
HSF can be binded to JNDI adding the following property to the
persistence.xml file:
<property name="hibernate.session_factory_name" value="java:/projectname"/>
and the user can use 'java:/projectname' as the JNDI URL property when
creating a BIRT Hibernate Data Source.
Snjeza
More information about the jbosstools-dev
mailing list