<bean id="OpenEjbContext" class="org.acme.OpenEjbFactoryBean">
<property name="jndiEnvironment">
<props>
<prop key="myDs">new://Resource?type=DataSource</prop>
<prop key="myDs.JdbcDriver">com.mysql.jdbc.Driver</prop>
<prop key="myDs.JdbcUrl">jdbc:mysql://localhost/midastest?createDatabaseIfNotExist=true</prop>
<prop key="myDs.UserName">root</prop>
<prop key="myDs.Password"></prop>
</props>
</property>
</bean>
<bean id="OrangeUnit" class="org.acme.OrangeUnitFactoryBean">
<property name="context" ref="OpenEjbContext">
</bean>
<bean id="SomePojo" class="org.acme.SomePojo">
<property name="entityManager" ref="OrangeUnit">
</bean>
|