Re: OR?

2000-11-11 Thread Sunil Khandwala

Couldn't find the article at that link, but did find it at:
http://www.ksccary.com/article1.htm
Its a nice article. Thanks for the pointer.

--Sunil
[EMAIL PROTECTED]

PS. Sean, remember me from Netqotient?


-Original Message-
From: Sean P. McNamara <[EMAIL PROTECTED]>
To: Orion-Interest <[EMAIL PROTECTED]>
Date: Saturday, November 11, 2000 2:35 PM
Subject: OR?


>
>Hi Gerald-
>
>Perhaps the most widely read paper on the topic is "Crossing Chasms"
>by Kyle Brown & Bruce Whitenack.
>
>You can find it at:
>
> http://www.ksccary.com/Page15.htm
>
>
>Gerald Gutierrez writes:
> >
> > Lately lots of people have been talking about "object relations" and
> > one-to-many mapping and such things as it pertains to EJB2.0.
> >
> > I'm not familiar with these concepts, and so am unable to follow the
ongoing
> > discussions. Can someone point me someplace where I can find some good
> > (possibly concise) information about it?
> >
> > Thanks.
> >
> >
> >
>
>--
>Sean P. McNamara <[EMAIL PROTECTED]>
>SOMA Technologies, Inc. <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
>





Re: Newbie Q: Can't find bean?

2000-11-11 Thread Sean P. McNamara


Thanks for your reply Robert, however I don't really feel it's fair
for you to have judged me ignorant of both Java and the J2EE in
general.  I've done quite a bit of development with session beans, but 
very little front-end (read JSP) development, and no EntityBean work,
as it wasn't supported by the EJB (1.0) containers we were working
with.

I've been through the JSP specification, and don't see anything in
there pertaining to how EJB are expected to be referenced.  There is
section 2.13 describing the  tag, and unfortunately
thought it would perhaps provide the needed functionality to automate
the bean lookup process.

In addition to the specification, I have a copy of the
Monson-Haefel book on Enterprise JavaBeans, but there is virtually no
mention of JSP-EJB interaction.  I also spent some time earlier today
browsing JSP-centric books in the local bookstore, and found little
mention (usually about 1 paragraph) regarding EJB's.

Obviously, using the same method that is used in a Servlet allows me
to do what I need to do.  I was simply looking for a way to skip that step.
I've seen some code posted to the list using tags in the 
namespace, but haven't located any documentation for that particular
taglib.  Perhaps you could be so good as to provide a link?

I'm in the process of downloading the Romans book, so perhaps that
will have the details I'm looking for.

Thanks for the pointer.

Robert Krueger writes:
 > At 14:25 11.11.00 , you wrote:
 > 
 > >OK... I've gotten something working by removing my use of the
 > >jsp:useBean tag, and instead grabbing the EntityBean home, and
 > >creating manually, which seems to work.
 > 
 > yes, bean != enterprise java bean. you will do yourself a BIG favour if you 
 > read up on jsp, ejb and java in general as there are some fundamental 
 > basics missing. trial and error will not get you very far in J2EE. look at 
 > the specs (they are actually rather readable) and maybe check out ed romans 
 > ejb book (free download at www.theserverside.com).



-- 
Sean P. McNamara<[EMAIL PROTECTED]> 
SOMA Technologies, Inc. <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>




Dependent-to-dependent relationships

2000-11-11 Thread John Kelvie

I am trying to create a dependent to dependent relationship using Orion. I
have noticed that Orion does not automatically create the OR mappings for
these types of relationships as it does for other types. I have two
questions really:

1) Does orion support this type of relationship?

2) If so, how should the orion-ejb-jar.xml file be configured to do this?

I have posted below the error message I receive upon attempting to deploy as
well as the relevant section from the orion-ejb-jar.xml file that I created.

