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.

Display messages to the db-console from uploaded java class

2 posts in General Discussion Last posting was on 2008-06-26 20:10:58.0Z
Bert Belaen Posted on 2008-06-26 13:30:33.0Z
Sender: 4c9c.486207e8.1804289383@sybase.com
From: Bert Belaen
Newsgroups: ianywhere.public.general
Subject: Display messages to the db-console from uploaded java class
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <486399f9.664.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 26 Jun 2008 06:30:33 -0700
X-Trace: forums-1-dub 1214487033 10.22.241.41 (26 Jun 2008 06:30:33 -0700)
X-Original-Trace: 26 Jun 2008 06:30:33 -0700, 10.22.241.41
Lines: 13
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:6936
Article PK: 5162

We're going to upgrade our Adaptive Server Database 7.0 to
SqlAnywhere v.10. We've put a lot of our business-rules into
the database, using Java. In ASA 7.0, the JVM resides into
the database-engine. When we then used System.out.print()
the text was displayed in the console of the database.

In version 10, the JVM stays outside the database. When we
use System.out.print(), the text doesn't get redirected to
the console anymore.
Does anyone know how we can display messages into the
console, from within our java-classes which are uploaded to
the database ? Is there any package that must be imported
or so ?


Breck Carter [sqlanywhere.blogspot.com] Posted on 2008-06-26 20:10:58.0Z
From: "Breck Carter [sqlanywhere.blogspot.com]" <NOSPAM__breck.carter@gmail.com>
Newsgroups: ianywhere.public.general
Subject: Re: Display messages to the db-console from uploaded java class
Organization: RisingRoad Professional Services
Reply-To: NOSPAM__breck.carter@gmail.com
Message-ID: <qrt764p70fp21p732f11q3jmv583faqqmo@4ax.com>
References: <486399f9.664.1681692777@sybase.com>
X-Newsreader: Forte Agent 2.0/32.640
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 26 Jun 2008 13:10:58 -0700
X-Trace: forums-1-dub 1214511058 10.22.241.152 (26 Jun 2008 13:10:58 -0700)
X-Original-Trace: 26 Jun 2008 13:10:58 -0700, vip152.sybase.com
Lines: 26
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:6938
Article PK: 5165

Try building a SQL Anywhere MESSAGE statement in a string and then
call Statement.execute.

Breck

On 26 Jun 2008 06:30:33 -0700, Bert Belaen wrote:

>We're going to upgrade our Adaptive Server Database 7.0 to
>SqlAnywhere v.10. We've put a lot of our business-rules into
>the database, using Java. In ASA 7.0, the JVM resides into
>the database-engine. When we then used System.out.print()
>the text was displayed in the console of the database.
>
>In version 10, the JVM stays outside the database. When we
>use System.out.print(), the text doesn't get redirected to
>the console anymore.
>Does anyone know how we can display messages into the
>console, from within our java-classes which are uploaded to
>the database ? Is there any package that must be imported
>or so ?

--
Breck Carter http://sqlanywhere.blogspot.com/

RisingRoad SQL Anywhere and MobiLink Professional Services
breck.carter@risingroad.com