Hi Oliver, all,

I'm experiencing similar problems with the Websphere AS (pooling with 
Websphere, not OJB). 
Does anybody have a working example of a Websphere/OJB installation 
(properties-file, modified RC4 sources?) and some example query code 
(including the JNDI lookup part)?

Regards
Lasse







Oliver Urbitsch/IS-LF1/[EMAIL PROTECTED]
22.08.03 17:22
Bitte antworten an "OJB Users List"

 
        An:     "OJB Users List" <[EMAIL PROTECTED]>
        Kopie: 
        Thema:  Antwort: Re: Configure OJB in WAS Testenvironment



Hi Michael,

I checked out the new WebSphereTransactionManagerFactory.java  and
build a new JAR-File.
Sorry - but  I still get the same Errormessage im my WSAD 4.03
Testenvironment.

Any suggestions?

Thanks
Oliver


|---------+--------------------------->
|         |           Michael Becke   |
|         |           <[EMAIL PROTECTED]|
|         |           ton.edu>        |
|         |                           |
|         |           20.08.03 14:34  |
|         |           Bitte antworten |
|         |           an "OJB Users   |
|         |           List"           |
|         |                           |
|---------+--------------------------->
 
>------------------------------------------------------------------------------------------------|
  |                         |
  |        An:      "OJB Users List" <[EMAIL PROTECTED]>   |
  |        Kopie:                         |
  |        Thema:   Re: Configure OJB in WAS Testenvironment            |
 
>------------------------------------------------------------------------------------------------|



Oliver,

The WebSphereTransactionManagerFactory included in RC4 does not
work in
WAS 4.  This has been fixed in the latest version in CVS.

Mike

On Wednesday, August 20, 2003, at 05:24 AM,
[EMAIL PROTECTED]
wrote:

> Hi to all,
>
> can anybody please tell me how OJB has to be configured to use
the
> Webshere Application Server connection pooling? We are using the
>  WAS 4.03 Testenvironment and OJB RC4.
>
> The following configuration is used:
> - OJB-properties:
> ...
>
-----------------------------------------------------------------------

> --------------
> # ConnectionFactory / Default ConnectionPool
>
#----------------------------------------------------------------------

> --------------
>
ConnectionFactoryClass=org.apache.ojb.broker.accesslayer.ConnectionFact

> oryManagedImpl
> ...
>
#----------------------------------------------------------------------

> ------------------
> # Transaction Management and assocation
>
#----------------------------------------------------------------------

> ------------------
> OJBTxManagerClass=org.apache.ojb.odmg.JTATxManager
>
>
JTATransactionManagerClass=org.apache.ojb.odmg.transaction.WebSphereTra

> nsactionManagerFactory
> ...
>
> - repository_database.xml
>  <jdbc-connection-descriptor
>             jcd-alias="default"
>             default-connection="true"
>             platform="Db2"
>             jdbc-level="2.0"
>             protocol="jdbc"
>             subprotocol="db2"
>             dbalias="LSI1"
>             username="myname"
>             password="mypassword"
>               eager-release="false"
>             batch-mode="false"
>         useAutoCommit="1"
>         ignoreAutoCommitExceptions="false"
>>
>         <connection-pool
>             maxActive="21"
>             validationQuery="" />
>         <sequence-manager className
>
="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
>             <attribute attribute-name="grabSize" attribute-value
> ="20"/>
>             <attribute attribute-name="autoNaming"
attribute-value
> ="true"/>
>             <attribute attribute-name="globalSequenceId"
> attribute-value="false"/>
>             <attribute attribute-name="globalSequenceStart"
> attribute-value="10000"/>
>         </sequence-manager>
>    </jdbc-connection-descriptor>
>
> Here is the code :
>
>       PersistenceBroker broker;
>       Query q;
>       Collection results;
>
>       broker = PersistenceBrokerFactory.defaultPersistenceBroker
> ();
>
>       broker.beginTransaction();
>
> and we get the following exception in broker.beginTransaction:
>
> IEx=UnsupportedOperationException
>     detailMessage=Not supported in managed environment"
>
> Thanks a lot.
> Oliver
>
> Remark: Using the OJB connection Pooling everything works fine!
>
>
>
>
---------------------------------------------------------------------

> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to