RE: Java IDE?

2002-03-27 Thread Justin Crosbie

I hate the way it doesn't support folder hierarchies. The new one even less
than 3.2.3, which allowed one folder level per project. I don't see why not,
it seems like such a trivial thing.

-Original Message-
From: Joydeep Kamdar [mailto:[EMAIL PROTECTED]]
Sent: 25 March 2002 16:11
To: Orion-Interest
Subject: Re: Java IDE?


Any serious users of Orion will absolutely love JDeveloper. This is as
fantastic tool and is free to use till you decide to deploy your
applications
into production. Thus you can for the first time test an enterprise class
IDE
without the every 30 day reinstall

Here's a comparison matrix of JBuilder 6 and JDeveloper 9i
http://www.oracle.com/ip/develop/ids/index.html?Jbuilder6_table.html

Check out -
http://www.sdmagazine.com/documents/s=7032/sdm0204d/0204d.htm

The chat about the price totall cracked me up. Noha - keep up the good work!


Marc Rabil wrote:

 I have been following this discussion with much interest since I recently
 set out to re-evaluate Java IDEs - particularly for J2EE.  Based on the
 recent JDJ poll located here:

 http://www.sys-con.com/java/readerschoice2002/liveupdate.cfm?cat=J2EE

 it would seem that a lot of folks like JBuilder.  But this may just be a
 marketshare estimate and it looks like a lot of folks on this list like
 IDEA.

 We've been using JBuilder 4 Enterprise with mixed feelings and are looking
 at upgrading to JBuilder 6.  Can any of the IDEA proponents out there
 summarize the major advantages of IDEA over JBuilder 6 (say professional
 edition since the upgrade is a comparable price)?

 Thanks in advance,

 Marc

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Clay Mitchell
 Sent: Friday, March 22, 2002 11:37 PM
 To: Orion-Interest
 Subject: RE: Java IDE?

 Hmm I'm loving idea, but it costs $ - I wonder what happens when the
 trial expires... Nag or just doesn't work?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Gottfried
 Szing
 Sent: Friday, March 22, 2002 6:55 PM
 To: Orion-Interest
 Subject: Re: Java IDE?

 On Fri, 22 Mar 2002, Clay Mitchell wrote:

  Just a question, any suggestions as to what a good IDE is? I've tried
  JBuilder, IDEA (I like IDEA) and a few others... any recommendations?

 i like idea. since i have seen idea i was a loyal user of vim and ant.
 now i use idea in combination with ant, junits, and orion.




RE: Using NT security

2002-03-14 Thread Justin Crosbie



Yuk, 
that is messy. Accessing the NT API? Using the JNI, I presume? Thanks though, 
I'll give those a try, much appreciated :)

So 
what does everyone else do, put the passwords into principals.xml and set the 
file to not readable?

Thanks,
Justin
-Original Message-From: 
Andre Vanha [mailto:[EMAIL PROTECTED]]Sent: 13 March 2002 
19:19To: Orion-InterestSubject: RE: Using NT 
security

  Take 
  a look at the sample JAAS modules that you can download from Sun in 
  conjunction with JAAS. Specifically, they include an NT module which can 
  be used to retrieve username and group information for a running 
  process. 
  
  Note 
  however, there is no way to retrieve a password for a logged on user, at least 
  not included with the JAAS module. The NT API does provide functions for 
  retrievinga user's password, but in that case the 
  domain/NTServermust be configured to store plain-text passwords, which 
  is something most people don't do anyway.
  
  Exchange definitely offers an alternative authentication mechanism, but 
  that falls outside of the standard javamail SMTP 
interface.
  
  Andre
  
  
  -Original 
  Message-From: Justin Crosbie 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 13, 2002 10:16 
  AMTo: Orion-InterestSubject: Using NT 
  security
  
Hi 
all,

I 
checked thearchives and support pages for this, didn't seem to find 
it.

Is 
there any way to get Orion to usethe NT username+password of whoever 
is logged in, for running client apps? Currently I'm reading them from a 
config file, which obviously is not ideal.

Also, I am using the mail-session 
properties to configure a JavaMail session. Thus I have the userame+password 
of this hardcoded into application.xml. Anyone know of a way I could use the 
NT logged on credentials to specify the mail.smtp.user and 
mail.smtp.password 
properties of the session? It is an Exchange server. (Probably OT, apologies 
if it is).

Thanks,
Justin



RE: timed events

2002-03-13 Thread Justin Crosbie

I have done this using the java.util.Timer class. I created a class that
extends the TimerTask class, and calls the EJB. I made a singleton class
that wraps the Timer class, so I can call it from the servlet layer to
schedule tasks, and guarantee only one instance per VM. 

Thus, my EJBs aren't forking threads, so it should be OK. And the Timer
instance, which controls the scheduling of the tasks, is always alive as
long as my VM doesn't go down. I saved the schedule times and taskIds to the
database so that they can be rescheduled when the appserver gets restarted.
I created an application that reloads these jobs, and put this in
client-module of orion-application.xml, so Orion would start it on
startup.

