EJB2 must be supported by spec, so yes it is.
What you mean by
How to configure EJB 2 and 3 in JBoss 7.1 ?
be a bit more specific.
In general you have to add a ejb.jar.xml or use annotations (prefered for EJB3)
thanks for your answer,
how make cache of EJB in standalone.xml?
I don't understand what you ask.
What you mean by cache of EJB?
what is the objective of configuring EJB subsystem in standalone.xml file?