File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Websphere and the fly likes WAS 6 - deprecation warning 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 "WAS 6 - deprecation warning" Watch "WAS 6 - deprecation warning" New topic

WAS 6 - deprecation warning

Babji Reddy
Ranch Hand

Joined: Jan 24, 2006
Posts: 106
when I rebuilt and deployed an ear file on WAS-6, I am getting this deprecation warning.
Earlier I was using WAS-5, and didn't get this warning.
Is this something J2EE spec compliance issue, or websphere issue? Also what is the work around
Deprecated usage of direct JNDI lookup of resource jdbc/myDbName Datasource. The following default values are used: [Resource-ref settings]

res-auth: 1 (APPLICATION)
res-isolation-level: 0 (TRANSACTION_NONE)
res-sharing-scope: true (SHAREABLE)
loginConfigurationName: null
loginConfigProperties: null
Pat Flickner
Ranch Hand

Joined: Nov 17, 2003
Posts: 173
Oh, yeah, Babji, there are lots of changes. For one thing, v6 is using Java 1.4 and can use 1.5; the highest v5 goes is 1.3 (on its own -- I know you can set it to use 1.4, but you're asking for a world of trouble). Many of the methods have been deprecated, such as Enumeration. It doesn't hurt anything and your processes will still work just fine; it just means that you're being warned that you need to make changes because eventually, those methods will go away and you will go from warnings to flat-out errors. And the reason the methods are going away is because the replacement methods are much better in one fashion or another (speed, efficiency, threading, etc.).

Also, you can go to the "deprecated" lists for classes in the API documentation and they will tell you what the replacement is. If the entire class or package has been deprecated, Websphere usually tells you what replaced it. At least, I think that's correct. I'm taking three classes right now on top of having to learn Struts "yesterday", so my brain is dribbling gray matter. I'm sure someone will correct me if I'm wrong. Just be nice, guys.
Babji Reddy
Ranch Hand

Joined: Jan 24, 2006
Posts: 106
If a class is deprecated then yes, we can get it from the deprecation list of sun's JAVA API.
But this is warning as 'deprecated usage' of a setting in websphere. I had setup a datasource under resources, but didn't specify a resource-ref in any web.xml / ejb-jar.xml as I am using the datasource in a customservice. ( and hence no Web/EJB components).
In websphere 5, it still prompts that the resource-ref is not found and hence is using default settings. But from WAS6 onwards its adding a 'deprecated usage' warning to the message.
I agree. Here's the link:
subject: WAS 6 - deprecation warning
It's not a secret anymore!