This works, and I haven't had any problems yet, but I'm not sure whether
this is the best, or most valid approach. It feels a bit too easy to be any
good.

Alternatively, you can use a 3rd party job scheduler. This is free, and it
has one:
http://ofbiz.sourceforge.net/
http://ofbiz.sourceforge.net/core/docs/services.html
I haven't had a chance to evaluate it.

-Original Message-
From: Johan Fredriksson [mailto:[EMAIL PROTECTED]]
Sent: 13 March 2002 13:06
To: Orion-Interest
Subject: Re: timed events


Perhaps via a croned java client?

//Johan
- Original Message -
From: Casper Højstrup [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, March 13, 2002 10:20 AM
Subject: timed events



 This more of a regular EJB question, I suppose.

 I need to initiate some specific tasks and specific times in my
application, since the application server aren't multithreaded(so to speak),
and the usage of threads is not recommended, I cannot make a simple timer,
that will initiate the appropriate procedures at a given time.
 How do one solve such problems in an EJB application ?

 Regards
 .







Using NT security

2002-03-13 Thread Justin Crosbie



Hi 
all,

I 
checked thearchives and support pages for this, didn't seem to find 
it.

Is 
there any way to get Orion to usethe NT username+password of whoever is 
logged in, for running client apps? Currently I'm reading them from a config 
file, which obviously is not ideal.

Also, I am using the mail-session properties to configure 
a JavaMail session. Thus I have the userame+password of this hardcoded into 
application.xml. Anyone know of a way I could use the NT logged on credentials 
to specify the mail.smtp.user and mail.smtp.password properties of the session? It is an Exchange 
server. (Probably OT, apologies if it is).

Thanks,
Justin



RE: File Upload from an Application

2002-03-04 Thread Justin Crosbie

Also,

You will need to use a POST form, with the parameter:
enctype=multipart/form-data. Don't forget to handle the parameters as well
as the files, they're no longer visible with req.getParameter() when you use
this.

There is a few MultipartParsers out there, including an Orion version. I
would recommend wrapping these in an interface, so you can easily swap them.
Not that I don't trust them or anything, but its code I have no control
over.

This was posted on another thread, very useful:
http://kb.atlassian.com/content/orionsupport/articles/fileupload.html


-Original Message-
From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
Sent: 04 March 2002 11:47
To: Orion-Interest
Subject: RE: File Upload from an Application


check out oreilly's cos.jar, multipart request parser.
I think the object is called MultipartReqeust.

it's rather popular, even though the license is rather discomforting.
-hope it helps

[EMAIL PROTECTED]

-Original Message-
From: Michael Maurer [mailto:[EMAIL PROTECTED]]
Sent: 4. mars 2002 07:38
To: Orion-Interest
Subject: File Upload from an Application


Hi 

I am trying to upload a file from an application to the orion server,
but could not find the right solution so far. 
Does anyone has a nice solution ?

Michael




RE: Uploading files to Orion webserver with MultipartParser API

2002-03-04 Thread Justin Crosbie

Looks like this didn't go through again. This a hint? (lol) ;)

-Original Message-
From: Justin Crosbie 
Sent: 04 March 2002 10:31
To: 'Orion-Interest'
Subject: RE: Uploading files to Orion webserver with MultipartParser API


Hi Bill,

Now that you mention it, I have never been able to download stuff off the
Java site from my own machine, but it always worked on another machine on
the network, even though there was no noticeable differences between the
two, same OS, same IE, same privs. When it was failing, it appeared that it
was trying to download the index.html document (if I remember correctly)
from the download site rather than the requested file.

I upgraded to IE 6 a few days ago, and I just tried downloading from the
Java site, and its working fine. Curious.

Thanks,
Justin

-Original Message-
From: Bill Winspur [mailto:[EMAIL PROTECTED]]
Sent: 01 March 2002 13:27
To: Orion-Interest
Subject: Re: Uploading files to Orion webserver with MultipartParser API


I've had numerous weird and transient problems with IE 5.5. Yesterday,
getting set up at a client site,  I could not download j2sdk1.4 from sun,
and had to go to a machine with IE5.0 to get it. However, IE5.5 was able to
download netbeans just fine. The Sys Admin guys dont think its a firewall
problem. It will probably work OK today if things go the way they have in
the past.
- Original Message -
From: Justin Crosbie [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 2:17 AM
Subject: RE: Uploading files to Orion webserver with MultipartParser API


 Hi

 Thanks for that, I wasn't aware of those classes, I gave them a go.
Similar
 problem. Different error, but its occasionally failing. I also tried the
 non-brand-specific UploadServlet.java, similar results.

 However, I have gotten closer. It was failing on Internet Explorer 5.5. I
 tried Netscape 4.7, and it seemed fine. I tried it on 5.0 and IE 6 and it
 seemed fine. So it appears that it is a problem with IE 5.5. Very
strange...


 Thanks for the help, much appreciated.
 Justin

 P.S. this is my second attempt at posting this, it appears the list does
not
 pick up everything that is posted.

 -Original Message-
 From: Joan Josep Iglesias [mailto:[EMAIL PROTECTED]]
 Sent: 22 February 2002 09:33
 To: Orion-Interest
 Subject: Re: Uploading files to Orion webserver with MultipartParser API


 Hi,

 I'm trying to upload files to my server, but I'm  using the orion
 libreries
 to do it

 http://kb.atlassian.com/content/orionsupport/articles/fileupload.html


 Why don't you try with those libraries?


 Joan








RE: Uploading files to Orion webserver with MultipartParser API

2002-02-28 Thread Justin Crosbie

Hi again,

Hopefully this one will get through (lol) :)

Thanks for the reply Joan, much appreciated.

The faulty browser appears to be:
IE 5.50.4522.1800 SP1
IE 5.50.4807.2300 SP2

We don't use a proxy server, and we always use HTTP 1.1. OS is Windows 2000
and WinNT for server, and Win2000 only for clients. Win2000 is SP2.

The plot has thickened as well, The problem only happens sporadically. I can
no longer reproduce the problem on these versions, they are now uploading
fine!! Nothing has changed, other than we have upgraded IE to version 6 on
other machines on the network.

When it has happened, I have examined the InputStream that is sent to the
server, and when it fails, it appears the HTTP header is being sent as
content as well as a header, so the MultiPart parser does not see a valid
content boundary.

Anyway, I will keep an eye on it to see does it crop up again.

Thanks for the help,
Justin

-Original Message-
From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
Sent: 27 February 2002 23:24
To: Orion-Interest
Subject: RE: Uploading files to Orion webserver with MultipartParser API


Just be aware, MS don't number each release of their browser like NS do.
For example, the original release of 5.5 was very buggy, but it's had at
least a couple of Service Packs since then (5.5.1, 5.5.2, if you like). 

You need to indicate which service pack and which OS you are running on
before you can really compare IE versions properly.

You may also wish to ensure there are no proxies or anything like that
in the middle between IE and Orion, as they can change the HTTP stream.
Also, have you configured IE to use HTTP 1.0 or 1.1?

Try running the same example code on Tomcat 4.x, with your different
browsers. If that works you can pretty much blame Orion.

Geoff

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]] On Behalf Of 
 Joan Josep Iglesias
 Sent: Thursday, 28 February 2002 3:14 AM
 To: Orion-Interest
 Subject: Re: Uploading files to Orion webserver with 
 MultipartParser API
 
 
 Hi again Justine,
 
   I've just prove it with an IE 5.5 and I have'nt got any 
 problem... I don't 
 know what problem you can have... If you want, you can try to 
 read the upload 
 file byte by byte... the way I token (by the moment).
 
   Good luck Justine!!
 
   Joan
 
 
 On Wednesday 27 February 2002 10:17 am, you wrote:
  Hi
 
  Thanks for that, I wasn't aware of those classes, I gave them a go. 
  Similar problem. Different error, but its occasionally 
 failing. I also 
  tried the non-brand-specific UploadServlet.java, similar results.
 
  However, I have gotten closer. It was failing on Internet Explorer 
  5.5. I tried Netscape 4.7, and it seemed fine. I tried it 
 on 5.0 and 
  IE 6 and it seemed fine. So it appears that it is a problem with IE 
  5.5. Very strange...
 
 
  Thanks for the help, much appreciated.
  Justin
 
  P.S. this is my second attempt at posting this, it appears the list 
  does not pick up everything that is posted.
 
  -Original Message-
  From: Joan Josep Iglesias [mailto:[EMAIL PROTECTED]]
  Sent: 22 February 2002 09:33
  To: Orion-Interest
  Subject: Re: Uploading files to Orion webserver with 
 MultipartParser 
  API
 
 
  Hi,
 
  I'm trying to upload files to my server, but I'm  using 
 the orion 
  libreries to do it
 
  
 http://kb.atlassian.com/content/orionsupport/a
