 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Burak Ulutoprak Guest
|
Posted: Tue May 04, 2004 9:01 am Post subject: return value of an EJB bean |
|
|
Hi,
I am not sure this is tha right place, but it seems okey.
I am develping EJB Beans running in JBoss and developing them in jbuilderX.
I am having trouble with the return values of the function in the EJB beans.
For example, I have an EJB called PETalker and it has a function,
MyDoucumentClass getDocument(String id);
When I called this function from a remote interface I got an exception. I am
sure this is
related with the return value of the functionm but I could not solve it. If
I replace MyDocumentClass
type with String for example, no exception occurs.
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Fri May 07, 2004 3:12 pm Post subject: Re: return value of an EJB bean |
|
|
Burak Ulutoprak wrote:
| Quote: | Hi,
I am not sure this is tha right place, but it seems okey.
I am develping EJB Beans running in JBoss and developing them in jbuilderX.
I am having trouble with the return values of the function in the EJB beans.
For example, I have an EJB called PETalker and it has a function,
MyDoucumentClass getDocument(String id);
When I called this function from a remote interface I got an exception. I am
sure this is
related with the return value of the functionm but I could not solve it. If
I replace MyDocumentClass
type with String for example, no exception occurs.
|
If you posted the exact exception it would be easier to answer...
OTOH, I can guess, if String works, and MyDocumentClass does not. You
forgot that any class that is returned from an EJB method has to be
Serializable. So make your MyDocumentClass implement Serializable, and
the problem should go away.
Also, the borland.public.jbuilder.enterprise group would have been a
more appropriate place for this question. Anything about EJB's should
go in there.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|