[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1063) Pick up the entity-manager-factory definition to avoid validation errors
Max Andersen (JIRA)
jira-events at lists.jboss.org
Wed Oct 10 12:37:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBIDE-1063?page=comments#action_12381474 ]
Max Andersen commented on JBIDE-1063:
-------------------------------------
This is just from using the Seam version provided by RHDS (I hope that is also what you guys are using for testing! :)
Here is the file that gets the invalidation:
<?xml version="1.0" encoding="UTF-8"?>
<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:drools="http://jboss.com/products/seam/drools"
xmlns:security="http://jboss.com/products/seam/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-1.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-1.1.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-1.1.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-1.1.xsd">
<core:init debug="true" jndi-pattern="@jndiPattern@"/>
<core:manager concurrent-request-timeout="500"
conversation-timeout="120000"
conversation-id-parameter="cid"
conversation-is-long-running-parameter="clr"/>
<core:managed-persistence-context name="entityManager"
auto-create="true"
entity-manager-factory="#{rtEntityManagerFactory}"/>
<core:entity-manager-factory name="rtEntityManagerFactory"
persistence-unit-name="rt"/>
<core:ejb installed="@embeddedEjb@"/>
<drools:rule-base name="securityRules">
<drools:rule-files><value>/security.drl</value></drools:rule-files>
</drools:rule-base>
<security:identity authenticate-method="#{authenticator.authenticate}"
security-rules="#{securityRules}"
remember-me="true"/>
<event type="org.jboss.seam.notLoggedIn">
<action expression="#{redirect.captureCurrentView}"/>
</event>
<event type="org.jboss.seam.postAuthenticate">
<action expression="#{redirect.returnToCapturedView}"/>
</event>
<!-- For use with jBPM pageflow or process management -->
<!--
<core:jbpm>
<core:process-definitions></core:process-definitions>
<core:pageflow-definitions></core:pageflow-definitions>
</core:jbpm>
-->
</components>
> Pick up the entity-manager-factory definition to avoid validation errors
> ------------------------------------------------------------------------
>
> Key: JBIDE-1063
> URL: http://jira.jboss.com/jira/browse/JBIDE-1063
> Project: JBoss Tools
> Issue Type: Feature Request
> Components: Seam
> Affects Versions: 2.0.0.Beta4
> Reporter: Max Andersen
> Assigned To: Viacheslav Kabanovich
> Fix For: 2.0.0.CR1
>
>
> In components xml the #{rtEntityManagerFactory} get's validated as an error in the following:
> <core:managed-persistence-context name="entityManager"
> auto-create="true"
> entity-manager-factory="#{rtEntityManagerFactory}"/>
> It seems that if we would pick up this one as the definition of the factory then we would be fine:
> <core:entity-manager-factory name="rtEntityManagerFactory"
> persistence-unit-name="rt"/>
> Is that doable in the current setup ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list