This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "I have seen crazy things, but this takes the cake!!!!" Watch "I have seen crazy things, but this takes the cake!!!!" New topic
Author

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

Ahmad, Usman
Greenhorn

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 wrong.....it will!"
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1860
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="http://www.epfwiki.net/wikis/openup/" target="_blank" rel="nofollow">Agile OpenUP</a> in the Eclipse community
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: I have seen crazy things, but this takes the cake!!!!
 
Similar Threads
How to inject sessionbean local reference in webservice(soap)
Weblogic 6.1 EJB deployment problems..
Misterious Problem invoking remote EJB3 on WAS 7
Transaction Rollback Exception
why JSP and servlet has to work differently for EJB Lookup?