C:\app\orion>java -jar orion.jar
Auto-deploying lib\higherlending.jar (Classes where updated)...
java.lang.NullPo
interException
at com.evermind.server.ejb.deployment.fi.z2(JAX)
at com.evermind.server.ejb.compilation.f6.ahe(JAX)
at com.evermind.server.ejb.compilation.f6.ahe(JAX)
at com.evermind.server.ejb.compilation.f6.ahe(JAX)
at com.evermind.server.ejb.compilation.f6.ahe(JAX)
at com.evermind.server.ejb.compilation.fy.aft(JAX)
at com.evermind.server.ejb.compilation.fz.sz(JAX)
at com.evermind.server.ejb.compilation.f6.sz(JAX)
at com.evermind.server.ejb.compilation.gc.sz(JAX)
at com.evermind.server.ejb.EJBContainer.bz(JAX)
at com.evermind.server.Application.bz(JAX)
at com.evermind.server.Application.gf(JAX)
at com.evermind.server.ApplicationServer.ru(JAX)
at com.evermind.server.ApplicationServer.ap6(JAX)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hi.run(JAX)
at java.lang.Thread.run(Thread.java:484)
at com.evermind.util.f.run(JAX)



































   
 
   
 










   
 
   
 
   
 
   
 
   
 
   
 
   
 
   
 
   
 

















__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com





Re: Newbie Q: Can't find bean?

2000-11-11 Thread Robert Krueger

At 14:25 11.11.00 , you wrote:

>OK... I've gotten something working by removing my use of the
>jsp:useBean tag, and instead grabbing the EntityBean home, and
>creating manually, which seems to work.

yes, bean != enterprise java bean. you will do yourself a BIG favour if you 
read up on jsp, ejb and java in general as there are some fundamental 
basics missing. trial and error will not get you very far in J2EE. look at 
the specs (they are actually rather readable) and maybe check out ed romans 
ejb book (free download at www.theserverside.com).

regards,

robert

>Is it improper to use the  tag to work with entityBeans?
>Is this something that I should be using another Taglib for?
>
>I apologize for the basic-nature of this question, but I haven't done
>much work with EntityBeans, and even the O'reilly EJB book doesn't
>seem to provide much detail on the subject.
>
>
>Thanks!
>
>Sean P. McNamara writes:
>  >
>  > Hi again-
>  >
>  > Baby-steps, baby-steps I've finally gotten my application packaged
>  > properly, and my 2.0 CMP EntityBean to deploy properly, but am having
>  > problems accessing the bean via JSP.  I've scanned the mailing lists,
>  > but don't find anything related.  Hopefully someone can lend me a
>  > clue.
>
>
>--
>Sean P. McNamara<[EMAIL PROTECTED]>
>SOMA Technologies, Inc. <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]>

(-) 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: OR?

2000-11-11 Thread Tim Endres

Here is one place to start: www.theserverside.com.
Also, GemStone has some nice pages under their Java Success
webiste at: www.javasuccess.com.

tim

> Lately lots of people have been talking about "object relations" and 
> one-to-many mapping and such things as it pertains to EJB2.0. 
> 
> I'm not familiar with these concepts, and so am unable to follow the ongoing 
> discussions. Can someone point me someplace where I can find some good 
> (possibly concise) information about it?
> 
> Thanks.
> 





Newbie Q: Can't find bean?

2000-11-11 Thread Sean P. McNamara


OK... I've gotten something working by removing my use of the
jsp:useBean tag, and instead grabbing the EntityBean home, and
creating manually, which seems to work.

Is it improper to use the  tag to work with entityBeans?
Is this something that I should be using another Taglib for?

I apologize for the basic-nature of this question, but I haven't done
much work with EntityBeans, and even the O'reilly EJB book doesn't
seem to provide much detail on the subject.


Thanks!

Sean P. McNamara writes:
 > 
 > Hi again-
 > 
 > Baby-steps, baby-steps I've finally gotten my application packaged 
 > properly, and my 2.0 CMP EntityBean to deploy properly, but am having
 > problems accessing the bean via JSP.  I've scanned the mailing lists,
 > but don't find anything related.  Hopefully someone can lend me a
 > clue.


-- 
Sean P. McNamara<[EMAIL PROTECTED]> 
SOMA Technologies, Inc. <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>




OR?

