Skip to main content

__pm and __nontx suffixes on data sources?

3 replies [Last post]
ljnelson
Offline
Joined: 2003-08-04
Points: 0

Trying to track down a report from an engineer who attempted to deploy our
application in production.

He reports that when he does so through the web console at a particular
site he sees evidence of two missing resources:

The deployment will fail due to these weird missing resources called
> "jdbc/cx__pm" and "jdbc/cx__nontx".

I have seen this __pm suffix before, but not the __nontx suffix before. In
both cases the engineer didn't type them or create them or anything like
that. (The "jdbc/cx" part is no doubt related somehow to our application;
it may be that we have a persistence.xml somewhere that needs a
jta-data-source of jdbc/cx and perhaps on the target machine one didn't
exist at deployment time due to an oversight. I mention this in case it
helps.)

He also reports that this only happens through the web console; that
attempting to deploy our application via the command line works fine.

What are the __pm and __nontx suffixes used for? Does GlassFish add them
or generate them or...?

I apologize for the vagueness of this email; I recall seeing something
about this earlier but can't seem to find it via searching.

Best,
Laird

--
http://about.me/lairdnelson

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mvatkina
Offline
Joined: 2005-04-04
Points: 0

See http://docs.oracle.com/cd/E26576_01/doc.312/e24930/jdbc.htm#gavro
and
http://docs.oracle.com/cd/E26576_01/doc.312/e24930/transaction-service.h...

To support API based access those 2 options are created in the
background automagically.

HTH,
-marina

Laird Nelson wrote:
> Trying to track down a report from an engineer who attempted to deploy
> our application in production.
>
> He reports that when he does so through the web console at a
> particular site he sees evidence of two missing resources:
>
> The deployment will fail due to these weird missing resources
> called "jdbc/cx__pm" and "jdbc/cx__nontx".
>
>
> I have seen this __pm suffix before, but not the __nontx suffix
> before. In both cases the engineer didn't type them or create them or
> anything like that. (The "jdbc/cx" part is no doubt related somehow
> to our application; it may be that we have a persistence.xml somewhere
> that needs a jta-data-source of jdbc/cx and perhaps on the target
> machine one didn't exist at deployment time due to an oversight. I
> mention this in case it helps.)
>
> He also reports that this only happens through the web console; that
> attempting to deploy our application via the command line works fine.
>
> What are the __pm and __nontx suffixes used for? Does GlassFish add
> them or generate them or...?
>
> I apologize for the vagueness of this email; I recall seeing something
> about this earlier but can't seem to find it via searching.
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>

ljnelson
Offline
Joined: 2003-08-04
Points: 0

On Wed, Oct 10, 2012 at 7:51 PM, Marina Vatkina
wrote:

> See http://docs.oracle.com/cd/**E26576_01/doc.312/e24930/jdbc.**htm#gavroand
> http://docs.oracle.com/cd/**E26576_01/doc.312/e24930/**
> transaction-service.htm#beamu
>
> To support API based access those 2 options are created in the background
> automagically.
>

Oh, interesting. (And, have to say, weird.) So it would appear that by
default when you use the web console the allow-non-component-callers option
is set to true, whereas if you just do asadmin deploy this is set to false.
Is that by design?

Here's another odd curveball for you: if I told you that a mistake was made
:-) and a jdbc/cx resource was never created on the GlassFish in question,
but a jdbc/cx__pm etc. still showed up, what would that mean? How would
that come about?

Best,
Laird

--
http://about.me/lairdnelson

mvatkina
Offline
Joined: 2005-04-04
Points: 0

Laird Nelson wrote:
> On Wed, Oct 10, 2012 at 7:51 PM, Marina Vatkina
> > wrote:
>
> See
> http://docs.oracle.com/cd/E26576_01/doc.312/e24930/jdbc.htm#gavro
> and
> http://docs.oracle.com/cd/E26576_01/doc.312/e24930/transaction-service.h...
>
>
> To support API based access those 2 options are created in the
> background automagically.
>
>
> Oh, interesting. (And, have to say, weird.) So it would appear that
> by default when you use the web console
> the allow-non-component-callers option is set to true, whereas if you
> just do asadmin deploy this is set to false. Is that by design?

I would expect them to be the same, but I'll leave the final answer to
the connector/jdbc team. I'll let them answer you question below as well...

Best,
-marina

>
> Here's another odd curveball for you: if I told you that a mistake was
> made :-) and a jdbc/cx resource was never created on the GlassFish in
> question, but a jdbc/cx__pm etc. still showed up, what would that
> mean? How would that come about?
>
> Best,
> Laird
>
> --
> http://about.me/lairdnelson
>