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.

EJB, inheritance and Jaguar

2 posts in General Discussion (old) Last posting was on 2000-03-01 05:36:40.0Z
Andreas S. Brunvoll Posted on 2000-02-29 17:33:39.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 18:33:39 +0100
From: "Andreas S. Brunvoll" <abr@avenir.no>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
Subject: EJB, inheritance and Jaguar
Content-Type: multipart/alternative; boundary="------------104AD9BC13F4969197BDAE7B"
Lines: 60
NNTP-Posting-Host: 139.108.179.131
Message-ID: <347_38BC02F3.DE7C8E1E@avenir.no>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27489
Article PK: 158877

Hello

I am building an ejb-based application. To avoid typing the same code over and over again for getting an db-connection I have implemented a class (standard java-bean) which  all my Ejb's extends. This compiles allright, but when I am trying to  deploy the components to Jaguar, I  the following error:

_sk_Bmw_test_Test.java:0: Class no.posten.bmw.test.server.BmwBean not found in class no.posten.bmw.test.server.TestBean.
package no.posten.bmw.test.server;
^
1 error

BmwBean is my base javabean, and TestBean is an Entity-EJB.

Does not Jaguar support inheritance in EJB's. I am very well aware that the EJB-spec. is said not to support inheritance, but to my knowledge that is regarding the specification of the Home-interface.

There is also no way to change base-class for an EJB in the PowerJ development IDE, all my classes is imported into the IDE. Is this for the same reason?

Regards

Andreas S. Brunvoll
abr@avenir.no
 


Dave Wolf [Sybase] Posted on 2000-03-01 05:36:40.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EJB, inheritance and Jaguar
Date: Wed, 1 Mar 2000 00:36:40 -0500
Lines: 108
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_0042_01BF8316.35B70810"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: PPPa8-ResaleDialinx80013-4R7207.saturn.bbn.com 4.54.159.69
Message-ID: <347_stAnnC0g$GA.295@forums.sybase.com>
References: <347_38BC02F3.DE7C8E1E@avenir.no>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27454
Article PK: 158851

Make sure the superclass is in Jaguar's and JaguarManager's CLASSPATH.
 
The issue with PowerJ not letting you specify the extends attribute is a bug and is being fixed.

Dave Wolf
Internet Applications Division
 
"Andreas S. Brunvoll" <abr@avenir.no> wrote in message news:38BC02F3.DE7C8E1E@avenir.no...
Hello

I am building an ejb-based application. To avoid typing the same code over and over again for getting an db-connection I have implemented a class (standard java-bean) which  all my Ejb's extends. This compiles allright, but when I am trying to  deploy the components to Jaguar, I  the following error:

_sk_Bmw_test_Test.java:0: Class no.posten.bmw.test.server.BmwBean not found in class no.posten.bmw.test.server.TestBean.
package no.posten.bmw.test.server;
^
1 error

BmwBean is my base javabean, and TestBean is an Entity-EJB.

Does not Jaguar support inheritance in EJB's. I am very well aware that the EJB-spec. is said not to support inheritance, but to my knowledge that is regarding the specification of the Home-interface.

There is also no way to change base-class for an EJB in the PowerJ development IDE, all my classes is imported into the IDE. Is this for the same reason?

Regards

Andreas S. Brunvoll
abr@avenir.no