how is jndi used in ofbiz?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

how is jndi used in ofbiz?

chris snow
how is jndi used in ofbiz?

is it just used for storing the GeronimoTransactionManager?

if running in an j2ee server, does ofbiz use the servers jndi registry?

what dependencies does the ofbiz jndi naming service have?  for
example, does it need rmi infrastructure?

i'm a jndi newbie, so my questions are basic

many thanks,

chris
Reply | Threaded
Open this post in threaded view
|

Re: how is jndi used in ofbiz?

BJ Freeman
look at the entityengine.xml
it is commented out.


=========================
BJ Freeman
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man

chris snow sent the following on 9/25/2010 11:24 PM:

> how is jndi used in ofbiz?
>
> is it just used for storing the GeronimoTransactionManager?
>
> if running in an j2ee server, does ofbiz use the servers jndi registry?
>
> what dependencies does the ofbiz jndi naming service have?  for
> example, does it need rmi infrastructure?
>
> i'm a jndi newbie, so my questions are basic
>
> many thanks,
>
> chris
>
Reply | Threaded
Open this post in threaded view
|

Re: how is jndi used in ofbiz?

chris snow
Hi BJ,

I was specifically looking at 9.04, GeronimoContainer - it is binding
the GeronimoTransactionManager to jndi:

            InitialContext ic = new InitialContext();
            ic.rebind("java:comp/UserTransaction", new
GeronimoTransactionManager());

But in the GeronimoTransactionFactory it looks like JNDI is bypassed:

   static {
        // creates an instance of Geronimo transaction context, etc
with a local transaction factory which is not bound to a registry
        try {
            transactionLog = new UnrecoverableLog();
            geronimoTransactionManager = new
GeronimoTransactionManager(defaultTransactionTimeoutSeconds,
(XidFactory)new XidFactoryImpl(), transactionLog);
        } catch (XAException e) {
            Debug.logError(e, "Error initializing Geronimo transaction
manager: " + e.toString(), module);
        }
    }

So is the JNDI binding not used?
Reply | Threaded
Open this post in threaded view
|

Re: how is jndi used in ofbiz?

pankaj savita
Hi Chris,

    This link could help you to understand OFBiz Setup & JNDI Configuration.

    http://svn.apache.org/repos/asf/ofbiz/site/docs/config_deploy_maint.html


--
Thanks & Regards,
Pankaj Savita
Mob: +91 9890262476
Mail to: [hidden email]



On Sun, Sep 26, 2010 at 11:12 PM, chris snow <[hidden email]> wrote:

> Hi BJ,
>
> I was specifically looking at 9.04, GeronimoContainer - it is binding
> the GeronimoTransactionManager to jndi:
>
>            InitialContext ic = new InitialContext();
>            ic.rebind("java:comp/UserTransaction", new
> GeronimoTransactionManager());
>
> But in the GeronimoTransactionFactory it looks like JNDI is bypassed:
>
>   static {
>        // creates an instance of Geronimo transaction context, etc
> with a local transaction factory which is not bound to a registry
>        try {
>            transactionLog = new UnrecoverableLog();
>            geronimoTransactionManager = new
> GeronimoTransactionManager(defaultTransactionTimeoutSeconds,
> (XidFactory)new XidFactoryImpl(), transactionLog);
>        } catch (XAException e) {
>            Debug.logError(e, "Error initializing Geronimo transaction
> manager: " + e.toString(), module);
>        }
>    }
>
> So is the JNDI binding not used?
>