I want to use JPA in my webstation.my webstation be builded by JSF. I don`t know how to use JPA in JSF.plecse help.give me the faces-config.xml and persistence.xml,java code
Well the good thing is using JPA is the same no matter where you use it, becuase you are using JSF has no bearing on the matter. Your use of JPA will be in your Plain Old Java objects, and not in any jsp/html/xhtml pages.
As far as how to set up JPA and use it, there are lots of tutorials on the web that you can find through Google.
Good Luck, and any JPA specific questions can go into the ORM forum we have.