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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to