This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Spark in Action and have Jean-Georges Perrin on-line!
See this thread for details.
Win a copy of Spark in Action this week in the Open Source Projects forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Deprecated Methods and Exception

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
We are planning to migrate our application from JDK 1.1 to 1.3. Some methods are deprecated in the new version.
I learnt that we can still use the old deprecated methods and it will compile without any error. The problem will arise only if the methods are removed in the later (higher) releases. If it is only deprecated we can still use it and compile. This is what I heard.
Similarly we are planning to migrate from EJB 1.0 to EJB 2.0.
I learnt that java.rmi.RemoteException is deprecated and replaced by javax.ejb.EJBException for EJBCreate, EJBPostCreate, EJBRemove, EJBActivate, EJBPassivate, SetSessionContext in EJB 1.1/2.0.
But can we still use java.rmi.RemoteException for these methods in EJB 2.0........?
We are upgrading the EAServer and PowerJ from 3.5 to 4.1.
Any guidance / comments will be highly appreciated.
Thanks
Raghu
 
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First, please note that your name does not meet the requirements of the JavaRanch naming policy (http://www.javaranch.com/name.jsp). Please change your display name. Thanks.
Second, according to an interview I read with one of the lead guys at Sun, they have no plans to remove deprecated methods from the language.
Third, "Enterprise beans written for the EJB 1.1 specification should throw the javax.ejb.EJBException instead of java.rmi.RemoteException. Enterprise beans written for the EJB2.0 and higher specifications must throw the javax.ejb.EJBException instead of java.rmi.RemoteException."
 
Raghothaman Nagarajachar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I changed my display name.
Thanks for your valuable input.
 
Thomas Paul
mister krabs
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Raghothaman Nagarajachar:
I changed my display name.
Thanks for your valuable input.


Thatk you, Raghu!
 
Friends help you move. Good friends help you move bodies. This tiny ad will help:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic