RE: EJB using "core" classes?

2000-11-15 Thread Duffey, Kevin

Thanks. That at least clears this up. What if I EAR the whole thing and
deploy the EAR? Would the EJB then be able to see the classes..or at that
wouldn't make any difference?


> -Original Message-
> From: Robert Krueger [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 15, 2000 9:20 AM
> To: Orion-Interest
> Subject: Re: EJB using "core" classes?
> 
> 
> 
> 
> 
> >At any rate..my main question here is, the EJB class in the 
> jar file is
> >referencing the core class. I don't have the core package in 
> the jar file. I
> >thought if I deployed the jar file into the same web-app as the other
> >classes were in, it would have access to these classes. I 
> compile classes to
> >WEB-INF/classes. Is this not the case? Is there some 
> trickery to getting EJB
> >classes to see the WEB-INF/classes?
> 
> no, it's impossible and not meant to be that way.
> 
> two possible cases:
> 
> - your class is not application specific but a general 
> utility in which 
> case you could put it in a library that is specified in the 
> library path of 
> global-application and therefore visible for all web an ejb 
> modules in all 
> application or you have to explicitly put it where the ejb 
> code gets it
> - it is application specific and used by both web an ejb then 
> you have to 
> put it in a separate jar which you reference in 
> orion-application.xml (or 
> the dir it's located in, look at the library element) and it will be 
> visible to both ejb and web modules.
> 
> HTH
> 
> robert
> 
> >Thanks for any help.
> >
> 
> (-) Robert Krüger
> (-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
> (-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
> (-) Tel: 06151 665401, Fax: 06151 665373
> (-) [EMAIL PROTECTED], www.signal7.de
> 




Re: EJB using "core" classes?

2000-11-15 Thread Gerald Gutierrez


Uhh ... isn't this unnecessarily vendor-specific? I've had utility classes 
used by both web and ejb layers and I just stick them with the EJB JAR file 
and things seem to work out fine.

At 06:20 PM 11/15/2000 +0100, you wrote:
>
>
>
>>At any rate..my main question here is, the EJB class in the jar file is
>>referencing the core class. I don't have the core package in the jar file. I
>>thought if I deployed the jar file into the same web-app as the other
>>classes were in, it would have access to these classes. I compile classes to
>>WEB-INF/classes. Is this not the case? Is there some trickery to getting EJB
>>classes to see the WEB-INF/classes?
>
>no, it's impossible and not meant to be that way.
>
>two possible cases:
>
>- your class is not application specific but a general utility in which 
>case you could put it in a library that is specified in the library path 
>of global-application and therefore visible for all web an ejb modules in 
>all application or you have to explicitly put it where the ejb code gets it
>- it is application specific and used by both web an ejb then you have to 
>put it in a separate jar which you reference in orion-application.xml (or 
>the dir it's located in, look at the library element) and it will be 
>visible to both ejb and web modules.
>
>HTH
>
>robert
>
>>Thanks for any help.
>
>(-) Robert Krüger
>(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
>(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
>(-) Tel: 06151 665401, Fax: 06151 665373
>(-) [EMAIL PROTECTED], www.signal7.de






Re: EJB using "core" classes?

2000-11-15 Thread Robert Krueger




>At any rate..my main question here is, the EJB class in the jar file is
>referencing the core class. I don't have the core package in the jar file. I
>thought if I deployed the jar file into the same web-app as the other
>classes were in, it would have access to these classes. I compile classes to
>WEB-INF/classes. Is this not the case? Is there some trickery to getting EJB
>classes to see the WEB-INF/classes?

no, it's impossible and not meant to be that way.

two possible cases:

- your class is not application specific but a general utility in which 
case you could put it in a library that is specified in the library path of 
global-application and therefore visible for all web an ejb modules in all 
application or you have to explicitly put it where the ejb code gets it
- it is application specific and used by both web an ejb then you have to 
put it in a separate jar which you reference in orion-application.xml (or 
the dir it's located in, look at the library element) and it will be 
visible to both ejb and web modules.

HTH

robert

>Thanks for any help.
>

(-) Robert Krüger
(-) SIGNAL 7 Gesellschaft für Informationstechnologie mbH
(-) Brüder-Knauß-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





EJB using "core" classes?

2000-11-15 Thread Kevin Duffey

Hi all,

I am attempting (again) deploying EJB. While I think I have the pricipals
down, (still trying to figure out JNDI properties..what they are for), I am
confused about one thing. I have an application named ss. In Orion I have
set the path to c:\ss. There is the META-INF dir, which I have
application.xml in..that points has  ss.jar . It
also has my web module in it that points to www (from ss..so ss/www). I
compile my ejb (a simple login ejb) which seems to be ok. In the ss.jar, I
have the META-INF dir with ejb-jar.xml in it accessing my
com.ss.ejb.login.LoginXXX classes. These are Stateless session classes. I
also have in the ejb-jar.xml file the
com/ss/ejb/login/LoginSessionEJB.class, and so on. So when I start up Orion,
it shows its deploying the EJB, however..it says it can't find class
core/login/Login.class. Now..in my package, I have ss.core, ss.ejb, and
ss.ui. ss.core.login.Login is a "bean" that I will use in both the EJB
entity class, and my UI javabean class. I don't know if this is the wrong
way to do it, but I figure..why put the same getter/setter methods twice (in
both the UI javabean class that gets/sets the JSP page form info, and the
EJB class that loads/stores the same info). I am not too familiar with EJB
just yet, but I see no reason why this wouldn't work. In my entity bean, I
would somehow reference the core.login.Login class, and use that reference
to load/store the entity. Can that even be done? Or is the only way to get
entity beans via CMP to work is directly have the methods in the entity? I
would think if my methods that are used to load/store the entity use the
reference to get/set the fields of the reference Login, this should be ok.

At any rate..my main question here is, the EJB class in the jar file is
referencing the core class. I don't have the core package in the jar file. I
thought if I deployed the jar file into the same web-app as the other
classes were in, it would have access to these classes. I compile classes to
WEB-INF/classes. Is this not the case? Is there some trickery to getting EJB
classes to see the WEB-INF/classes?

Thanks for any help.