File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes I have seen crazy things, but this takes the cake!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "I have seen crazy things, but this takes the cake!!!!" Watch "I have seen crazy things, but this takes the cake!!!!" New topic

I have seen crazy things, but this takes the cake!!!!

Ahmad, Usman

Joined: Oct 07, 2002
Posts: 4
Hi. I am using WebSphere 4.0.2 to get some hands on experience with EJBs. I THINK I got all the concepts and stuff about EJBs in general. It's my first venture so bear with me....
I have an EJB (stateless) all coded with just one public function (remember, I am venturing in unknown territory). I now have two probs...
1) What has EJB Spec 1.1 recommended in place of java.rmi.RemoteException?
2) When all is said and done(Generated RMIC code and all with any errors) and I 'Run On Server' my EJB Bean, it only detects the Home interface but not the public method! I looked at all the example EJBs I could find but I can't seem to see what I may be(or may ot be) doing. The Remote Interface has the proper function declared also. Any ideas, anyone?

_ _ __________________________ _ _ <p>"If it definitely, possibly can't go will!"
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17421

1. EJB1.1 did not replace the RemoteException, it simply removed it from the exceptions that you declare your bean methods from throwing. If your method needs to throw an exception, just use one of the EJB exceptions (such as NotFound) if it's applicable or create a new class based on java.lang.Exception and throw an instance of it.
When you deploy into WebSphere 4 you shouldn't have to manually run an RMIC unless I'm greatly mistaken. My understanding is that the RMIC and other interfacing code is handled by WebSphere itself using the DeploymentDescriptor you provided with the EJB. But the best place to get an answer is to ask in the JavaRanch's WebSphere forum.

An IDE is no substitute for an Intelligent Developer.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
Good idea - moving this to the Websphere forum...
JeanLouis Marechaux
Ranch Hand

Joined: Nov 12, 2001
Posts: 906
Hi Ahmad,
My understanding is that you are using WSAD with WTE (not WebSphere). Please correct me if I'm wrong.
The problem you describe seems to be within the EJB test client, right ?
The methods of your remote interface cannot be invoked before the create method of the home interface is executed. What occurs when you do that ? Check the WTE log for any error message...

/ JeanLouis<br /><i>"software development has been, is, and will remain fundamentally hard" (Grady Booch)</i><br /> <br />Take a look at <a href="" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
I agree. Here's the link:
subject: I have seen crazy things, but this takes the cake!!!!
It's not a secret anymore!