You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Christopher M. Cardona (JIRA)" <ji...@apache.org> on 2007/03/15 07:38:09 UTC

[jira] Created: (GERONIMO-2971) Auto bind resources to Global JNDI

Auto bind resources to Global JNDI
----------------------------------

                 Key: GERONIMO-2971
                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
             Project: Geronimo
          Issue Type: New Feature
      Security Level: public (Regular issues)
    Affects Versions: 2.0
            Reporter: Christopher M. Cardona


We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks reassigned GERONIMO-2971:
--------------------------------------

    Assignee: David Jencks

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562930#action_12562930 ] 

David Jencks commented on GERONIMO-2971:
----------------------------------------

Hi Aman,

Ejbs are already bound into a global context based on their abstract name and I think the jndi-name values.  There should be info log messages indicating where they end up.  I don't think we can really bind anything directly at the root due to the likelyhood of collisions.

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated GERONIMO-2971:
-----------------------------------

    Fix Version/s: 2.1
                   2.0.x

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483709 ] 

Aman Nanner commented on GERONIMO-2971:
---------------------------------------

This feature is also badly needed for the Geronimo 1.x stream.

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.0
>            Reporter: Christopher M. Cardona
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12562923#action_12562923 ] 

Aman Nanner commented on GERONIMO-2971:
---------------------------------------

Now that this JIRA item has been assigned, will EJBs be bound to a Global JNDI context using their {{<jndi-name>}} and {{<local-jndi-name>}} values as specified in the {{openejb-jar.xml}}?

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "Aman Nanner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12483716 ] 

Aman Nanner commented on GERONIMO-2971:
---------------------------------------

I have attempted to integrate the Global JNDI plugin into my 1.2 sandbox so that I can use the {{org.apache.geronimo.gjndi.binding.EjbBindings}} GBean to auto-bind all my EJBs into JNDI.  However, it seems as though that the {{EjbBindings}} context itself does not get bound as a nested context to the "java:" context, and so it is not accessible via JNDI.

I had tried modifying the EjbBindings class so that it would add itself to the "java:" namespace using the following steps:

1) Accessing the top-level global context by calling {{GlobalContextManager.getGlobalContext()}}.
2) Calling {{lookup( "java:" )}} on the global context to get the "java:" {{WritableContext}}.
3) Adding the {{EjbBindings}} context to the "java:" {{WritableContext}}.

Unfortunately, once the "java:" {{WritableContext}} is bound to the {{GlobalContext}}, it becomes unmodifiable, and so I can't bind anymore contexts to it (presumable for security reasons).


> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.0
>            Reporter: Christopher M. Cardona
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-2971.
----------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0.x)

Shutdown problem fixed in rev 616570.

There appear to be an unrelated NPE during shutdown from the java:comp context being unbound, but I'm not sure how to fix that.

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed GERONIMO-2971.
----------------------------------

    Resolution: Fixed

Implemented based on Dain's work and inspired by David Blevins format idea for global ejb binding names and Tomasz Mazan's idea of filtering which resources to bind with a regexp on the name component of the abstract name.

Rev 615514.

There are a couple problems:
- it appears that xbean naming doesn't allow more than one context for a "nameInNamespace" so you cant put these under "java:" or "ger:".  I put them under "jca:"
- The console spits out a lot of log errors when you view the jndi tree.

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "David Jencks (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks reopened GERONIMO-2971:
------------------------------------


unbind on app stop doesn't work right

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>            Assignee: David Jencks
>             Fix For: 2.0.x, 2.1
>
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (GERONIMO-2971) Auto bind resources to Global JNDI

Posted by "Jason Dillon (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/GERONIMO-2971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Dillon updated GERONIMO-2971:
-----------------------------------

    Component/s: naming

> Auto bind resources to Global JNDI
> ----------------------------------
>
>                 Key: GERONIMO-2971
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-2971
>             Project: Geronimo
>          Issue Type: New Feature
>      Security Level: public(Regular issues) 
>          Components: naming
>    Affects Versions: 2.0-M5
>            Reporter: Christopher M. Cardona
>
> We need a way to auto bind resources like JDBC DataSource, JavaMail Session, EJB, etc. to Global JNDI namespace. This will allow the lookup of the said resources without declaring resource references in the deployment plans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.