[jboss-user] [JBoss Seam] - Re: Problem implementing filters

vicky123 do-not-reply at jboss.com
Fri Feb 8 06:55:09 EST 2008


Thank you all.

I changed my components.xml to this and it worked. And rest all is same.

  | 	<persistence:filter name="companyFilter">
  | 		<persistence:name>companyFilter</persistence:name>
  | 		<persistence:parameters>
  | 			<key>currentCompanyId</key>
  | 			<value>#{currentCompanyId}</value>
  | 		</persistence:parameters>
  | 	</persistence:filter>
  | 
  | 	<persistence:managed-persistence-context
  | 		name="filteredEntityManager"
  | 		auto-create="true"
  | 		persistence-unit-jndi-name="java:/PEntityManagerFactory">
  | 		<persistence:filters>
  | 			<value>#{companyFilter}</value>
  | 		</persistence:filters>
  | 	</persistence:managed-persistence-context>
  | 

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

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



More information about the jboss-user mailing list