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.

System property

8 posts in EJB Client Last posting was on 2004-12-03 21:59:22.0Z
Al Posted on 2004-12-02 20:46:42.0Z
Sender: 2dc1.41af3b99.1804289383@sybase.com
From: Al
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: System property
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41af7f2e.3487.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 2 Dec 2004 12:46:38 -0800, 10.22.241.42
Lines: 31
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Dec 2004 12:46:39 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Dec 2004 12:46:42 -0800
X-Trace: forums-1-dub 1102020402 10.22.108.75 (2 Dec 2004 12:46:42 -0800)
X-Original-Trace: 2 Dec 2004 12:46:42 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:397
Article PK: 424571

Is there a way to defind a system property when creating
Java VM?
I tried something like follows:

string properties[]
i_jvm = create javavm
string classpath

classpath = ""

properties[UpperBound(properties)+1] =
'-Dprimavera.bootstrap.home="C:\Program
Files\Primavera\IntegrationAPI"'

i_jvm.createjavavm(classpath,properties)

....
Then call my java function. But I get "Unable to get
Database Instance", which I didn't get if I run it from
Java.

Running from Java, I had to pass in a system property. Like:
Java - classpath ... -Dprimavera.bootstrap.home="C:\Program
Files\Primavera\IntegrationAPI" myJavaprogram

So I guess there should be some way to set system property
in using EJB.

Can anyone help?

Al


Jim O'Neil [Sybase] Posted on 2004-12-02 22:42:37.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
Message-ID: <jh6vq09gf0h947bddtk9rrttb4094q2lpa@4ax.com>
References: <41af7f2e.3487.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-Trace: 2 Dec 2004 14:42:33 -0800, joneilw2k.sybase.com
Lines: 37
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 2 Dec 2004 14:42:34 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 2 Dec 2004 14:42:37 -0800
X-Trace: forums-1-dub 1102027357 10.22.108.75 (2 Dec 2004 14:42:37 -0800)
X-Original-Trace: 2 Dec 2004 14:42:37 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:398
Article PK: 424573

Check the documentation for PBIDEConfig and PBRTConfig entries in the
registry.

On 2 Dec 2004 12:46:42 -0800, Al wrote:

>Is there a way to defind a system property when creating
>Java VM?
>I tried something like follows:
>
>string properties[]
>i_jvm = create javavm
>string classpath
>
>classpath = ""
>
>properties[UpperBound(properties)+1] =
>'-Dprimavera.bootstrap.home="C:\Program
>Files\Primavera\IntegrationAPI"'
>
>i_jvm.createjavavm(classpath,properties)
>
>....
>Then call my java function. But I get "Unable to get
>Database Instance", which I didn't get if I run it from
>Java.
>
>Running from Java, I had to pass in a system property. Like:
>Java - classpath ... -Dprimavera.bootstrap.home="C:\Program
>Files\Primavera\IntegrationAPI" myJavaprogram
>
>So I guess there should be some way to set system property
>in using EJB.
>
>Can anyone help?
>
>Al


Al Posted on 2004-12-03 14:29:19.0Z
Sender: 6911.41b07656.1804289383@sybase.com
From: Al
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41b0783f.6954.1681692777@sybase.com>
References: <jh6vq09gf0h947bddtk9rrttb4094q2lpa@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 Dec 2004 06:29:19 -0800
X-Trace: forums-1-dub 1102084159 10.22.241.41 (3 Dec 2004 06:29:19 -0800)
X-Original-Trace: 3 Dec 2004 06:29:19 -0800, 10.22.241.41
Lines: 47
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:399
Article PK: 424574

Thank you for the advice. But I checked the PB9 help and
also online books, I can't find such entries. Where do I
find this documentation?
However, I did find PBIDEConfig in my registry. There is
PBJVMprops. And there are default and java.complier entries
in PBJVMprops. Do I set default value to be the system
property value"-Dprimavera.bootstrap.home="C:\Program
Files\Primavera\IntegrationAPI"?

> Check the documentation for PBIDEConfig and PBRTConfig
> entries in the registry.
>
> On 2 Dec 2004 12:46:42 -0800, Al wrote:
>
> >Is there a way to defind a system property when creating
> >Java VM?
> >I tried something like follows:
> >
> >string properties[]
> >i_jvm = create javavm
> >string classpath
> >
> >classpath = ""
> >
> >properties[UpperBound(properties)+1] =
> >'-Dprimavera.bootstrap.home="C:\Program
> >Files\Primavera\IntegrationAPI"'
> >
> >i_jvm.createjavavm(classpath,properties)
> >
> >....
> >Then call my java function. But I get "Unable to get
> >Database Instance", which I didn't get if I run it from
> >Java.
> >
> >Running from Java, I had to pass in a system property.
> Like: >Java - classpath ...
> -Dprimavera.bootstrap.home="C:\Program
> >Files\Primavera\IntegrationAPI" myJavaprogram >
> >So I guess there should be some way to set system
> property >in using EJB.
> >
> >Can anyone help?
> >
> >Al
>


