manager.find on the
first server is able to fetch the uncommitted entity from the context
itself.
I understand I have to use a distributed cache.
devu213 wrote:
>
> Thanks Michael. However, I forgot to mention this:
>
> I also tried swapping the two find calls i.e do a find fo
dCommitted.
>
> [1] http://www-01.ibm.com/support/docview.wss?rs=180&uid=swg21224492
>
> Hope this helps,
> -mike
>
> On Thu, Jun 11, 2009 at 12:11 PM, devu213 wrote:
>
>>
>> Hi,
>>
>> I have a scenario where I'm trying to run a distributed tran
Hi,
I have a scenario where I'm trying to run a distributed transaction across
two websphere 6.1 app servers on two different nodes (2 physical machines).
A stateless session bean on server 1 makes an entry to a table in the
database after which it calls the remote ejb on server 2 which again mak
;s link.
Kevin Sutter wrote:
>
> Devu213,
> Besides Jeremy's references below, I want to be aware of WebSphere's
> support
> of OpenJPA. I started to cover this the WebSphere and Java Persistence
> blog
> [1], but to cover your specific situation... You are correct that t
override the default openJPA shipped with WAS because I want to be able to
use the latest version but the one being picked up by the classloader is
always the 1.0 version.
Thanks in advance.
Kevin Sutter wrote:
>
> Hi devu213,
> Just to clarify... Are you using the EJB3 Feature Pack
Hi,
I need to lookup an entitymanager using JNDI on websphere 6.1. My
persistence.xml is configured to use JPA. Although I use injection (which
works) in almost all cases, I have a case where I would like the use of
entitymanager in a POJO and therefore would like to get it from JNDI
directly.
T
Hi,
I'm sorry, I looked at the log file that I attached and realized that it has
gotten truncated due to some character in between (I copy pasted it from
eclipse console). Here is the entire log file on a different run.
Pinaki, your observation is correct but the thing is the very reason that
t
For whatever it's worth, I'm using DB2 Express C as the database. Can someone
please confirm that Inheritance JOINED works?
devu213 wrote:
>
>
> Another observation is that if I'm persisting a base class subclass
> hierarchy twice in two methods, like I'm doi
not null,
UPDATE_BYCHAR(10) not null,
UPDATE_TSTIMESTAMP not null,
constraint PK_CR primary key (PBS_NO)
);
alter table .CREDITOR
add constraint F_FK_CU foreign key (PBS_NO)
references .CUSTOMER (PBS_NO)
on delete no action;
dev
Subsequent to my last post, I have tried the code on versions 1.0.2 and
1.2.0. It fails on both ( in addition to 1.1.0 on which I originally tried
it).
Another observation is that if I'm persisting a base class subclass
hierarchy twice in two methods, like I'm doing, the first invocation fails.
H
I have since realized that this problem has nothing to do with DBUnit. I was
trying to test an inheritance hierarchy with openJPA and that is failing.
I have added to a separate post that already mentions a similar issue with
version 1.1.0
devu213 wrote:
>
> I'm really having prob
I too get the exact same problem. In fact, it behaves quite wierdly in my
case.
I have two methods doing the exact same thing i.e insert a Creditor object
with different ID's. With the object hierarchy below, I expect it to fire a
Customer query insert and then a creditor query insert for both
I'm really having problems trying to make openJPA work with DBUnit. Here is a
snippet of my test class. The moment I have a situation where DBUnit does
some sort of initializing operations on the database, openJPA starts
behaving really strangely. Specifically the second test method which uses
inh
Hi Patrick / others,
I know this thread is a bit old but I hope someone replies. Here's the line
of interest to me
>>quote
Don't forget to close() the connection when you're done with it --
OpenJPA does reference counting on the connections it doles out in
order to properly handle the Connection
Hi,
I have a very peculiar problem. I'm using JPA/openJPA in conjunction with
dbUnit for unit testing.
The sequence of events of course is
Initialize db using dbunit API -> Do insert using openJPA -> do asserts
using dbunit API.
In order to have a decent performance level over what would be a s
15 matches
Mail list logo