I do about that and try to do the simplest way. My persistence.xml is
<?xml version="1.0" encoding="UTF-8"?>
    <persistence-unit name="order" transaction-type="JTA">
        <jta-data-source>java:/FIrebirdDS</jta-data-source>
    </persistence-unit>

My EJB begins with:
@Stateless
@RemoteBinding(jndiBinding="ejb/Person")
public class PersonBean implements Person {

//@PersistenceContext EntityManager em;

When I deploy my .ear with this EJB, I get an error message in JBoss console 
with the last part:
--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=FIrebirdDS,service=DataSourceBinding
  State: NOTYETINSTALLED
  Depends On Me:
    persistence.units:ear=EJB3Test.ear,jar=EJB3Test.jar,unitName=order
    persistence.units:ear=EJB3Test.ear,jar=EJB3Test.jar,unitName=order
    persistence.units:ear=EJB3Test.ear,jar=EJB3Test.jar,unitName=order

But nevertheless .ear is deployed and I can reach my PersonBean EJB from a 
remote client on JNDI name and call it's business method. But as soon as I 
uncomment 
//@PersistenceContext EntityManager em;
and redeploy my .ear, I cannot reach PersonBean EJB any more - 
Object ref = context.lookup("ejb/Person"); in my client generates 
NameNotFoundException


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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007902
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to