-
1. Re: Class class no.noria.remarks.RemarksEJBBean does not have a default interface
jaikiran Dec 7, 2010 4:18 AM (in response to omardawod119)@Stateless(name = "RemarksEJB", mappedName = "EJBTest-Model-RemarksEJB") @Remote @Local ... public class RemarksEJBBean implements RemarksEJB, RemarksEJBLocal
You are marking the RemarksEJBBean bean implementation class as the @Local and @Remote interface. That's incorrect. The @Local and @Remote should point to the local/remote business interfaces, like:
@Stateless(name = "RemarksEJB", mappedName = "EJBTest-Model-RemarksEJB") @Remote (RemarksEJB.class) @Local (RemarksEJBLocal.class) ... public class RemarksEJBBean implements RemarksEJB, RemarksEJBLocal
-
2. Re: Class class no.noria.remarks.RemarksEJBBean does not have a default interface
omardawod119 Dec 7, 2010 4:57 AM (in response to jaikiran)Thank you!!!
Now I have a Persistence context named Model and a datasource name Model >
<?xml version="1.0" encoding="Cp1252" ?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<persistence-unit name="Model" transaction-type="JTA">
<jta-data-source>Model</jta-data-source>
<class>no.noria.remarks.entities.Remarks</class>
</persistence-unit>
</persistence>
I defined a Local Tx Datasources that is name Model and points to a Sybase db, but still have a problem????