2000-11-11 Thread Sean P. McNamara


Hi Gerald-

Perhaps the most widely read paper on the topic is "Crossing Chasms"
by Kyle Brown & Bruce Whitenack.

You can find it at:

http://www.ksccary.com/Page15.htm


Gerald Gutierrez writes:
 > 
 > Lately lots of people have been talking about "object relations" and 
 > one-to-many mapping and such things as it pertains to EJB2.0. 
 > 
 > I'm not familiar with these concepts, and so am unable to follow the ongoing 
 > discussions. Can someone point me someplace where I can find some good 
 > (possibly concise) information about it?
 > 
 > Thanks.
 > 
 > 
 > 

-- 
Sean P. McNamara<[EMAIL PROTECTED]> 
SOMA Technologies, Inc. <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>




RE: 1.4.4 OR Collection classes

2000-11-11 Thread Robert Krueger

did you file this as a bug report in bugzilla? I didn't find it there. I'll 
file it now (we just ran into it and it's a nasty one to find). if you 
already have please contact me so I can remove it.

robert



>Vidur,
>
>This looks in same ways similar to the problem that I reported a couple of
>days ago.
>
>That is, Orion 1.3.8 allowed non-serializable objects to be returned to
>the client if running in the same JVM (which should of course not be
>allowed).
>
>1.4.3 on the other hand behaves differently - rather than throwing a
>java.io.NonSerializableException (?) or something like that (which I
>suppose would be correct behavour although I haven't looked in the spec),
>it just returns a null and says nothing.
>
>Perhaps you are experiencing this kind of problem?
>
>Unfortunately it is not always clear whether an object referred to by its
>interface type is serializable.  I am in the middle of fixing a load of
>beans that returned Iterators, which worked fine on Orion 1.3.8.  Of
>course Iterator is an interface, and I discovered when I upgrade to Orion
>1.4.3 that the objects that backed the Iterator objects returned by JDK
>1.1's Vector and JDK 1.2's ArrayList (etc.) were *not* serializable.
>
>I found it useful to use an ObjectOutputStream to write the returned
>object out to System.out, wrapped in a try-catch block that printed the
>stack trace.  The resulting exception messages told me what the offending
>classes were (for example java.util.AbstractList$Itr, and also
>RuleBasedComparator which I had been using to sort sets).
>
>Maybe this is totally unrelated but the symptoms seem similar enough so I
>though I'd mention it.  Good luck ;)
>
>--
>Thomas Munro <[EMAIL PROTECTED]>
>  http://www.gi-technology.com/
>  GI Technology (Paris)
>
>On Wed, 8 Nov 2000, Vidur Dhanda wrote:
>
> > Hello,
> >
> > Earlier today I had reported a problem with the Map class.  There is
> > also a problem with the List class.  When the CMP entity is retrieved
> > and the CMP List field is empty, it is returned to the client as null.
> > Both the Map and the List work fine under 1.3.8.
> >
> > Vidur
> >
> >
> >
> >
>

(-) 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





OR?

2000-11-11 Thread Gerald Gutierrez


Lately lots of people have been talking about "object relations" and 
one-to-many mapping and such things as it pertains to EJB2.0. 

I'm not familiar with these concepts, and so am unable to follow the ongoing 
discussions. Can someone point me someplace where I can find some good 
(possibly concise) information about it?

Thanks.




Re: Properties

2000-11-11 Thread Magnus Naeslund\(b\)

Hmm.
I've decompiled  a some of the jar package's classes.
It uses java.lang.ClassLoader.getSystemResourceAsStream() to read the file.
Is that wrong, or does that mean i should put my properties file in another
location or something?
Darn.

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-






Newbie Q: Can't find bean?

2000-11-11 Thread Sean P. McNamara


Hi again-

Baby-steps, baby-steps I've finally gotten my application packaged 
properly, and my 2.0 CMP EntityBean to deploy properly, but am having
problems accessing the bean via JSP.  I've scanned the mailing lists,
but don't find anything related.  Hopefully someone can lend me a
clue.

I'm sure I'm doing something dumb here, but am not quite sure what.

Any pointers appreciated.


The error I receive is:

500 Internal Server Error

java.lang.InstantiationException: 
Could not find the bean named 'employee' in the page scope
at java.lang.Throwable.(Throwable.java:96)
at java.lang.Exception.(Exception.java:44)
at java.lang.InstantiationException.(InstantiationException.java:46)
at /EmployeeEntryAction.jsp._jspService(/EmployeeEntryAction.jsp.java:34)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xi(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d5.sv(JAX)
at com.evermind.server.http.d5.st(JAX)
at com.evermind.server.http.eh.s0(JAX)
at com.evermind.server.http.eh.do(JAX)
at com.evermind.util.f.run(JAX)


And the useBean segment from my JSP is:
---


-- 
Sean P. McNamara<[EMAIL PROTECTED]> 
SOMA Technologies, Inc. <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>
<[EMAIL PROTECTED]>




Re: Properties

2000-11-11 Thread Savotchkin Egor

Hi all,
I have difficulties with properties files but somewhat different. May be
someone knows how to deal with them.

1)  Why the following code :
String resName = "/ru/cboss/www/i18n/Messages.properties";
InputStream is1 = this.getClass().getResourceAsStream(resName);
InputStream is2 =
this.getClass().getClassLoader().getResourceAsStream(resName);
System.out.println("is1 = "+is1+" is2 = "+is2);

issues:
is1 = java.io.BufferedInputStream@fedb902c is2 = null

2) How java.util.ResourceBundle class loads properties files without "/" at
the beginning? I have not seen they add this character!

Egor.

- Original Message -
From: "Jason Smith" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Friday, November 10, 2000 11:43 PM
Subject: RE: Properties


> I am assuming you are talking about a java.util.Property file here.  If
the
> class that wants to access the property file is bundled within a jar, you
> should try using the Class.getResource(String name) method.  Just remember
> if you put the properties in the root of the jar you need to specify the
> name you pass into getResource as "/".
>
> Sun has an article entitled "Accessing Resources in a Location-Independent
> Manner" you might want to check out.
> http://java.sun.com/j2se/1.3/docs/guide/resources/resources.html
>
> jason
>
>
>
>
>
>
>





Re: Properties

2000-11-11 Thread Magnus Naeslund\(b\)


- Original Message - 
From: "Russ White" <[EMAIL PROTECTED]>
To: "Orion-Interest" <[EMAIL PROTECTED]>
Sent: Saturday, November 11, 2000 12:07
Subject: RE: Properties


> It depends on were you added it.
> 

In application.xml.
It works.
It loads classes from the .jar, but i just can't get it to read properties.

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-







Re: Properties

2000-11-11 Thread Magnus Naeslund\(b\)

From: "Sven van 't Veer" <[EMAIL PROTECTED]>
>
>
> "Magnus Naeslund(b)" wrote:
> >
> >
> > Shouldn't that do?
> > Or is /WEB-INF special?
> >
> According to specs WEB-INF/classes is where your (non-jarred) classes
> should go and WEB-INF/lib is where you should put your .jar files (e.i.
> your mail.jar). I suppose your jar should work if you put it in
> /WEB-INF/lib and place the properties file there as well.
>
> Take a look on /orion/doc/application-howto.html (might be
> application-creation-howto.html)
>
> sven
>

So i thought aswell, but it still doesn't work.
I wonder if the jar package really is using the properties interface, or
something homemade...

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-







Re: Web upload of a Java class

2000-11-11 Thread Robert Krueger

At 16:45 10.11.00 , you wrote:
>Hi...
>
>I need to upload a compiled class to my Orion application and then execute
>some methods of it. Anybody knows how can I do it?

upload the class file, instantiate a URLClassloader that points to the 
file's url, load the class using that classloader, do whatever you need 
using reflection (e.g. instantiate objects, call methods on them, whatever) 
and after that dump the classloader.

however as simple as that may be, are you aware of the security 
implications of this? if this is not just for playing around, you should 
read up on java security and classloading and then subclass URLClassLoader 
and implement a very restrictive getPermissions() method for the uploaded code.

before you do that be REALLY, REALLY sure you know what you are doing if 
this is for real world use!!!

other than that I don't see any difficulties in achieving what you described.

HTH,

robert

>[]s
>Guilherme Ceschiatti
>[EMAIL PROTECTED]
>

(-) 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: Web upload of a Java class

2000-11-11 Thread Storm Linux User

I mean it's showed to the user a HTML form that the user of the application 
can select I file to upload. It can be any file, to store in the application 
database, or even a java class. In the last case, instead of putting it into 
the database, the application will execute some methods of the class. I wish 
I'm more clear now

Thanks.
Guilherme Ceschiatti

On Friday 10 November 2000 19:24, you wrote:
> Sorry..not sure I understand? Do you mean "deploy" it into an application
> server, so that it immediately takes affect and then you can use it right
> away? If so, look at the .WAR format, or .EAR format. Its a J2EE standard
> format and most app servers should provide some sort of hot-swap
> application deployment capability. You simply upload the .war or .ear, and
> the app server serializes all HttpSession objects to disk (or some place),
> then reloads the app with the new class(es), then reads the serialized
> objects back into the HttpSession. This makes it appear to clients that
> nothing is different, but your new class(es) will be available.
>
> > -Original Message-
> > From: Storm Linux User [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 10, 2000 10:46 AM
> > To: Orion-Interest
> > Subject: Web upload of a Java class
> >
> >
> > Hi...
> >
> > I need to upload a compiled class to my Orion application and
> > then execute
> > some methods of it. Anybody knows how can I do it?
> >
> > []s
> > Guilherme Ceschiatti
> > [EMAIL PROTECTED]




RE: Oracle RDBMS Setup

2000-11-11 Thread Rob Lapensee
Title: Oracle RDBMS Setup









We use ejb-location,

Location, xa-location and ejb-location all utilize different drivers
within Orion with different properties as far as transaction control and
connection pooling are concerned.

 

We picked ejb-location because it seems to allow both transaction
control and connection pooling.

The only way to see what it is doing seems to be by doing a jndi look up
by each of the names then printing out the class name of the resulting object,
then looking up in the Orion specific API documentation for each of those class
names to see what they do.

 

The attachment has the data-sources.xml and InventoryBean.java that I
was using for testing.

It shows that a thrown exception in the middle of a transaction will rollback
the transaction.

 

Regards,

 

Rob Lapensee

Director of Technology

Delfour Corporation

[EMAIL PROTECTED]

www.delfour.com

 

-Original
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Lee, Se Hee
Sent: Friday, November 10, 2000
5:36 PM
To: Orion-Interest
Subject: RE: Oracle RDBMS Setup

 

can location have a same
name? Your example seems to have a diferent name for location, xa-location,
ejb-location, etc Thanks for your valuable info..

 

Se Hee

-Original Message-
From: Rob Lapensee
[mailto:[EMAIL PROTECTED]]
Sent: Friday, November 10, 2000
2:36 PM
To: Orion-Interest
Subject: RE: Oracle RDBMS Setup

 

You will need to get the jdbc driver from oracle (www.oracle.com) get the classes12_01.zip (not
the classes111.zip).

 

Then the data-sources.xml file in orion/config should
have something like the following as one of the data-source entries:

   


   


   
class="com.evermind.sql.DriverManagerDataSource"

   
name="user1"

   
location="jdbc/OracleCoreDS"

   
xa-location="jdbc/xa/OracleXADS"

   
ejb-location="jdbc/Oracle"

   
connection-driver="oracle.jdbc.driver.OracleDriver"

   
username="user1"

   
password=”password1"

    url="jdbc:oracle:thin:@(description=(address=(host=192.1.1.1)(protocol=tcp)(port=1521))(connect_data=(sid=S1)))"

   
inactivity-timeout="30"

    />

 

 

then use “jdbc/Oracle” as the jndi lookup to get the
DataSource, then use the DataSource to get the jdbc Connection.

 

 

Regards,

 

Rob Lapensee

Director of
Technology

Delfour
Corporation

[EMAIL PROTECTED]

www.delfour.com

 

-Original
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On
Behalf Of Lee, Se Hee
Sent: Friday, November 10, 2000
1:40 PM
To: Orion-Interest
Subject: Oracle RDBMS Setup

 

How do I set up the Orion to work with
Oracle? I am new to Orion (just downloaded) and try to make it to create
DataSource with Oracle..

Does Orion comes with its own JDBC Driver
for Oracle or should I should Oracle's driver? 

Thanks a lot for any comment and help.. 

Se Hee 







=0A=
http://www.orionserver.com/dtds/data-sources.dtd">=0A=
=0A=
=0A=
	=0A=
=0A=
=0A=
=0A=
	=0A=
=0A=
=0A=

 InventoryBean.java


Re: 1.4.4 OR Collection classes

2000-11-11 Thread Robert Krueger


>
>Unfortunately it is not always clear whether an object referred to by its
>interface type is serializable.  I am in the middle of fixing a load of
>beans that returned Iterators, which worked fine on Orion 1.3.8.  Of
>course Iterator is an interface, and I discovered when I upgrade to Orion
>1.4.3 that the objects that backed the Iterator objects returned by JDK
>1.1's Vector and JDK 1.2's ArrayList (etc.) were *not* serializable.

well, that's perfectly ok because Iterator or ListIterator is not 
serializable either. Return collections from your beans. So orion let you 
get away with a design error (which is bad, I admit as it should have 
detected that the reurn type is neither a remote object nor serializable, 
shouldn't it?) but it remains a design error on your part.

robert



(-) 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: Properties

2000-11-11 Thread Russ White

It depends on were you added it.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Magnus
Naeslund(b)
Sent: Saturday, November 11, 2000 3:03 AM
To: Orion-Interest
Subject: Re: Properties


From: "Russ White" <[EMAIL PROTECTED]>
> try putting your jar files in /web-inf/lib
> you may have to create the directory.
> 
> beer would be nice.
> hope that helps.
> 

I've added stuff like:



Shouldn't that do?
Or is /WEB-INF special?

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-









Re: Properties

2000-11-11 Thread Sven van 't Veer



"Magnus Naeslund(b)" wrote:
> 
> 
> Shouldn't that do?
> Or is /WEB-INF special?
> 
According to specs WEB-INF/classes is where your (non-jarred) classes
should go and WEB-INF/lib is where you should put your .jar files (e.i.
your mail.jar). I suppose your jar should work if you put it in
/WEB-INF/lib and place the properties file there as well.

Take a look on /orion/doc/application-howto.html (might be
application-creation-howto.html)

sven

-- 
==
Sven E. van 't Veer  
http://www.cachoeiro.net
Java Developer  [EMAIL PROTECTED]
==




Re: Properties

2000-11-11 Thread Magnus Naeslund\(b\)

From: "Jason Smith" <[EMAIL PROTECTED]>
> I am assuming you are talking about a java.util.Property file here.  If
the
> class that wants to access the property file is bundled within a jar, you
> should try using the Class.getResource(String name) method.  Just remember
> if you put the properties in the root of the jar you need to specify the
> name you pass into getResource as "/".
>
> Sun has an article entitled "Accessing Resources in a Location-Independent
> Manner" you might want to check out.
> http://java.sun.com/j2se/1.3/docs/guide/resources/resources.html
>
> jason
>

Thanks, but part of the problem is that it is a closed source jar package i
am dealing with here.
And it's not nice to be forced to add that properties file to the jar file
everytime i need to change it..
I'll read the spec.

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-






Re: Properties

2000-11-11 Thread Magnus Naeslund\(b\)

From: "Russ White" <[EMAIL PROTECTED]>
> try putting your jar files in /web-inf/lib
> you may have to create the directory.
> 
> beer would be nice.
> hope that helps.
> 

I've added stuff like:



Shouldn't that do?
Or is /WEB-INF special?

Magnus

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Programmer/Networker [|] Magnus Naeslund
 PGP Key: http://www.genline.nu/mag_pgp.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-