rticles/fileupload.html
 
 
  Why don't you try with those libraries?
 
 
  Joan
 
 





RE: Uploading files to Orion webserver with MultipartParser API

2002-02-27 Thread Justin Crosbie

Hi

Thanks for that, I wasn't aware of those classes, I gave them a go. Similar
problem. Different error, but its occasionally failing. I also tried the
non-brand-specific UploadServlet.java, similar results.

However, I have gotten closer. It was failing on Internet Explorer 5.5. I
tried Netscape 4.7, and it seemed fine. I tried it on 5.0 and IE 6 and it
seemed fine. So it appears that it is a problem with IE 5.5. Very strange...


Thanks for the help, much appreciated.
Justin

P.S. this is my second attempt at posting this, it appears the list does not
pick up everything that is posted.

-Original Message-
From: Joan Josep Iglesias [mailto:[EMAIL PROTECTED]]
Sent: 22 February 2002 09:33
To: Orion-Interest
Subject: Re: Uploading files to Orion webserver with MultipartParser API


Hi,

I'm trying to upload files to my server, but I'm  using the orion
libreries 
to do it

http://kb.atlassian.com/content/orionsupport/articles/fileupload.html


Why don't you try with those libraries?


Joan





Uploading files to Orion webserver with MultipartParser API

