Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Deployment settings exe

3 posts in EJB Client Last posting was on 2004-09-24 09:29:44.0Z
Ben (bede) Posted on 2004-09-22 10:42:18.0Z
From: Ben (bede) <bedeNOSP@Msofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Deployment settings exe
Message-ID: <MPG.1bbb72e6533adf9b9896b0@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Date: 22 Sep 2004 03:42:18 -0700
X-Trace: forums-1-dub 1095849738 194.7.38.226 (22 Sep 2004 03:42:18 -0700)
X-Original-Trace: 22 Sep 2004 03:42:18 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 76
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:371
Article PK: 424546

Using PB 9.0.1#7236 and Websphere 5.1 (but also EAServer 4.2)

We managed to get the IDE working with WebSphere after changing a number
of settings in the registry (LOCAL_MACHINE) etc..

i was wondering how these setting can be passed onto the final
executable built with PB.

* i've built the executable + pbds
* copied all onto a new PC (no PB-IDE present) and added a directory
with the correct java runtime (jre\bin\classic)

but still i get the exception "PBXRuntimeError: Error calling method of
a PBNI object" when strating the exe. i think i've included all
necessary DLLs, jars and pbds. Even when run from the PC where the
application runs from within the IDE, it doesn't when trying with the
exe from a separate directory.

When using the PB Runtime Packager (just discovered the existence of it
:-) ) and java/EJB client is chosen, will this set certain registry
settings as well?? if so, which ones (what to expect)

a question about the help (see inline <Q: >s)
=============================================
<HELP>
Overriding the runtime static registry classpath

If necessary, you can override the JVM settings and properties defined
for runtime use in the static registry. PowerBuilder uses the following
algorithm to locate configuration information:

<Q: configuration information => is this always the
LOCAL_MACHINE....powerbuilder.. or can this be PB-independent??>

1. When the first request is made for a JVM, PowerBuilder looks for
registry entries for the configuration information and properties to be
passed to the function that creates the JVM.
2. If PowerBuilder finds a registry entry for the configuration
information, it uses it instead of the static registry. If it does not
find a registry entry, it uses the static registry.
3. If PowerBuilder finds a registry entry for custom properties to be
passed to the JVM, it uses those instead of the static registry. If it
does not find a registry entry, it uses the static registry entries.

To override the default settings, create a new key named PBRTConfig in
the HKEY_LOCAL_MACHINE\Software\Sybase\PowerBuilder\9.0\Java key, then
add either or both of the following subkeys: PBJVMconfig and PBJVMprops.

<Q: can you use an application's own registry key (nothing todo with
LOCAL_MACHINE....PowerBuilder..) to set these properties?
Our application(s) need to be able to connect from the client machine to
different application servers, using different java versions>


To duplicate the static registry entries, add the same string values to
these subkeys that you see in the PBIDEConfig key, that is:

Subkey String value name String value data
PBJVMconfig Count 1
0 -verbose:jni,class
PBJVMprops java.compiler NONE

You can override either the configuration or properties entries or both.
If you make incorrect entries, PowerBuilder attempts to recover by
defaulting to the static registry. However, you should be cautious about
making any changes since you can cause incorrect behavior in the JVM if
you do not configure it correctly. <END HELP>

Q: Does somebody have a good example of a configuration that serves
different application servers and how to use them?

Are there any documents available on this subject?

Thanks for any help,

Ben


Ben (bede) Posted on 2004-09-23 07:36:34.0Z
From: Ben (bede) <bedeNOSP@Msofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Deployment settings exe
Message-ID: <MPG.1bbc9bea910249b9896b6@forums.sybase.com>
References: <MPG.1bbb72e6533adf9b9896b0@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-Trace: 23 Sep 2004 00:36:30 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 55
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 23 Sep 2004 00:36:31 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 23 Sep 2004 00:36:34 -0700
X-Trace: forums-1-dub 1095924994 10.22.108.75 (23 Sep 2004 00:36:34 -0700)
X-Original-Trace: 23 Sep 2004 00:36:34 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:372
Article PK: 424547

does this make sense to anyone??
i could raise this Q as a case too, but i'd rather not yet!

In article <MPG.1bbb72e6533adf9b9896b0@forums.sybase.com>,
bedeNOSP@Msofico.be says...

