Thanks Toby. I am using CMP, so I'm not too sure what I would
be doing strange in my code. Here is the method that exhibits
the problem -- This is in a session bean that then hooks
up to the appropriate entity beans to do the create.
Kevin
public TravelerType addTraveler(TravelerType t, int
whoops...you are right the name of that method
is now returnPk(). Here is the code for that method.
It is an entity bean with one business method returnPk().
/** returnPk() is an atomic transaction that will get the nextId
* update the pktable and then return the id to the caller. */
There seems to be a problem when declaring a method with the
RequiresNew transaction attribute. I have tested this with both
Minerva's org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
and Opta's com.inet.tds.XDataSource -- in fact, Opta's was *really* not
working, but they have recently
According to the spec here is the def of a RequiresNew Transaction
attribute:
...The container always executes a method that is assigned the RequiresNew
Transaction in a new transaction context. This means that the container
starts a new transaction before it executes the method, and it commits
In entity beans the primary key must be an object
all other fields may be of primitive type. If you
are having issues with non-primary key fields that
are primitives, check you standardjaws.xml or your
jaws.xml to make sure that they are mapping correctly
to your database.
Kevin Meldorf
Systems
I am using a primary key generator as an entity bean that has the
following transaction defined in my ejb-jar.xml:
assembly-descriptor
container-transaction
method
ejb-namePkTable/ejb-name
method-namegetNextId/method-name
/method
When I do a findBy that will return a collection in CMP, no FinderException
is thrown, if no entities are found. Is this part of the EJB spec or is this
a bug?
I am using jboss 2.2 with MS SQL Server 2000 on Windows
2000 using the Opta 2000 inet driver
Thanks,
Kevin Meldorf
Systems Analyst
PROTECTED]]
Sent: Friday, June 22, 2001 9:37 AM
To: Kevin Meldorf (NBK); '[EMAIL PROTECTED]'
Cc: Frank Thiemonge (NBK)
Subject: AW: Possible bug in jboss?
Hello,
The problem is that the class org.jboss.tm.TxCapsule has a status of
Status.STATUS_ACTIVE after creating with new.
The minerva driver
I have been working with Volker Berlin at inetsoftware to get the opta2000
XDataSource to work with jboss 2.2. Whenever, I tried to
use the inet's XDataSource vs. minerva's XADataSource I would get the
following error:
[UserEntityBean] XAException: tx=XidImpl [FormatId=257,
I am using custom
finders with MS SQL Server 2000 using the the Inet Opta
jdbc driver. For a
custom finder with cmp you just need to include the finder
in
your home stub and
then define it in your jaws file:
Here's an
example:
home
stub:
// more
finders Enumeration findByPoItemNumber
I'm using the opta
i-net jdbc driver with SQL server 2000 and
Win2000 and I have
not seen these errors when using transaction
requirements. Shoot
me an email and let's see if we can chase
this one
down.
Kevin
Kevin Meldorf Systems Analyst WorldTravel BTI
400 Skokie Blvd Northbrook, IL
I am working on an
application where I am trying to pass a non ejb ojbect to an
EJB.
I have a session
bean that I am trying to pass the following "structure" to my session
bean.
import
java.util.*;import java.io.*;
/** This is
basically a file of structs that we will use in the Po app
Please
ignore my last post...I see that overriding a method with a
blank
method really messes things up for object serialization...
:-)
Kevin
-Original Message-From: Kevin Meldorf (NBK)
Sent: Wednesday, May 02, 2001 3:55 PMTo:
'[EMAIL PROTECTED]'Subject: Passing structures
Hello,
I am trying to use the NT service from the contrib section, but I keep on
getting the following error in the log:
JbossTomcat java.c: ServiceStart(): Cannot create JVM
Failed to start service
Does anyone have a working version of this NT service and if you do,
can you post your working
=Jboss_Tomcat
service.name=Jboss_Tomcat
stop.port=1984
debug=yes
log.path=c:\jboss-tomcat-2.1-beta\jboss-2.1\bin\javants.log
Thanks,
Kevin
-Original Message-
From: Heitzso [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 16, 2001 3:43 PM
To: Kevin Meldorf (NBK); [EMAIL PROTECTED]
Subject: NT
I have set up Jboss as an NT service, but it ain't pretty...
You need to go out and get the srvany binary
http://www.href.com/pub/Helpful/SrvAny/
Here you will find the docs and tools that will help you
to set up anything as an NT service. You must let the service
participate with the desktop
How are Transaction Isolation Levels handled in jboss? Is it possible to set
them (TRANSACTION_READ_COMMITTED, TRANSACTION_REPEATABLE_READ, etc.) in a
deployment descriptor? I can't seem to find information on this anywhere and
any help would be greatly appreciated.
Thanks in advance,
Kevin
Yo Marc! If you're still browsing the list,
could you field this one for me???
Thanks
Kevin
-Original Message-
From: Kevin Meldorf (NBK) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 2:06 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] Transaction Isolation Level
How
How are Transaction Isolation Levels handled in jboss? Weblogic
seems to use a proprietary method in their weblogic-ejb-jar file.
If jboss does have a control over Transaction Isolation Levels,
where and how do you declare them.
Thanks,
Kevin
Kevin Meldorf
Systems Analyst
WorldTravel BTI
400
oh classpath and compiling problems: Many a day
spent pulling out my hair...
1. compile the client at the root of your package directory.
if your files are in com.whatever.foo, make sure that your
client sits above "com" and also make sure that you have an
import for your class files.
20 matches
Mail list logo