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.

SA11 - Able to invoke Java non-static method?

2 posts in General Discussion (old) Last posting was on 2009-09-25 17:31:42.0Z
anon Posted on 2009-09-25 16:36:42.0Z
From: "anon" <mnovak@sybase.com>
Newsgroups: sybase.public.sqlanywhere
Subject: SA11 - Able to invoke Java non-static method?
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4abcf19a@forums-1-dub>
Date: 25 Sep 2009 09:36:42 -0700
X-Trace: forums-1-dub 1253896602 10.22.241.152 (25 Sep 2009 09:36:42 -0700)
X-Original-Trace: 25 Sep 2009 09:36:42 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere:300
Article PK: 866733

Looking for an example of how to invoke a non-static Java methods from a
SP - assuming the Java class has already been registered in the database.

Has anyone done this before?

SQL Anywhere v11.0.1.2250
Windows Server 2003 R2 SE SP2
Java 1.5.0_19-b02

Thanks


"Kory Hodgson (Sybase iAnywhere)" <khodgson Posted on 2009-09-25 17:31:42.0Z
From: "Kory Hodgson (Sybase iAnywhere)" <khodgson@A_SPAM_FREE_sybase.com>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
Newsgroups: sybase.public.sqlanywhere
Subject: Re: SA11 - Able to invoke Java non-static method?
References: <4abcf19a@forums-1-dub>
In-Reply-To: <4abcf19a@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4abcfe7e$1@forums-1-dub>
Date: 25 Sep 2009 10:31:42 -0700
X-Trace: forums-1-dub 1253899902 10.22.241.152 (25 Sep 2009 10:31:42 -0700)
X-Original-Trace: 25 Sep 2009 10:31:42 -0700, vip152.sybase.com
Lines: 26
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.sqlanywhere:301
Article PK: 866734

I'm not sure this is actually possible.

In order to invoke a non-static method you need an instance of the
object, but how would you create an instance of the object with SQL?

Since you need to be in Java before you can create an instance of an
object the entry call must therefore be static.

If anyone knows of a way to do this please let me know, but to the best
of my knowledge that does not seem possible.

anon wrote:
> Looking for an example of how to invoke a non-static Java methods from a
> SP - assuming the Java class has already been registered in the database.
>
> Has anyone done this before?
>
> SQL Anywhere v11.0.1.2250
> Windows Server 2003 R2 SE SP2
> Java 1.5.0_19-b02
>
> Thanks
>
>
>