> Using PB 9.0.1#7236 and Websphere 5.1 (but also EAServer 4.2)
>
> We managed to get the IDE working with WebSphere after changing a number
> of settings in the registry (LOCAL_MACHINE) etc..
>
> i was wondering how these setting can be passed onto the final
> executable built with PB.
>
> * i've built the executable + pbds
> * copied all onto a new PC (no PB-IDE present) and added a directory
> with the correct java runtime (jre\bin\classic)
>
> but still i get the exception "PBXRuntimeError: Error calling method of
> a PBNI object" when strating the exe. i think i've included all
> necessary DLLs, jars and pbds. Even when run from the PC where the
> application runs from within the IDE, it doesn't when trying with the
> exe from a separate directory.
>
> When using the PB Runtime Packager (just discovered the existence of it
> :-) ) and java/EJB client is chosen, will this set certain registry
> settings as well?? if so, which ones (what to expect)
>
> a question about the help (see inline <Q: >s)
> =============================================
> <HELP>
> Overriding the runtime static registry classpath
>
> If necessary, you can override the JVM settings and properties defined
> for runtime use in the static registry. PowerBuilder uses the following
> algorithm to locate configuration information:
>
> <Q: configuration information => is this always the
> LOCAL_MACHINE....powerbuilder.. or can this be PB-independent??>
>
> 1. When the first request is made for a JVM, PowerBuilder looks for
> registry entries for the configuration information and properties to be
> passed to the function that creates the JVM.
> 2. If PowerBuilder finds a registry entry for the configuration
> information, it uses it instead of the static registry. If it does not
> find a registry entry, it uses the static registry.
> 3. If PowerBuilder finds a registry entry for custom properties to be
> passed to the JVM, it uses those instead of the static registry. If it
> does not find a registry entry, it uses the static registry entries.
>
> To override the default settings, create a new key named PBRTConfig in
> the HKEY_LOCAL_MACHINE\Software\Sybase\PowerBuilder\9.0\Java key, then
> add either or both of the following subkeys: PBJVMconfig and PBJVMprops.
>
> <Q: can you use an application's own registry key (nothing todo with
> LOCAL_MACHINE....PowerBuilder..) to set these properties?


Ben (bede) Posted on 2004-09-24 09:29:44.0Z
From: Ben (bede) <bedeNOSP@Msofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: Deployment settings exe
Message-ID: <MPG.1bbe07e9f43f53df9896c0@forums.sybase.com>
References: <MPG.1bbb72e6533adf9b9896b0@forums.sybase.com>
Organization: Sofico
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
User-Agent: MicroPlanet-Gravity/2.70.2067
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-Trace: 24 Sep 2004 02:29:39 -0700, uu194-7-38-226.unknown.uunet.be
Lines: 61
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 24 Sep 2004 02:29:41 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 24 Sep 2004 02:29:44 -0700
X-Trace: forums-1-dub 1096018184 10.22.108.75 (24 Sep 2004 02:29:44 -0700)
X-Original-Trace: 24 Sep 2004 02:29:44 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:374
Article PK: 424549

found the problem with the exe.. some client jars were missing.

the questions about the Runtime Packager and how to setup a client PC
that needs to be able to connect to 2 different app.serveres (with
different JVMs) still stand tho.

Ben


In article <MPG.1bbb72e6533adf9b9896b0@forums.sybase.com>,
bedeNOSP@Msofico.be says...

> Using PB 9.0.1#7236 and Websphere 5.1 (but also EAServer 4.2)
>
> We managed to get the IDE working with WebSphere after changing a number
> of settings in the registry (LOCAL_MACHINE) etc..
>
> i was wondering how these setting can be passed onto the final
> executable built with PB.
>
> * i've built the executable + pbds
> * copied all onto a new PC (no PB-IDE present) and added a directory
> with the correct java runtime (jre\bin\classic)
>
> but still i get the exception "PBXRuntimeError: Error calling method of
> a PBNI object" when strating the exe. i think i've included all
> necessary DLLs, jars and pbds. Even when run from the PC where the
> application runs from within the IDE, it doesn't when trying with the
> exe from a separate directory.
>
> When using the PB Runtime Packager (just discovered the existence of it
> :-) ) and java/EJB client is chosen, will this set certain registry
> settings as well?? if so, which ones (what to expect)
>
> a question about the help (see inline <Q: >s)
> =============================================
> <HELP>
> Overriding the runtime static registry classpath
>
> If necessary, you can override the JVM settings and properties defined
> for runtime use in the static registry. PowerBuilder uses the following
> algorithm to locate configuration information:
>
> <Q: configuration information => is this always the
> LOCAL_MACHINE....powerbuilder.. or can this be PB-independent??>
>
> 1. When the first request is made for a JVM, PowerBuilder looks for
> registry entries for the configuration information and properties to be
> passed to the function that creates the JVM.
> 2. If PowerBuilder finds a registry entry for the configuration
> information, it uses it instead of the static registry. If it does not
> find a registry entry, it uses the static registry.
> 3. If PowerBuilder finds a registry entry for custom properties to be
> passed to the JVM, it uses those instead of the static registry. If it
> does not find a registry entry, it uses the static registry entries.
>
> To override the default settings, create a new key named PBRTConfig in
> the HKEY_LOCAL_MACHINE\Software\Sybase\PowerBuilder\9.0\Java key, then
> add either or both of the following subkeys: PBJVMconfig and PBJVMprops.
>
> <Q: can you use an application's own registry key (nothing todo with
> LOCAL_MACHINE....PowerBuilder..) to set these properties?