Jim O'Neil [Sybase] Posted on 2004-12-03 15:41:29.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
Message-ID: <ds11r05qtl4ehstojjgqrrob2i5mtj7l9f@4ax.com>
References: <jh6vq09gf0h947bddtk9rrttb4094q2lpa@4ax.com> <41b0783f.6954.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
Date: 3 Dec 2004 07:41:29 -0800
X-Trace: forums-1-dub 1102088489 10.18.43.140 (3 Dec 2004 07:41:29 -0800)
X-Original-Trace: 3 Dec 2004 07:41:29 -0800, joneilw2k.sybase.com
Lines: 60
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:400
Article PK: 424575

Chapter 39 in Application Techniques (http://sybooks.sybase.com). Add
a new string value to PBJVMProps called primavera.bootstrap.home and
set it's value to the directory desired. The PBJVMProps entry is
essentially a place to list all of the -D options you might provide to
the java.exe.

If you have a copy of the PB9 Internet and Distributed Application
Development book, Chapter 23 is a bit more explicit about
configuration than we have in our doc.

On 3 Dec 2004 06:29:19 -0800, Al wrote:

>Thank you for the advice. But I checked the PB9 help and
>also online books, I can't find such entries. Where do I
>find this documentation?
>However, I did find PBIDEConfig in my registry. There is
>PBJVMprops. And there are default and java.complier entries
>in PBJVMprops. Do I set default value to be the system
>property value"-Dprimavera.bootstrap.home="C:\Program
>Files\Primavera\IntegrationAPI"?
>
>
>> Check the documentation for PBIDEConfig and PBRTConfig
>> entries in the registry.
>>
>> On 2 Dec 2004 12:46:42 -0800, Al wrote:
>>
>> >Is there a way to defind a system property when creating
>> >Java VM?
>> >I tried something like follows:
>> >
>> >string properties[]
>> >i_jvm = create javavm
>> >string classpath
>> >
>> >classpath = ""
>> >
>> >properties[UpperBound(properties)+1] =
>> >'-Dprimavera.bootstrap.home="C:\Program
>> >Files\Primavera\IntegrationAPI"'
>> >
>> >i_jvm.createjavavm(classpath,properties)
>> >
>> >....
>> >Then call my java function. But I get "Unable to get
>> >Database Instance", which I didn't get if I run it from
>> >Java.
>> >
>> >Running from Java, I had to pass in a system property.
>> Like: >Java - classpath ...
>> -Dprimavera.bootstrap.home="C:\Program
>> >Files\Primavera\IntegrationAPI" myJavaprogram >
>> >So I guess there should be some way to set system
>> property >in using EJB.
>> >
>> >Can anyone help?
>> >
>> >Al
>>


Al Posted on 2004-12-03 16:59:42.0Z
Sender: 6911.41b07656.1804289383@sybase.com
From: Al
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41b09b7e.6e4c.1681692777@sybase.com>
References: <ds11r05qtl4ehstojjgqrrob2i5mtj7l9f@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 Dec 2004 08:59:42 -0800
X-Trace: forums-1-dub 1102093182 10.22.241.41 (3 Dec 2004 08:59:42 -0800)
X-Original-Trace: 3 Dec 2004 08:59:42 -0800, 10.22.241.41
Lines: 71
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:402
Article PK: 424577

I tried the setting. It still doesn't work. Is there a way
to get the property after calling createjavavm(), so I can
make sure it uses the right value?

The reason I need this system property is that there is a
xml file in the directory that provides database connection
info to the java program. Since I still get "Unable to get
database instance." I guess EJB still can't provide the
location of the xml file.

> Chapter 39 in Application Techniques
> (http://sybooks.sybase.com). Add a new string value to
> PBJVMProps called primavera.bootstrap.home and set it's
> value to the directory desired. The PBJVMProps entry is
> essentially a place to list all of the -D options you
> might provide to the java.exe.
>
> If you have a copy of the PB9 Internet and Distributed
> Application Development book, Chapter 23 is a bit more
> explicit about configuration than we have in our doc.
>
> On 3 Dec 2004 06:29:19 -0800, Al wrote:
>
> >Thank you for the advice. But I checked the PB9 help and
> >also online books, I can't find such entries. Where do I
> >find this documentation?
> >However, I did find PBIDEConfig in my registry. There is
> >PBJVMprops. And there are default and java.complier
> entries >in PBJVMprops. Do I set default value to be the
> system >property
> value"-Dprimavera.bootstrap.home="C:\Program
> >Files\Primavera\IntegrationAPI"? >
> >
> >> Check the documentation for PBIDEConfig and PBRTConfig
> >> entries in the registry.
> >>
> >> On 2 Dec 2004 12:46:42 -0800, Al wrote:
> >>
> >> >Is there a way to defind a system property when
> creating >> >Java VM?
> >> >I tried something like follows:
> >> >
> >> >string properties[]
> >> >i_jvm = create javavm
> >> >string classpath
> >> >
> >> >classpath = ""
> >> >
> >> >properties[UpperBound(properties)+1] =
> >> >'-Dprimavera.bootstrap.home="C:\Program
> >> >Files\Primavera\IntegrationAPI"'
> >> >
> >> >i_jvm.createjavavm(classpath,properties)
> >> >
> >> >....
> >> >Then call my java function. But I get "Unable to get
> >> >Database Instance", which I didn't get if I run it
> from >> >Java.
> >> >
> >> >Running from Java, I had to pass in a system property.
> >> Like: >Java - classpath ...
> >> -Dprimavera.bootstrap.home="C:\Program
> >> >Files\Primavera\IntegrationAPI" myJavaprogram >
> >> >So I guess there should be some way to set system
> >> property >in using EJB.
> >> >
> >> >Can anyone help?
> >> >
> >> >Al
> >>
>


Jim O'Neil [Sybase] Posted on 2004-12-03 18:41:00.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
Message-ID: <8oc1r0hvfqm3jlbkr7e5pshgrih4adqmmp@4ax.com>
References: <ds11r05qtl4ehstojjgqrrob2i5mtj7l9f@4ax.com> <41b09b7e.6e4c.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
Date: 3 Dec 2004 10:41:00 -0800
X-Trace: forums-1-dub 1102099260 10.18.43.140 (3 Dec 2004 10:41:00 -0800)
X-Original-Trace: 3 Dec 2004 10:41:00 -0800, joneilw2k.sybase.com
Lines: 78
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:403
Article PK: 424578

You could make a call into the JVM itself via JNI (an external
function declaration) or by loading whatever System class might give
you that information if you were in a pure Java environment.

On 3 Dec 2004 08:59:42 -0800, Al wrote:

>I tried the setting. It still doesn't work. Is there a way
>to get the property after calling createjavavm(), so I can
>make sure it uses the right value?
>
>The reason I need this system property is that there is a
>xml file in the directory that provides database connection
>info to the java program. Since I still get "Unable to get
>database instance." I guess EJB still can't provide the
>location of the xml file.
>
>> Chapter 39 in Application Techniques
>> (http://sybooks.sybase.com). Add a new string value to
>> PBJVMProps called primavera.bootstrap.home and set it's
>> value to the directory desired. The PBJVMProps entry is
>> essentially a place to list all of the -D options you
>> might provide to the java.exe.
>>
>> If you have a copy of the PB9 Internet and Distributed
>> Application Development book, Chapter 23 is a bit more
>> explicit about configuration than we have in our doc.
>>
>> On 3 Dec 2004 06:29:19 -0800, Al wrote:
>>
>> >Thank you for the advice. But I checked the PB9 help and
>> >also online books, I can't find such entries. Where do I
>> >find this documentation?
>> >However, I did find PBIDEConfig in my registry. There is
>> >PBJVMprops. And there are default and java.complier
>> entries >in PBJVMprops. Do I set default value to be the
>> system >property
>> value"-Dprimavera.bootstrap.home="C:\Program
>> >Files\Primavera\IntegrationAPI"? >
>> >
>> >> Check the documentation for PBIDEConfig and PBRTConfig
>> >> entries in the registry.
>> >>
>> >> On 2 Dec 2004 12:46:42 -0800, Al wrote:
>> >>
>> >> >Is there a way to defind a system property when
>> creating >> >Java VM?
>> >> >I tried something like follows:
>> >> >
>> >> >string properties[]
>> >> >i_jvm = create javavm
>> >> >string classpath
>> >> >
>> >> >classpath = ""
>> >> >
>> >> >properties[UpperBound(properties)+1] =
>> >> >'-Dprimavera.bootstrap.home="C:\Program
>> >> >Files\Primavera\IntegrationAPI"'
>> >> >
>> >> >i_jvm.createjavavm(classpath,properties)
>> >> >
>> >> >....
>> >> >Then call my java function. But I get "Unable to get
>> >> >Database Instance", which I didn't get if I run it
>> from >> >Java.
>> >> >
>> >> >Running from Java, I had to pass in a system property.
>> >> Like: >Java - classpath ...
>> >> -Dprimavera.bootstrap.home="C:\Program
>> >> >Files\Primavera\IntegrationAPI" myJavaprogram >
>> >> >So I guess there should be some way to set system
>> >> property >in using EJB.
>> >> >
>> >> >Can anyone help?
>> >> >
>> >> >Al
>> >>
>>


Al Posted on 2004-12-03 21:19:15.0Z
Sender: 6911.41b07656.1804289383@sybase.com
From: Al
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41b0d853.7476.1681692777@sybase.com>
References: <8oc1r0hvfqm3jlbkr7e5pshgrih4adqmmp@4ax.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 Dec 2004 13:19:15 -0800
X-Trace: forums-1-dub 1102108755 10.22.241.41 (3 Dec 2004 13:19:15 -0800)
X-Original-Trace: 3 Dec 2004 13:19:15 -0800, 10.22.241.41
Lines: 83
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:404
Article PK: 424579

It works! The reason it did work is because I was using the
download "Converter" version of javavm object.
Thank you for the help.

> You could make a call into the JVM itself via JNI (an
> external function declaration) or by loading whatever
> System class might give you that information if you were
> in a pure Java environment.
>
> On 3 Dec 2004 08:59:42 -0800, Al wrote:
>
> >I tried the setting. It still doesn't work. Is there a
> way >to get the property after calling createjavavm(), so
> I can >make sure it uses the right value?
> >
> >The reason I need this system property is that there is a
> >xml file in the directory that provides database
> connection >info to the java program. Since I still get
> "Unable to get >database instance." I guess EJB still
> can't provide the >location of the xml file.
> >
> >> Chapter 39 in Application Techniques
> >> (http://sybooks.sybase.com). Add a new string value to
> >> PBJVMProps called primavera.bootstrap.home and set it's
> >> value to the directory desired. The PBJVMProps entry
> is >> essentially a place to list all of the -D options
> you >> might provide to the java.exe.
> >>
> >> If you have a copy of the PB9 Internet and Distributed
> >> Application Development book, Chapter 23 is a bit more
> >> explicit about configuration than we have in our doc.
> >>
> >> On 3 Dec 2004 06:29:19 -0800, Al wrote:
> >>
> >> >Thank you for the advice. But I checked the PB9 help
> and >> >also online books, I can't find such entries.
> Where do I >> >find this documentation?
> >> >However, I did find PBIDEConfig in my registry. There
> is >> >PBJVMprops. And there are default and java.complier
> >> entries >in PBJVMprops. Do I set default value to be
> the >> system >property
> >> value"-Dprimavera.bootstrap.home="C:\Program
> >> >Files\Primavera\IntegrationAPI"? >
> >> >
> >> >> Check the documentation for PBIDEConfig and
> PBRTConfig >> >> entries in the registry.
> >> >>
> >> >> On 2 Dec 2004 12:46:42 -0800, Al wrote:
> >> >>
> >> >> >Is there a way to defind a system property when
> >> creating >> >Java VM?
> >> >> >I tried something like follows:
> >> >> >
> >> >> >string properties[]
> >> >> >i_jvm = create javavm
> >> >> >string classpath
> >> >> >
> >> >> >classpath = ""
> >> >> >
> >> >> >properties[UpperBound(properties)+1] =
> >> >> >'-Dprimavera.bootstrap.home="C:\Program
> >> >> >Files\Primavera\IntegrationAPI"'
> >> >> >
> >> >> >i_jvm.createjavavm(classpath,properties)
> >> >> >
> >> >> >....
> >> >> >Then call my java function. But I get "Unable to
> get >> >> >Database Instance", which I didn't get if I run
> it >> from >> >Java.
> >> >> >
> >> >> >Running from Java, I had to pass in a system
> property. >> >> Like: >Java - classpath ...
> >> >> -Dprimavera.bootstrap.home="C:\Program
> >> >> >Files\Primavera\IntegrationAPI" myJavaprogram >
> >> >> >So I guess there should be some way to set system
> >> >> property >in using EJB.
> >> >> >
> >> >> >Can anyone help?
> >> >> >
> >> >> >Al
> >> >>
> >>
>


Jim O'Neil [Sybase] Posted on 2004-12-03 21:59:22.0Z
From: "Jim O'Neil [Sybase]" <joneil_at_sybase_dot_com>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: System property
Message-ID: <ldo1r0ht4clok556ugemk0ko5mq45424js@4ax.com>
References: <8oc1r0hvfqm3jlbkr7e5pshgrih4adqmmp@4ax.com> <41b0d853.7476.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: joneilw2k.sybase.com
X-Original-NNTP-Posting-Host: joneilw2k.sybase.com
Date: 3 Dec 2004 13:59:22 -0800
X-Trace: forums-1-dub 1102111162 10.18.43.140 (3 Dec 2004 13:59:22 -0800)
X-Original-Trace: 3 Dec 2004 13:59:22 -0800, joneilw2k.sybase.com
Lines: 88
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:405
Article PK: 424580

Excellent!

On 3 Dec 2004 13:19:15 -0800, Al wrote:

>It works! The reason it did work is because I was using the
>download "Converter" version of javavm object.
>Thank you for the help.
>
>> You could make a call into the JVM itself via JNI (an
>> external function declaration) or by loading whatever
>> System class might give you that information if you were
>> in a pure Java environment.
>>
>> On 3 Dec 2004 08:59:42 -0800, Al wrote:
>>
>> >I tried the setting. It still doesn't work. Is there a
>> way >to get the property after calling createjavavm(), so
>> I can >make sure it uses the right value?
>> >
>> >The reason I need this system property is that there is a
>> >xml file in the directory that provides database
>> connection >info to the java program. Since I still get
>> "Unable to get >database instance." I guess EJB still
>> can't provide the >location of the xml file.
>> >
>> >> Chapter 39 in Application Techniques
>> >> (http://sybooks.sybase.com). Add a new string value to
>> >> PBJVMProps called primavera.bootstrap.home and set it's
>> >> value to the directory desired. The PBJVMProps entry
>> is >> essentially a place to list all of the -D options
>> you >> might provide to the java.exe.
>> >>
>> >> If you have a copy of the PB9 Internet and Distributed
>> >> Application Development book, Chapter 23 is a bit more
>> >> explicit about configuration than we have in our doc.
>> >>
>> >> On 3 Dec 2004 06:29:19 -0800, Al wrote:
>> >>
>> >> >Thank you for the advice. But I checked the PB9 help
>> and >> >also online books, I can't find such entries.
>> Where do I >> >find this documentation?
>> >> >However, I did find PBIDEConfig in my registry. There
>> is >> >PBJVMprops. And there are default and java.complier
>> >> entries >in PBJVMprops. Do I set default value to be
>> the >> system >property
>> >> value"-Dprimavera.bootstrap.home="C:\Program
>> >> >Files\Primavera\IntegrationAPI"? >
>> >> >
>> >> >> Check the documentation for PBIDEConfig and
>> PBRTConfig >> >> entries in the registry.
>> >> >>
>> >> >> On 2 Dec 2004 12:46:42 -0800, Al wrote:
>> >> >>
>> >> >> >Is there a way to defind a system property when
>> >> creating >> >Java VM?
>> >> >> >I tried something like follows:
>> >> >> >
>> >> >> >string properties[]
>> >> >> >i_jvm = create javavm
>> >> >> >string classpath
>> >> >> >
>> >> >> >classpath = ""
>> >> >> >
>> >> >> >properties[UpperBound(properties)+1] =
>> >> >> >'-Dprimavera.bootstrap.home="C:\Program
>> >> >> >Files\Primavera\IntegrationAPI"'
>> >> >> >
>> >> >> >i_jvm.createjavavm(classpath,properties)
>> >> >> >
>> >> >> >....
>> >> >> >Then call my java function. But I get "Unable to
>> get >> >> >Database Instance", which I didn't get if I run
>> it >> from >> >Java.
>> >> >> >
>> >> >> >Running from Java, I had to pass in a system
>> property. >> >> Like: >Java - classpath ...
>> >> >> -Dprimavera.bootstrap.home="C:\Program
>> >> >> >Files\Primavera\IntegrationAPI" myJavaprogram >
>> >> >> >So I guess there should be some way to set system
>> >> >> property >in using EJB.
>> >> >> >
>> >> >> >Can anyone help?
>> >> >> >
>> >> >> >Al
>> >> >>
>> >>
>>