2002-02-21 Thread Justin Crosbie

Hi,

I'm wondering if this has anything to do with the Orion webserver. I am
using the com.oreilly.servlet.multipart.MultipartParser to upload files to
my servlet. If you try the same file several times, it will sometimes work
and sometimes fail with a Corrupt form data: no leading boundary
IOException.

It fails because normally it expects to see a valid boundary in the
HttpServletRequest obj, but some of the time the Header is being sent with
the content. So where it expects to see something like 
12012133613061, it finds a POST url... HTTP1.1
etc

It is strange that it sometimes works and sometimes not. Is there anything I
can set on the webserver side to ensure that the content is as is expected?

Thanks,
Justin




RE: Job Scheduler pattern

2002-02-08 Thread Justin Crosbie

Hi again, sorry if I'm overly persistent, I promise I will drop this issue
v. soon ;)

Thanks for that link Scott, I couldn't get on to it, I can't get past the
login.

The LAST question I'd like to ask is, with the client-module tag in
orion-ejb-jar.xml, is there a provision for controlling the lifetime of the
application? esp restarting if it stops running/falls over?

Much appreciated,
Justin

-Original Message-
From: Scott Farquhar [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2002 05:45
To: Orion-Interest
Subject: Re: Job Scheduler pattern


There is an interesting article on DevX regarding timer tasks.

http://www.devx.com/premier/mgznarch/Javapro/2002/02feb02/eb0202/eb0202-2.as
p

It looks like it does what you want.

Cheers,
Scott

Scott Farquhar
[EMAIL PROTECTED]

Atlassian :: www.atlassian.com
Supporting YOUR world



Geoff Soutter wrote:

Hmm, want us to write it for you? 

But seriously, there are commercial apps for J2EE scheduling if that's
the kind of thing you are after, just use google...

Geoff

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Justin
Crosbie
Sent: Saturday, January 26, 2002 2:49 AM
To: Orion-Interest
Subject: RE: Job Scheduler pattern


Yes I have seen that, it is very bare-bones. It doesn't even use the
Timer classes. I need to know how to make this robust.

Thanks,
Justin

-Original Message-
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2002 12:04
To: Orion-Interest
Subject: Re: Job Scheduler pattern


The www.orionsupport.com site has a sample scheduler that can easily be
converted to do something like this.

On Fri, 25 Jan 2002, Justin Crosbie wrote:

Hi,

I'm not sure if I've asked this before, or if I should be asking on a 
general EJB list.

I'd like to implement a job scheduler in J2EE. This would shcedule the


execution of EJB methods at a specified time in the future. It would 
have

to

be persistent, and jobsd would be rescheduled upon appserver restart.

Is it as simple as using the Timer and TimerTask in java.util to 
implement an app that is started with the client-module tag?

Does it matter as far as Orion goes whether I use a java.util.Timer as


a daemon or not?

What can I do if the app, or the Timer object dies at any stage?

I've had problems where after some time something goes wrong I get a

strange

Remote Exception, and the only solution is to restart the VM. What 
might cause this?

Any opinions on this? How do I make this solution robust is what I am 
asking.

Thanks for any help,
Justin


---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://adjacency.org/ IT Consultant










FW: Job Scheduler pattern

2002-01-29 Thread Justin Crosbie

This doesn't look like it got processed, I'll send it again...

-Original Message-
From: Justin Crosbie 
Sent: 28 January 2002 12:50
To: 'Orion-Interest'
Subject: RE: Job Scheduler pattern


Hi again,

Thanks for the help on this. What I've done so far is this:

1. Implemented a java.util.Timer as a Singleton which is accessed from the
servlet layer.
2. Implemented a class that extends TimerTask, which does a JNDI lookup of
my EJB and invokes the 
   appropriate method.
3. Call the Singleton  from the servlet to schedule the TimerTasks as per
client requests. 
   (Plus save details to database)
4. Implemented another app to be called via the client-module tag which
reschedules the previously 
   scheduled TimerTasks. Thus I have my persistence.
5. The Singleton runs the ReScheduler whenever its recreated.
6. Run orion using the -userThreads parameter - this is necessary.

So, as long as my Singleton class stays up, I should be OK. The problem is,
some tasks might be scheduled for weeks or months away. How can I guarantee
that it will fire at the scheduled time even if it is this long away?

I understand that there may be several instances of the Singleton per
classloader, thats OK, as long as its a finite amount.

So. My question now is: Is this as robust as it gets? Is there anything I am
not doing, or could do to implement a better solution? All opinions welcome.

Thanks again,
Justin

-Original Message-
From: Paul Knepper [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2002 23:07
To: Orion-Interest
Cc: '[EMAIL PROTECTED]'
Subject: RE: Job Scheduler pattern


Joseph,

Very cool.  How do you stop a client-module that auto-started and then
restart it?  

Say you deployed the app (which also has ejb and web modules) and later
wanted to add another task to the scheduler.  Can you start and stop the
java client module, so that it would reload the properties file, without
affecting the web module?  I might have users logged in to the website and I
wouldn't want to redeploy everthing and messup any current sessions.

Thanks,
Paul

-Original Message-
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 25, 2002 4:04 AM
To: Orion-Interest
Subject: Re: Job Scheduler pattern


The www.orionsupport.com site has a sample scheduler that can easily be
converted to do something like this.

On Fri, 25 Jan 2002, Justin Crosbie wrote:

 Hi,
 
 I'm not sure if I've asked this before, or if I should be asking on a
 general EJB list.
 
 I'd like to implement a job scheduler in J2EE. This would shcedule the
 execution of EJB methods at a specified time in the future. It would have
to
 be persistent, and jobsd would be rescheduled upon appserver restart.
 
 Is it as simple as using the Timer and TimerTask in java.util to implement
 an app that is started with the client-module tag?
 
 Does it matter as far as Orion goes whether I use a java.util.Timer as a
 daemon or not?
 
 What can I do if the app, or the Timer object dies at any stage?
 
 I've had problems where after some time something goes wrong I get a
strange
 Remote Exception, and the only solution is to restart the VM. What might
 cause this?
 
 Any opinions on this? How do I make this solution robust is what I am
 asking.
 
 Thanks for any help,
 Justin
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://adjacency.org/ IT Consultant





Job Scheduler pattern

2002-01-25 Thread Justin Crosbie

Hi,

I'm not sure if I've asked this before, or if I should be asking on a
general EJB list.

I'd like to implement a job scheduler in J2EE. This would shcedule the
execution of EJB methods at a specified time in the future. It would have to
be persistent, and jobsd would be rescheduled upon appserver restart.

Is it as simple as using the Timer and TimerTask in java.util to implement
an app that is started with the client-module tag?

Does it matter as far as Orion goes whether I use a java.util.Timer as a
daemon or not?

What can I do if the app, or the Timer object dies at any stage?

I've had problems where after some time something goes wrong I get a strange
Remote Exception, and the only solution is to restart the VM. What might
cause this?

Any opinions on this? How do I make this solution robust is what I am
asking.

Thanks for any help,
Justin




RE: Job Scheduler pattern

2002-01-25 Thread Justin Crosbie

Yes I have seen that, it is very bare-bones. It doesn't even use the Timer
classes. I need to know how to make this robust.

Thanks,
Justin

-Original Message-
From: Joseph B. Ottinger [mailto:[EMAIL PROTECTED]]
Sent: 25 January 2002 12:04
To: Orion-Interest
Subject: Re: Job Scheduler pattern


The www.orionsupport.com site has a sample scheduler that can easily be
converted to do something like this.

On Fri, 25 Jan 2002, Justin Crosbie wrote:

 Hi,
 
 I'm not sure if I've asked this before, or if I should be asking on a
 general EJB list.
 
 I'd like to implement a job scheduler in J2EE. This would shcedule the
 execution of EJB methods at a specified time in the future. It would have
to
 be persistent, and jobsd would be rescheduled upon appserver restart.
 
 Is it as simple as using the Timer and TimerTask in java.util to implement
 an app that is started with the client-module tag?
 
 Does it matter as far as Orion goes whether I use a java.util.Timer as a
 daemon or not?
 
 What can I do if the app, or the Timer object dies at any stage?
 
 I've had problems where after some time something goes wrong I get a
strange
 Remote Exception, and the only solution is to restart the VM. What might
 cause this?
 
 Any opinions on this? How do I make this solution robust is what I am
 asking.
 
 Thanks for any help,
 Justin
 

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://adjacency.org/ IT Consultant





RE: Multiply datasources for one application??

2002-01-16 Thread Justin Crosbie

We have configured data-sources.xml to point to multiple sources, the code
references the relevant ejb-location value as a JNDI lookup. This works
for Entity Beans and direct JDBC. Entity beans use the setEntityContext
method to reference the corect source. They can also use the 
entity-deployment data-source= attribute in orion-ejb-jar.xml. If you
are using an automatically generated one, be careful that it is referencing
the correct source.

-Justin

-Original Message-
From: The elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2002 23:48
To: Orion-Interest
Subject: RE: Multiply datasources for one application??


Mike,

You can use different data-sources by using a different location name for
each data-source. You need to make sure that each data-source within your
data-sources file has a distinct location name.

You apps can use different data-sources.xml by including the
data-sources.xml path in your orion-application.xml of your ear. This way
you can have more than one ear, each with its own data-sources.xml.

Regards,

the elephantwalker
www.elephantwalker.com


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 10:57 AM
To: Orion-Interest
Subject: Multiply datasources for one application??


Hi everyone, if there is anyone that can give me a hand I would really
appreciate it.

My Problem is that I have an application developed using orion and I works
great but we are trying to set up multiply test environments using different
database instances.  My questions is can you set up one application with
multiply datasources and if so how do you go about setting it up.  We tried
to set it up with different datasource declarations in one datasource but it
always reads the last datasource declaration into the driver manager.

Please help if you can, Thanks.

Mike





RE: question about ip allocation

2002-01-09 Thread Justin Crosbie

Hi,

Two IP addresses - is this two network addresses, or is it two IP that point
to the same DNS entry? If you have two network addresses, on two separate
network cards, this should not happen. If they are actually pointing to the
same address, you will have to put Orion on a different port to IIS. What
you can do then is map an external address to the Orion ip/port to cater for
people outside your firewall.

HTH,
Justin

-Original Message-
From: Morten Raahede Knudsen [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2002 07:52
To: Orion-Interest
Subject: Re: question about ip allocation


Hi

Thanks for your answers!

try adding a host=x.x.x.x attribute to the web-site tag in
default-web-site.xml

I have tried that, it only oanswers on the given address, but it still seems
 to block for other servers on other ip addresses.

Try changing the port number that Orion accepts requests from 80 to a
different unused value e.g 2002.
So that the url will look something like http://127.0.0.1:2002

This will give problems for users with firewalls.

I'm still open for suggestions!

Thanks in advance,

Morten Raahede Knudsen


 Morten Raahede Knudsen [EMAIL PROTECTED]
 Programmør

 Bilpriser.dk
 Tolderlundsvej 16
 DK-5000 Odense C

 Telefon +45 6314 6065
 Telefax +45 6619 2164

 Ved du hvad din bil er værd? Besøg http://www.bilpriser.dk






RE: Class-Path entries in Manifest.mf for EJBs

2001-11-22 Thread Justin Crosbie

Hi Marc,

Have you tried adding a library path=/ entry in your Orion
application.xml. This should point to the directory that Orion unpacks your
library files to.

HTH,
Justin

-Original Message-
From: Marc Eilens [mailto:[EMAIL PROTECTED]]
Sent: 22 November 2001 09:20
To: Orion-Interest
Subject: Class-Path entries in Manifest.mf for EJBs


Hello,

I've got a problem deploying my EAR file on ORION.
I packed my two EJBs together with a WAR file into the EAR file. The two
EJBs share references to classes in a library jar.
As far as I understand the packaging of EARs I can create a 'lib' subfolder
in the EAR and add Class-Path entries in the Manifest files of the EJBs.

The EAR deploys well on JBoss, but not on ORION.

This is my structure in the EAR:

|- bsebos.jar
|- som.jar
|- ie.war
|- appclient.jar (just including an xml descriptor to expose the two beans
in JNDI)
|- lib
|- ois.jar
|- bo.jar
|- sales.jar
|- META-INF
|- MANIFEST.MF 
|- application.xml

The Manifest file of the bsebos.jar for example looks as follows:

Manifest-Version: 1.0
Created-By: 1.3.0 (Sun Microsystems Inc.)
Class-Path: ../lib/ois.jar ../lib/bo.jar ../lib/sales.jar


I did not create Orion-specific descriptors. I think they will be generated
automatically on deployment if not existing, aren't they?
Does anybody had the same problem or knows what I have to do?

I somehow got it to work a few days ago, somehow, but I don't know what to
do to get it working again. I changed my build scripts a bit and built a new
EAR file and it just won't deploy. I always get this error:

Auto-unpacking C:\orion\applications\ie.ear... done.
Auto-unpacking C:\orion\applications\ie\ie.war... done.
Auto-deploying IE3.6 (New server version detected)...
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/som.jar, Error loading class
'mpress.ois.modules.sales.order.ejb.SalesOrderManagerEJB':
java.lang.NoClassDefFoundError: impress/ois/bo/ejb/CEManagerEJB
Error in application IE3.6: Error loading package at
file:/C:/orion/applications/ie/bsebos.jar, Error loading class
'impress.ois.modules.session.ejb.OISSessionEJB':
java.lang.NoClassDefFoundError: impress/ois/base/session/ISession
Installed IE3.6...


These classes are packed in the jars located in the lib directory in the EAR
file and are specified to be included in the classpath in the Manifest files
of the EJBs.
So theoretically, it should work, but it doesn't. They aren't deployed
correctly.

Additionally, something's not ok with the applicatin client jar, too. As
said already, I got it to work a few days ago. Then, upon deployment, ORION
changed my appclient.jar and added an xml descriptor and a jndi.properties
to this jar. This also doesn't happen anymore.

So, I'm currently quite confused and appreciate any help.

Regards,
Marc

Marc Eilens
Research  Development
Engineering

IMPRESS SOFTWARE AG

mailto:[EMAIL PROTECTED]
http://www.IMPRESS.com





RE: How can I start Orion Server as a service in Windows NT/2000 ?

2001-11-12 Thread Justin Crosbie



Hi 
Vu,

You 
need the JNT application from http://www.eworksmart.com/JNT/

Install 
this and type a command similar to the following, from where you installed 
Orion:
 
jnt "/InstallAsService:Orion Application Server" "/SD[ORION_HOME]" -jar 
orion.jar

where 
[ORION_HOME] is where you installed Orion. Worked for me, anyway. I had a job 
getting other java apps to run using this tool though :(


This 
has come up in the list before, so do a search on the archive for more 
info.

One 
thing I have noticed is that Orion runs slower this way than if you start it 
from a command prompt. Anyone know anything about this? I've asked this 
before.

Cheers,
Justin

  -Original Message-From: Vu Le Hung 
  [mailto:[EMAIL PROTECTED]]Sent: 12 November 2001 
  04:38To: Orion-InterestSubject: How can I start Orion 
  Server as a service in Windows NT/2000 ?
  Dear all,
  I'm trying to find a way to start Orion Server as 
  a service in WindowsNT/2000( i.e.Orion will be started automatically 
  when my computer startup without any user interaction).
  Any one know how to do this ?
  I tried this as below but it failed 
:
   1. Write an small Win32 
  application "startorion.exe" that calls "java -jar orion.jar"
  2. Register it as a 
  automatic service (named MyService) with Win2000 using "Service Installation 
  Wizard" tool in the Windows 2000 Server Resource Kit.
   3. Restart my computer. 
  
  Then I can find item "MyService" 
  inthe list of all available services in 
  my computer. But this service can not be start.
  Any idea ??? Thanks in advance.
   
  Vu Le Hung
  
   
  
  
   



RE: Transaction behaviour

2001-10-22 Thread Justin Crosbie
Title: RE: Transaction behaviour



Hi 
Ampie,

Thats 
my problem, merely catching the CreateExceptions, etc and rethrowing as 
EJBExceptions apears not to be sufficient to guarantee a rollback, I must call 
setRollbackOnly() prior to rethrowing. Is this for definite? I would have 
expected that explicitly throwing EJBException would automatically cause a 
rollback because it is considered to be a system-level exception. Does the 
container analyse the nested Exception to determine if it is sourced as a system 
exception and not rollback EJBExceptions thrown from application-level 
Exceptions?

I'm 
sure my confusion is apparent now ;)

Thanks,
Justin
-Original Message-From: Ampie 
Barnard [mailto:[EMAIL PROTECTED]]Sent: 22 October 2001 
07:00To: Orion-InterestSubject: RE: Transaction 
behaviour

  Orion's implementation is quite correct in returning a method 
  result and not throwing any exceptions, in spite of your invocation of 
  setRollbackOnly. Personally, I only call setRollBackOnly before (re-)throwing 
  an application exception that should definitely cause a rollback. Rolling back 
  the transaction without throwing any exceptions will just confuse the users of 
  my ejb's. It is probably better to just wrap such an application 
  exception in an EJBException and let the container roll the tx back. 
  
  Remember that CreateException, RemoveException and 
  FinderException are considered to be application exceptions. If you propagate 
  these exceptions but still want to roll the tx back, you have to catch them, 
  call setRollbackOnly() and then rethrow them. Subclasses of Error, 
  RuntimeException (EJBException) and RemoteException are considered to be 
  system exceptions and will automatically cause a tx rollback.
  -Original Message- From: 
  Justin Crosbie [mailto:[EMAIL PROTECTED]] 
  Sent: 19 October 2001 05:34 To: 
  Orion-Interest Subject: Transaction behaviour 
  
  Hi all, 
  We have implemented a session facade architecture, with 
  session beans calling multiple entity beans. We have 
  configured the trans-attribute as "Required" 
  for everything, as normal. 
  What is the exact criteria for a session method to rollback? 
  Is it that it must be a system initiated exception, or 
  else the application must call setRollBackOnly()? 
  
  Its just that calling this method causes a rollback, but the 
  the container does not come up with the "Session was 
  rolled back" exception, so I'm a bit worried about 
  it. 
  I know this has been addressed before on this list, so I 
  apologise for going over old stuff, but I've noticed 
  that some applications call the setRollbackOnly method 
  and others don't. Is it just that those ones don't care if a rollback occurs? 
  Specificaly, we have a stateless session bean that we invoke 
  through a statefull one (that a servlet creates and 
  invokes). The stateless bean always tries to create 
  the entity beans. We would like it such that if either 
  fails to create, the method does a rollback - all or nothing. Does 
  this mean that we must call setRollbackOnly() ? 
  Thanks for any help on this. Justin 


RE: JavaMail problem

2001-10-19 Thread Justin Crosbie

Hi,

Thanks for the replies. Still no joy, this is strange behaviour. We don't
want to enable relaying totally, because of the security risks. Yet its
still a problem if we enable it for specific IP addresses, it doesn't work.
We can enable routing to specific external domains, and this works.

Anyway, it appears to be either a JavaMail or Exchange Server problem, so
I'll keep looking there.

Thanks again,
Justin

-Original Message-
From: Christoph Sturm [mailto:[EMAIL PROTECTED]]
Sent: 16 October 2001 16:43
To: Orion-Interest
Cc: Orion-Interest
Subject: Re: JavaMail problem


Hello Justin,

Tuesday, October 16, 2001, 10:48:20 AM, you wrote:


JC I have set Exchange to disable relaying except for the IP address of the
JC machine the appserver is on. The problem is I'm still getting the
JC javax.mail.SendFailedException: 550 Relaying is prohibited error.
You need to restart the internet mail service (in control
panel/services) for the change to take effect.




-- 
Best regards,
 Christophmailto:[EMAIL PROTECTED]






Transaction behaviour

2001-10-19 Thread Justin Crosbie

Hi all,

We have implemented a session facade architecture, with session beans
calling multiple entity beans. We have configured the trans-attribute as
Required for everything, as normal.

What is the exact criteria for a session method to rollback? Is it that it
must be a system initiated exception, or else the application must call
setRollBackOnly()? 

Its just that calling this method causes a rollback, but the the container
does not come up with the Session was rolled back exception, so I'm a bit
worried about it.

I know this has been addressed before on this list, so I apologise for going
over old stuff, but I've noticed that some applications call the
setRollbackOnly method and others don't. Is it just that those ones don't
care if a rollback occurs?

Specificaly, we have a stateless session bean that we invoke through a
statefull one (that a servlet creates and invokes). The stateless bean
always tries to create the entity beans. We would like it such that if
either fails to create, the method does a rollback - all or nothing. Does
this mean that we must call setRollbackOnly() ?

Thanks for any help on this.
Justin




RE: MDB in orion 1.5.2 using Queue

2001-10-18 Thread Justin Crosbie

Hi Romen,

did you specify the admin security credentials? its
-Djava.naming.security.credentials=admin password 
If you don't give this, it pops up a textbox asking for the password. Maybe
you are tabbing off this before it pops up?

Did you enable jms from server.xml by uncommenting the jms-config node?

I did not have to do anything to orion-ejb-jar.xml. I configured my
ejb-jar.xml as follows:
ejb-jar
descriptionMessage Driven Bean/description
enterprise-beans
message-driven
ejb-nameMyMDB/ejb-name
ejb-classpackage.MyMDB/ejb-class
transaction-typeContainer/transaction-type

acknowledge-modeauto-acknowledge/acknowledge-mode
message-driven-destination

destination-typejavax.jms.Queue/destination-type

subscription-durabilitydurable/subscription-durability
/message-driven-destination
resource-ref

res-ref-namejms/QueueConnectionFactory/res-ref-name

res-typejavax.jms.QueueConnectionFactory/res-type
res-authContainer/res-auth
/resource-ref
resource-env-ref

resource-env-ref-namejms/theQueue/resource-env-ref-name

resource-env-ref-typejavax.jms.Queue/resource-env-ref-type
/resource-env-ref
/message-driven

Hope that helps,
Justin

-Original Message-
From: Romen Law [mailto:[EMAIL PROTECTED]]
Sent: 18 October 2001 01:05
To: Orion-Interest
Subject: MDB in orion 1.5.2 using Queue


ello,

I tested MDB using topic and it worked fine. What I did was to deploy the
MDB using the 'jms/theTopic' as the destination-location in
orion-ejb-jar.xml. Then I ran the sample jmschat.jar and saw that my MDB got
called.

But I could not repeat the same using Queue as the destination. I deployed
the same MDB using destination-typejavax.jms.Queue/destination-type in
ejb-jar.xml and destination-location=jms/theQueue in orion-ejb-jar.xml.
Then I ran the coffeemaker.jar sample using the -order flag. My bean did not
get called. Did I do something wrong?

Has anyone tried using MDB with Queue? Any clues?

cheers
romen




JavaMail problem

2001-10-16 Thread Justin Crosbie



Hi 
all,

I'm having trouble 
enabling relaying on my mailserver. I'm using Orion 1.5.2 with the J2EE 1.2.1 
JavaMail, trying to relay toa 5.5 Exchange Server(NT).I've set the 
application.xml to point to my Exchange server as such:

mail-session location="mail/TheMailSession" 
smtp-host="my.mailserver.ie"
 property 
name="mail.transport.protocol" value="smtp"/
 property 
name="mail.smtp.from" value="user@company.com"/
 property name="mail.from" 
value="user@company.com"/
/mail-session
I have set Exchange to 
disable relaying except for the IP address of the machine the appserver is on. 
The problem is I'm still getting the 
"javax.mail.SendFailedException: 550 
Relaying is prohibited" error.
Can anyone shed any light on this? Is there something in Orion 
I need to do as well?
Thanks for any 
help.
Justin 
Crosbie