-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Cook, Thomas
Sent: Thursday, January 18, 2001 12:15 AM
To: 'jBoss'
Subject: RE: [jBoss-User] 2 odd errorsWhy is the method in the remote interface abstract? Can you make a method in an interface abstract? Why would you if you could??? I mean, what's the difference between an abstract method and an ordinary method in an interface?
Could we see the entire code for the interfaces, please? If Accessor is something like this:
public abstract class Accessor implements EJBObject
{
...
}then it should be this
public interface Accessor extends EJBObject
{
...
}Sorry if you have this right, just the 'abstract' in the method declaration doesn't smell right.
Tom
--
Tom Cook
Systems Development
Australian Submarine Corporation
Mersey Road
Outer Harbour+61 8 8348 7645
"From the instant I picked your book up, until the moment I put it down, I was convulsed with laughter. I fully intend to read it one day."
- Groucho Marx
-----Original Message-----
From: Chad LaJoie [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 4:07 AM
To: [EMAIL PROTECTED]
Subject: [jBoss-User] 2 odd errorsI've been getting 2 errors that I can't seem to figure out.
1. "The method return values in the home interface must be of valid types
for RMI/IIOP."I get this one on my home interface and I am not sure what the problem
is. This is the declaration I have for the create method (which is the one
it is complaining about)
public Accessor create(Hashtable attributes) throws
RemoteException, CreateException;2. "The methods in the remote interface must include
java.rmi.RemoteException in their throws clause."Now this one seems like a simple one except that I have the method throwing
a RemoteException. Here is what I have declared for my remote interfacepublic abstract Record getData(String recordName) throws
RemoteException;
Has anyone else run into these problems. It seems the no matter what I do
jBoss still thinks there is a problem.
Chad La Joie "Only a man who can not conquer
IT Specialist his deficiencies feels the need to
IS&C - WARD convince the world he has none"
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]
Title: RE: [jBoss-User] 2 odd errors
Hi
According to the 1.1 specs an EJB class cannot be be
abstract. Makes sense when you think about it, EJB containers are not THAT
smart...
Provide a default implemenataion
somewhere.
Regards
Marty
- [jBoss-User] 2 odd errors Chad LaJoie
- Re: [jBoss-User] 2 odd errors Juha-P Lindfors
- RE: [jBoss-User] 2 odd errors Alexander Klyubin
- RE: [jBoss-User] 2 odd errors Cook, Thomas
- RE: [jBoss-User] 2 odd errors Marty Farrell
- RE: [jBoss-User] 2 odd errors TODD.KEGLEY
- RE: [jBoss-User] 2 odd errors Jose Jorge Tom� Hernando
