User: starksm
Date: 01/05/10 21:52:02
Modified: src/main/org/jboss/ejb Container.java
Log:
Allow the specification of a resource-ref jndi name or URL in the
jboss.xml resource-ref element for cases where the extra indirection
of a resource-managers specification isn't worth the trouble
Revision Changes Path
1.38 +6 -7 jboss/src/main/org/jboss/ejb/Container.java
Index: Container.java
===================================================================
RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/Container.java,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- Container.java 2001/02/27 16:48:07 1.37
+++ Container.java 2001/05/11 04:52:02 1.38
@@ -67,7 +67,7 @@
* @see ContainerFactory
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Revision: 1.37 $
+ * @version $Revision: 1.38 $
*/
public abstract class Container
{
@@ -467,6 +467,10 @@
String resourceName = ref.getResourceName();
String finalName = application.getResourceByName(resourceName);
+ /* If there was no resource-manager specified then an immeadiate
+ jndi-name or res-url name should have been given */
+ if (finalName == null)
+ finalName = ref.getJndiName();
if (finalName == null)
{
@@ -497,12 +501,7 @@
}
}
- if (ref.getType().equals("javax.sql.DataSource"))
- {
- // Datasource bindings
- bind(ctx, ref.getRefName(), new LinkRef(finalName));
- }
- else if (ref.getType().equals("java.net.URL"))
+ if (ref.getType().equals("java.net.URL"))
{
// URL bindings
try
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development