I create a Session EJB.My EJB contains three files,there are follows:
//CheckPassword.java
package eino.loginEJB;
import java.rmi.*;
import javax.ejb.*;
public class CheckPassword implements SessionBean {
private SessionContext sessionContext;
public void ejbCreate() {
}
public void ejbRemove() {
}
public void ejbActivate() {
}
public void ejbPassivate() {
}
public void setSessionContext(SessionContext sessionContext) {
this.sessionContext = sessionContext;
}
public String test()
{
return "OK";
}
}
//CheckPasswordHome.java
package eino.loginEJB;
import java.rmi.*;
import javax.ejb.*;
public interface CheckPasswordHome extends EJBHome {
public CheckPasswordRemote create() throws RemoteException, CreateException;
}
//CheckPasswordRemote.java
package eino.loginEJB;
import java.rmi.*;
import javax.ejb.*;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
import java.io.*;
public interface CheckPasswordRemote extends EJBObject {
public String test() throws java.rmi.RemoteException;
}
//ejb-jar.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN"
"http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd">
<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>CheckPassword</ejb-name>
<home>eino.loginEJB.CheckPasswordHome</home>
<remote>eino.loginEJB.CheckPasswordRemote</remote>
<ejb-class>eino.loginEJB.CheckPassword</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>CheckPassword</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
I use JBuilder6 to Rebuild CheckPassword,it raise warning,like follows:
"CheckPassword.ejbgrpx": Spaces in the temporary directory path may cause WebLogic
EJBC utility to produce fatal compile errors.
"CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB Deployment:
CheckPassword has a class eino.loginEJB.CheckPassword which is in the classpath. This
class should only be located in the ejb-jar file.>
"CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB Deployment:
CheckPassword has a class eino.loginEJB.CheckPasswordHome which is in the classpath.
This class should only be located in the ejb-jar file.>
"CheckPassword.ejbgrpx": <2002-6-8 PM 03:54:11> <Warning> <EJB> <EJB Deployment:
CheckPassword has a class eino.loginEJB.CheckPasswordRemote which is in the classpath.
This class should only be located in the ejb-jar file.>
I don't know why it raise warnings,the file "ejb-jar.xml" is produced automatically by
JBuilder.
Any idea will be appreciated!
Edward
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".