Bug 129418 - [WSphere] strange default values for reference bindings
[WSphere] strange default values for reference bindings
Status: NEW
Product: serverplugins
Classification: Unclassified
Component: WebSphere
6.x
PC Windows XP
: P3 (vote)
: TBD
Assigned To: Petr Hejl
issues@serverplugins
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-06 15:15 UTC by ats37
Modified: 2009-10-14 15:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2008-03-06 15:15:10 UTC
I configured a WAS 6.0 server in Netbeans, pointing at the local app server installation
from a copy of Rational Application Developer 7.  I created a new web app project,
targetting that server.  I edited the web.xml and added a resource reference for a
DataSource "jdbc/datamart".  After saving that, I opened the ibm-web-bnd.xmi and added
a new Resource Reference Binding.  Two things struck me: the Name in Web.xml "ResourceRef_",
when I checked web.xml there was no ID on the resource reference to copy across; and the
JNDI Name "services/cache/instance_", as when I was setting up the resource in the server
console the default name was of the form "jdbc/...".  "services/..." sounds to me more 
like a "service tier" EJB reference, and in fact the Type dropdown contains
"common:EJBLocalRef" & "common:EJBRemoteRef" which seem more appropriate to the Ejb
Reference Bindings than the Resource Reference ones.

So I added an Ejb Reference Binding, just to see what that looked like.  The Name
"EjbReferenceBinding_1204815208266" was interesting - how come that one added the
(presumably unique) numeric reference to the end, when the Resource Reference Binding
didn't?  The JNDI Name, however, was also "EjbReferenceBinding_1204815208266" which
seems strange.  I was expecting something like "services/cache/..." again, or maybe
"ejb/someBeanHome"; I'd be very surprised if the JNDI name WAS used for the Home
interface when deploying a bean was of the form "xxxBinding_nnn".  Having said that,
since I don't have any EJBs involved in the nbproject, perhaps I shouldn't read
too much into the values it used for those.
Comment 1 Martin Fousek 2009-01-12 08:31:57 UTC
Reproducible in NetBeans IDE Dev (Build 200901120201). The default values are still the same.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo