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.

EJBConnection.CreateJavaInstance: where exactly is java class instantiated?

7 posts in EJB Client Last posting was on 2004-03-08 08:51:45.0Z
bede Posted on 2004-03-04 08:16:12.0Z
From: "bede" <bedenosp@m.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <4046e5cc$1@forums-1-dub>
Date: 4 Mar 2004 00:16:12 -0800
X-Trace: forums-1-dub 1078388172 194.7.38.226 (4 Mar 2004 00:16:12 -0800)
X-Original-Trace: 4 Mar 2004 00:16:12 -0800, uu194-7-38-226.unknown.uunet.be
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:252
Article PK: 424435

PB 9.0.1 7096 and EAServer.

I've found out that, in order to create instances of proxy objects you need
to use the CreateJavaInstance

eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")

Firstly, i was wondering why this function is on the EJBConnection, i
expected it to be on the Java VM instead.
Secondly, i was assuming that because it's on the EJBConnection, the java
class is actually instantiated on the server.
I tried the following:
1. Connect (EJBConnection) to server
2. Get a valid CalendarData thru EJB
3. Stop the server
4. Try CreateJavaInstance()
=> i expected this to fail but the funny thing is that CreateJavaInstance
still works fine, so one would think it's created locally. I'm a bit
confused now.. because the java classes actually reside on the server.

Could somebody (Jim?) explain what really happens?

Thanks,

ben


Jim O'Neil [Sybase] Posted on 2004-03-04 18:53:01.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40477643.8968716@forums.sybase.com>
References: <4046e5cc$1@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 4 Mar 2004 10:53:01 -0800
X-Trace: forums-1-dub 1078426381 10.18.63.187 (4 Mar 2004 10:53:01 -0800)
X-Original-Trace: 4 Mar 2004 10:53:01 -0800, joneilpc.sybase.com
Lines: 46
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:253
Article PK: 424438

As you discovered, you don't need a connection to a EJB server and
indeed the instance is created locally.

During the PB9 beta, I asked the same question about why
CreateJavaInstance is on the EJBConnection object, and the response -
which I didn't really pursue in depth with engineering - had to do
with making sure that we didn't cause a resource leak. I suspect it
has to do with the way they architected the PBNI extension. I don't
believe it's the 'right' way either, but since it worked and there
were other more critical issues to address at the time, I really
didn't push it any further.

On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:

>PB 9.0.1 7096 and EAServer.
>
>I've found out that, in order to create instances of proxy objects you need
>to use the CreateJavaInstance
>
>eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
>
>Firstly, i was wondering why this function is on the EJBConnection, i
>expected it to be on the Java VM instead.
>Secondly, i was assuming that because it's on the EJBConnection, the java
>class is actually instantiated on the server.
>I tried the following:
>1. Connect (EJBConnection) to server
>2. Get a valid CalendarData thru EJB
>3. Stop the server
>4. Try CreateJavaInstance()
>=> i expected this to fail but the funny thing is that CreateJavaInstance
>still works fine, so one would think it's created locally. I'm a bit
>confused now.. because the java classes actually reside on the server.
>
>Could somebody (Jim?) explain what really happens?
>
>Thanks,
>
>ben
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


bede Posted on 2004-03-05 13:35:31.0Z
From: "bede" <bedenosp@m.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <4046e5cc$1@forums-1-dub> <40477643.8968716@forums.sybase.com>
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Lines: 79
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <40488223$1@forums-1-dub>
Date: 5 Mar 2004 05:35:31 -0800
X-Trace: forums-1-dub 1078493731 194.7.38.226 (5 Mar 2004 05:35:31 -0800)
X-Original-Trace: 5 Mar 2004 05:35:31 -0800, uu194-7-38-226.unknown.uunet.be
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:254
Article PK: 424437

so that's probably something we'll be stuck with for some time.
thanks for the info Jim.

still, if it can be done, why don't they mask this CreateJavaInstance behind
the normal PB CREATE?

I think some more supporting features or functions are needed too:
- lpo.isProxyObject() => find out whether you have a proxy nonvisual or
native PB nonvisual
- a normal PB create on proxy shd give a compile error
- a CreateJavaInstance on native PB nonvisual shd give a compile error

Also, because of the architecture (accessing an attribute thru dot-notation
is translated in __getX and __setX) you cannot refer to an arrayed element
anymore in such a proxy.
e.g. myParameter.myArrayElement[1].myIntAttribute = 1
myParameter.myArrayElement[1].mySubElement[3].anotherIntAttribute = 0

- debugger: all values of proxies show null, but do contain a valid value
which isn't null
- isNull() doesn't seem to work flawlessly on proxies


Overcoming these in PB 10 (in the beta it's still the same) would be so kind
of development..

Ben

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:40477643.8968716@forums.sybase.com...
> As you discovered, you don't need a connection to a EJB server and
> indeed the instance is created locally.
>
> During the PB9 beta, I asked the same question about why
> CreateJavaInstance is on the EJBConnection object, and the response -
> which I didn't really pursue in depth with engineering - had to do
> with making sure that we didn't cause a resource leak. I suspect it
> has to do with the way they architected the PBNI extension. I don't
> believe it's the 'right' way either, but since it worked and there
> were other more critical issues to address at the time, I really
> didn't push it any further.
>
> On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>
> >PB 9.0.1 7096 and EAServer.
> >
> >I've found out that, in order to create instances of proxy objects you
need
> >to use the CreateJavaInstance
> >
> >eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
> >
> >Firstly, i was wondering why this function is on the EJBConnection, i
> >expected it to be on the Java VM instead.
> >Secondly, i was assuming that because it's on the EJBConnection, the java
> >class is actually instantiated on the server.
> >I tried the following:
> >1. Connect (EJBConnection) to server
> >2. Get a valid CalendarData thru EJB
> >3. Stop the server
> >4. Try CreateJavaInstance()
> >=> i expected this to fail but the funny thing is that CreateJavaInstance
> >still works fine, so one would think it's created locally. I'm a bit
> >confused now.. because the java classes actually reside on the server.
> >
> >Could somebody (Jim?) explain what really happens?
> >
> >Thanks,
> >
> >ben
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2004-03-05 14:19:41.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <40488be4.1087243@forums.sybase.com>
References: <4046e5cc$1@forums-1-dub> <40477643.8968716@forums.sybase.com> <40488223$1@forums-1-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: joneilpc.sybase.com
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
Date: 5 Mar 2004 06:19:41 -0800
X-Trace: forums-1-dub 1078496381 10.18.63.187 (5 Mar 2004 06:19:41 -0800)
X-Original-Trace: 5 Mar 2004 06:19:41 -0800, joneilpc.sybase.com
Lines: 94
X-Authenticated-User: TeamPS
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:255
Article PK: 424436

Ben,

You have some good ideas here, along with some bug it appears as far
as the debugger goes. Please open some cases, especially on the bugs,
so we can get those addressed for PB10.

Thanks

On 5 Mar 2004 05:35:31 -0800, "bede" <bedenosp@m.sofico.be> wrote:

>so that's probably something we'll be stuck with for some time.
>thanks for the info Jim.
>
>still, if it can be done, why don't they mask this CreateJavaInstance behind
>the normal PB CREATE?
>
>I think some more supporting features or functions are needed too:
>- lpo.isProxyObject() => find out whether you have a proxy nonvisual or
>native PB nonvisual
>- a normal PB create on proxy shd give a compile error
>- a CreateJavaInstance on native PB nonvisual shd give a compile error
>
>Also, because of the architecture (accessing an attribute thru dot-notation
>is translated in __getX and __setX) you cannot refer to an arrayed element
>anymore in such a proxy.
>e.g. myParameter.myArrayElement[1].myIntAttribute = 1
>myParameter.myArrayElement[1].mySubElement[3].anotherIntAttribute = 0
>
>- debugger: all values of proxies show null, but do contain a valid value
>which isn't null
>- isNull() doesn't seem to work flawlessly on proxies
>
>
>Overcoming these in PB 10 (in the beta it's still the same) would be so kind
>of development..
>
>Ben
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:40477643.8968716@forums.sybase.com...
>> As you discovered, you don't need a connection to a EJB server and
>> indeed the instance is created locally.
>>
>> During the PB9 beta, I asked the same question about why
>> CreateJavaInstance is on the EJBConnection object, and the response -
>> which I didn't really pursue in depth with engineering - had to do
>> with making sure that we didn't cause a resource leak. I suspect it
>> has to do with the way they architected the PBNI extension. I don't
>> believe it's the 'right' way either, but since it worked and there
>> were other more critical issues to address at the time, I really
>> didn't push it any further.
>>
>> On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>>
>> >PB 9.0.1 7096 and EAServer.
>> >
>> >I've found out that, in order to create instances of proxy objects you
>need
>> >to use the CreateJavaInstance
>> >
>> >eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
>> >
>> >Firstly, i was wondering why this function is on the EJBConnection, i
>> >expected it to be on the Java VM instead.
>> >Secondly, i was assuming that because it's on the EJBConnection, the java
>> >class is actually instantiated on the server.
>> >I tried the following:
>> >1. Connect (EJBConnection) to server
>> >2. Get a valid CalendarData thru EJB
>> >3. Stop the server
>> >4. Try CreateJavaInstance()
>> >=> i expected this to fail but the funny thing is that CreateJavaInstance
>> >still works fine, so one would think it's created locally. I'm a bit
>> >confused now.. because the java classes actually reside on the server.
>> >
>> >Could somebody (Jim?) explain what really happens?
>> >
>> >Thanks,
>> >
>> >ben
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


bede Posted on 2004-03-05 16:05:53.0Z
From: "bede" <bedenosp@m.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <4046e5cc$1@forums-1-dub> <40477643.8968716@forums.sybase.com> <40488223$1@forums-1-dub> <40488be4.1087243@forums.sybase.com>
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Lines: 113
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <4048a592@forums-2-dub>
X-Original-Trace: 5 Mar 2004 08:06:42 -0800, uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 5 Mar 2004 08:04:22 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 5 Mar 2004 08:05:53 -0800
X-Trace: forums-1-dub 1078502753 10.22.108.75 (5 Mar 2004 08:05:53 -0800)
X-Original-Trace: 5 Mar 2004 08:05:53 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:256
Article PK: 424439

the bugs were already done.. but we're having a bit of a problem with our
support contract..
FYI: Case/Subcase ID: 20340238 and CR348037
the new ideas i'll post on monday (am still learning)

have a nice weekend,

Ben

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:40488be4.1087243@forums.sybase.com...
> Ben,
>
> You have some good ideas here, along with some bug it appears as far
> as the debugger goes. Please open some cases, especially on the bugs,
> so we can get those addressed for PB10.
>
> Thanks
>
> On 5 Mar 2004 05:35:31 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>
> >so that's probably something we'll be stuck with for some time.
> >thanks for the info Jim.
> >
> >still, if it can be done, why don't they mask this CreateJavaInstance
behind
> >the normal PB CREATE?
> >
> >I think some more supporting features or functions are needed too:
> >- lpo.isProxyObject() => find out whether you have a proxy nonvisual or
> >native PB nonvisual
> >- a normal PB create on proxy shd give a compile error
> >- a CreateJavaInstance on native PB nonvisual shd give a compile error
> >
> >Also, because of the architecture (accessing an attribute thru
dot-notation
> >is translated in __getX and __setX) you cannot refer to an arrayed
element
> >anymore in such a proxy.
> >e.g. myParameter.myArrayElement[1].myIntAttribute = 1
> >myParameter.myArrayElement[1].mySubElement[3].anotherIntAttribute = 0
> >
> >- debugger: all values of proxies show null, but do contain a valid value
> >which isn't null
> >- isNull() doesn't seem to work flawlessly on proxies
> >
> >
> >Overcoming these in PB 10 (in the beta it's still the same) would be so
kind
> >of development..
> >
> >Ben
> >
> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >news:40477643.8968716@forums.sybase.com...
> >> As you discovered, you don't need a connection to a EJB server and
> >> indeed the instance is created locally.
> >>
> >> During the PB9 beta, I asked the same question about why
> >> CreateJavaInstance is on the EJBConnection object, and the response -
> >> which I didn't really pursue in depth with engineering - had to do
> >> with making sure that we didn't cause a resource leak. I suspect it
> >> has to do with the way they architected the PBNI extension. I don't
> >> believe it's the 'right' way either, but since it worked and there
> >> were other more critical issues to address at the time, I really
> >> didn't push it any further.
> >>
> >> On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:
> >>
> >> >PB 9.0.1 7096 and EAServer.
> >> >
> >> >I've found out that, in order to create instances of proxy objects you
> >need
> >> >to use the CreateJavaInstance
> >> >
> >> >eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
> >> >
> >> >Firstly, i was wondering why this function is on the EJBConnection, i
> >> >expected it to be on the Java VM instead.
> >> >Secondly, i was assuming that because it's on the EJBConnection, the
java
> >> >class is actually instantiated on the server.
> >> >I tried the following:
> >> >1. Connect (EJBConnection) to server
> >> >2. Get a valid CalendarData thru EJB
> >> >3. Stop the server
> >> >4. Try CreateJavaInstance()
> >> >=> i expected this to fail but the funny thing is that
CreateJavaInstance
> >> >still works fine, so one would think it's created locally. I'm a bit
> >> >confused now.. because the java classes actually reside on the server.
> >> >
> >> >Could somebody (Jim?) explain what really happens?
> >> >
> >> >Thanks,
> >> >
> >> >ben
> >> >
> >> >
> >>
> >> Jim O'Neil
> >> Principal Technical Support Engineer
> >> Sybase, Inc.
> >> Concord, MA
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA


Jim O'Neil [Sybase] Posted on 2004-03-05 20:49:00.0Z
From: joneil@sybase.com (Jim O'Neil [Sybase])
Newsgroups: sybase.public.powerbuilder.ejbclient
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Organization: Sybase Technical Support
Reply-To: joneil_REMOVETHISPART@sybase.com
Message-ID: <4048e74a.24484136@forums.sybase.com>
References: <4046e5cc$1@forums-1-dub> <40477643.8968716@forums.sybase.com> <40488223$1@forums-1-dub> <40488be4.1087243@forums.sybase.com> <4048a592@forums-2-dub>
X-Newsreader: Forte Free Agent 1.21/32.243
X-Original-NNTP-Posting-Host: joneilpc.sybase.com
X-Original-Trace: 5 Mar 2004 12:49:49 -0800, joneilpc.sybase.com
Lines: 123
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 5 Mar 2004 12:47:28 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 5 Mar 2004 12:49:00 -0800
X-Trace: forums-1-dub 1078519740 10.22.108.75 (5 Mar 2004 12:49:00 -0800)
X-Original-Trace: 5 Mar 2004 12:49:00 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:257
Article PK: 424441

well, if you're on the beta program there shouldn't be an issue with
support contracts?

On 5 Mar 2004 08:05:53 -0800, "bede" <bedenosp@m.sofico.be> wrote:

>the bugs were already done.. but we're having a bit of a problem with our
>support contract..
>FYI: Case/Subcase ID: 20340238 and CR348037
>the new ideas i'll post on monday (am still learning)
>
>have a nice weekend,
>
>Ben
>
>"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>news:40488be4.1087243@forums.sybase.com...
>> Ben,
>>
>> You have some good ideas here, along with some bug it appears as far
>> as the debugger goes. Please open some cases, especially on the bugs,
>> so we can get those addressed for PB10.
>>
>> Thanks
>>
>> On 5 Mar 2004 05:35:31 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>>
>> >so that's probably something we'll be stuck with for some time.
>> >thanks for the info Jim.
>> >
>> >still, if it can be done, why don't they mask this CreateJavaInstance
>behind
>> >the normal PB CREATE?
>> >
>> >I think some more supporting features or functions are needed too:
>> >- lpo.isProxyObject() => find out whether you have a proxy nonvisual or
>> >native PB nonvisual
>> >- a normal PB create on proxy shd give a compile error
>> >- a CreateJavaInstance on native PB nonvisual shd give a compile error
>> >
>> >Also, because of the architecture (accessing an attribute thru
>dot-notation
>> >is translated in __getX and __setX) you cannot refer to an arrayed
>element
>> >anymore in such a proxy.
>> >e.g. myParameter.myArrayElement[1].myIntAttribute = 1
>> >myParameter.myArrayElement[1].mySubElement[3].anotherIntAttribute = 0
>> >
>> >- debugger: all values of proxies show null, but do contain a valid value
>> >which isn't null
>> >- isNull() doesn't seem to work flawlessly on proxies
>> >
>> >
>> >Overcoming these in PB 10 (in the beta it's still the same) would be so
>kind
>> >of development..
>> >
>> >Ben
>> >
>> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
>> >news:40477643.8968716@forums.sybase.com...
>> >> As you discovered, you don't need a connection to a EJB server and
>> >> indeed the instance is created locally.
>> >>
>> >> During the PB9 beta, I asked the same question about why
>> >> CreateJavaInstance is on the EJBConnection object, and the response -
>> >> which I didn't really pursue in depth with engineering - had to do
>> >> with making sure that we didn't cause a resource leak. I suspect it
>> >> has to do with the way they architected the PBNI extension. I don't
>> >> believe it's the 'right' way either, but since it worked and there
>> >> were other more critical issues to address at the time, I really
>> >> didn't push it any further.
>> >>
>> >> On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>> >>
>> >> >PB 9.0.1 7096 and EAServer.
>> >> >
>> >> >I've found out that, in order to create instances of proxy objects you
>> >need
>> >> >to use the CreateJavaInstance
>> >> >
>> >> >eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
>> >> >
>> >> >Firstly, i was wondering why this function is on the EJBConnection, i
>> >> >expected it to be on the Java VM instead.
>> >> >Secondly, i was assuming that because it's on the EJBConnection, the
>java
>> >> >class is actually instantiated on the server.
>> >> >I tried the following:
>> >> >1. Connect (EJBConnection) to server
>> >> >2. Get a valid CalendarData thru EJB
>> >> >3. Stop the server
>> >> >4. Try CreateJavaInstance()
>> >> >=> i expected this to fail but the funny thing is that
>CreateJavaInstance
>> >> >still works fine, so one would think it's created locally. I'm a bit
>> >> >confused now.. because the java classes actually reside on the server.
>> >> >
>> >> >Could somebody (Jim?) explain what really happens?
>> >> >
>> >> >Thanks,
>> >> >
>> >> >ben
>> >> >
>> >> >
>> >>
>> >> Jim O'Neil
>> >> Principal Technical Support Engineer
>> >> Sybase, Inc.
>> >> Concord, MA
>> >
>> >
>>
>> Jim O'Neil
>> Principal Technical Support Engineer
>> Sybase, Inc.
>> Concord, MA
>
>

Jim O'Neil
Principal Technical Support Engineer
Sybase, Inc.
Concord, MA


bede Posted on 2004-03-08 08:51:45.0Z
From: "bede" <bedenosp@m.sofico.be>
Newsgroups: sybase.public.powerbuilder.ejbclient
References: <4046e5cc$1@forums-1-dub> <40477643.8968716@forums.sybase.com> <40488223$1@forums-1-dub> <40488be4.1087243@forums.sybase.com> <4048a592@forums-2-dub> <4048e74a.24484136@forums.sybase.com>
Subject: Re: EJBConnection.CreateJavaInstance: where exactly is java class instantiated?
Lines: 141
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
X-Original-NNTP-Posting-Host: uu194-7-38-226.unknown.uunet.be
Message-ID: <404c3421$1@forums-1-dub>
Date: 8 Mar 2004 00:51:45 -0800
X-Trace: forums-1-dub 1078735905 194.7.38.226 (8 Mar 2004 00:51:45 -0800)
X-Original-Trace: 8 Mar 2004 00:51:45 -0800, uu194-7-38-226.unknown.uunet.be
X-Authenticated-User: pbtenbeta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.ejbclient:258
Article PK: 424440

indeed..
bugs are reported in case 11011164, the enchancement requests i didn't get a
number for, but they're there.

"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
news:4048e74a.24484136@forums.sybase.com...
> well, if you're on the beta program there shouldn't be an issue with
> support contracts?
>
> On 5 Mar 2004 08:05:53 -0800, "bede" <bedenosp@m.sofico.be> wrote:
>
> >the bugs were already done.. but we're having a bit of a problem with our
> >support contract..
> >FYI: Case/Subcase ID: 20340238 and CR348037
> >the new ideas i'll post on monday (am still learning)
> >
> >have a nice weekend,
> >
> >Ben
> >
> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >news:40488be4.1087243@forums.sybase.com...
> >> Ben,
> >>
> >> You have some good ideas here, along with some bug it appears as far
> >> as the debugger goes. Please open some cases, especially on the bugs,
> >> so we can get those addressed for PB10.
> >>
> >> Thanks
> >>
> >> On 5 Mar 2004 05:35:31 -0800, "bede" <bedenosp@m.sofico.be> wrote:
> >>
> >> >so that's probably something we'll be stuck with for some time.
> >> >thanks for the info Jim.
> >> >
> >> >still, if it can be done, why don't they mask this CreateJavaInstance
> >behind
> >> >the normal PB CREATE?
> >> >
> >> >I think some more supporting features or functions are needed too:
> >> >- lpo.isProxyObject() => find out whether you have a proxy nonvisual
or
> >> >native PB nonvisual
> >> >- a normal PB create on proxy shd give a compile error
> >> >- a CreateJavaInstance on native PB nonvisual shd give a compile error
> >> >
> >> >Also, because of the architecture (accessing an attribute thru
> >dot-notation
> >> >is translated in __getX and __setX) you cannot refer to an arrayed
> >element
> >> >anymore in such a proxy.
> >> >e.g. myParameter.myArrayElement[1].myIntAttribute = 1
> >> >myParameter.myArrayElement[1].mySubElement[3].anotherIntAttribute = 0
> >> >
> >> >- debugger: all values of proxies show null, but do contain a valid
value
> >> >which isn't null
> >> >- isNull() doesn't seem to work flawlessly on proxies
> >> >
> >> >
> >> >Overcoming these in PB 10 (in the beta it's still the same) would be
so
> >kind
> >> >of development..
> >> >
> >> >Ben
> >> >
> >> >"Jim O'Neil [Sybase]" <joneil@sybase.com> wrote in message
> >> >news:40477643.8968716@forums.sybase.com...
> >> >> As you discovered, you don't need a connection to a EJB server and
> >> >> indeed the instance is created locally.
> >> >>
> >> >> During the PB9 beta, I asked the same question about why
> >> >> CreateJavaInstance is on the EJBConnection object, and the
response -
> >> >> which I didn't really pursue in depth with engineering - had to do
> >> >> with making sure that we didn't cause a resource leak. I suspect it
> >> >> has to do with the way they architected the PBNI extension. I don't
> >> >> believe it's the 'right' way either, but since it worked and there
> >> >> were other more critical issues to address at the time, I really
> >> >> didn't push it any further.
> >> >>
> >> >> On 4 Mar 2004 00:16:12 -0800, "bede" <bedenosp@m.sofico.be> wrote:
> >> >>
> >> >> >PB 9.0.1 7096 and EAServer.
> >> >> >
> >> >> >I've found out that, in order to create instances of proxy objects
you
> >> >need
> >> >> >to use the CreateJavaInstance
> >> >> >
> >> >> >eg. EJBConnection.CreateJavaInstance(la_calendar, "CalendarData")
> >> >> >
> >> >> >Firstly, i was wondering why this function is on the EJBConnection,
i
> >> >> >expected it to be on the Java VM instead.
> >> >> >Secondly, i was assuming that because it's on the EJBConnection,
the
> >java
> >> >> >class is actually instantiated on the server.
> >> >> >I tried the following:
> >> >> >1. Connect (EJBConnection) to server
> >> >> >2. Get a valid CalendarData thru EJB
> >> >> >3. Stop the server
> >> >> >4. Try CreateJavaInstance()
> >> >> >=> i expected this to fail but the funny thing is that
> >CreateJavaInstance
> >> >> >still works fine, so one would think it's created locally. I'm a
bit
> >> >> >confused now.. because the java classes actually reside on the
server.
> >> >> >
> >> >> >Could somebody (Jim?) explain what really happens?
> >> >> >
> >> >> >Thanks,
> >> >> >
> >> >> >ben
> >> >> >
> >> >> >
> >> >>
> >> >> Jim O'Neil
> >> >> Principal Technical Support Engineer
> >> >> Sybase, Inc.
> >> >> Concord, MA
> >> >
> >> >
> >>
> >> Jim O'Neil
> >> Principal Technical Support Engineer
> >> Sybase, Inc.
> >> Concord, MA
> >
> >
>
> Jim O'Neil
> Principal Technical Support Engineer
> Sybase, Inc.
> Concord, MA