XA connection problem

Поиск
Список
Период
Сортировка
От GIROIRE, Nicolas (COFRAMI)
Тема XA connection problem
Дата
Msg-id 5C40CD1E4697424ABDE3AC57CF1B22C629CAA6@FR0-MAILMB20.res.airbus.corp
обсуждение исходный текст
Список pgsql-general
Hi,

I'm working on carrying out application on Oracle database to PostgreSQL.

The server is weblogic.
For Oracle we use XA connection but there isn't in PostgreSQL so I try to use XA emulate Connection taht allows
weblogic.But I don't succeed to use it correctly. 
The connection seems correct, but at a time, the server uses the method getXAResource() and this method return null and
anerror is produced. 

I've checked the case "Emulate XA connection" on my weblogic server connection.

When i create my connection I do,

Connection cx = getPostgresqlDataSource().getConnection();
return new ManagedConnectionImpl(this, pwdCred, null, cx, false, false);

and getPostgresqlDataSource is :
private javax.sql.DataSource getPostgresqlDataSource() throws ResourceException
  {
    try
    {
      InitialContext initialContext = new InitialContext();
      return (javax.sql.DataSource)initialContext.lookup(ADOCProperties.getKeyValue(ADOCProperties.
          FRAMEWORK_XA_DATASOURCE_DRIVER));
    }
    catch (Exception e)
    {
      logger.severe(e.getMessage());
      return null;
    }
  }


Is somebody have an idea ?



    COFRAMI
    Nicolas Giroire
    on behalf of AIRBUS France
    for In Flight & Ground Information Services - Development
    Phone : +33 (0)5 67 19 98 74
          Mailto:nicolas.giroire@airbus.com



This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

В списке pgsql-general по дате отправления:

Предыдущее
От: Eric E
Дата:
Сообщение: Fabrica a record in PL/PGSQL
Следующее
От: "Paul Newman"
Дата:
Сообщение: guids / bytea and index use ?