BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

return value of an EJB bean

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Documentation
View previous topic :: View next topic  
Author Message
Burak Ulutoprak
Guest





PostPosted: Tue May 04, 2004 9:01 am    Post subject: return value of an EJB bean Reply with 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.




Back to top
Lori M Olson (TeamB)
Guest





PostPosted: Fri May 07, 2004 3:12 pm    Post subject: Re: return value of an EJB bean Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Documentation All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.