// Create a reference to the resource.
Reference ref = new ResourceLinkRef
- (resourceLink.getType(), resourceLink.getGlobal());
+ (resourceLink.getType(), resourceLink.getGlobal(), resourceLink.getFactory(), null);
+ Iterator i = resourceLink.listProperties();
+ while (i.hasNext()) {
+ String key = i.next().toString();
+ Object val = resourceLink.getProperty(key);
+ if (val!=null) {
+ StringRefAddr refAddr = new StringRefAddr(key, val.toString());
+ ref.add(refAddr);
+ }
+ }
javax.naming.Context ctx =
"UserTransaction".equals(resourceLink.getName())
? compCtx : envCtx;
* The global name of this resource.
*/
private String global = null;
+ /**
+ * The factory to be used for creating the object
+ */
+ private String factory = null;
public String getGlobal() {
return (this.global);
this.global = global;
}
+ public String getFactory() {
+ return factory;
+ }
+ public void setFactory(String factory) {
+ this.factory = factory;
+ }
// --------------------------------------------------------- Public Methods