Re: Where is orion-application.xml?
ORION-DIR/application-deployments/your-application/orion-application.xml - Original Message - From: Chris Boz Jennings [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 25, 2002 4:53 AM Subject: Where is orion-application.xml? I've got Orion working fine on Mac OS X but am having trouble getting the examples to work. The ejb examples deployed without complaint but the docs say to add user-manager class=com.evermind.ejb.EJBUserManager property name=home value=com.evermind.ejb.EJBUser / property name=defaultGroups value=users / /user-manager ... to META-INF/orion-application.xml but there is no such file anywhere in the orion tree. Any insight would be great. ,boz
Job Scheduler pattern
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
SV: Generating descriptors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I use the deploytool that ships with J2EE 1.3. It works great. You can build your jar and ear files in it as well. /Fredrik - -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]För Michal Palicka Skickat: den 24 januari 2002 14:28 Till: Orion-Interest Ämne: Generating descriptors Hello, what tools do you use to generate various descriptors (beans, applications, etc.)? Do you prefer writing descriptors manualy? Could you give me any hints? I tried the EJB Assembler tool, which is a part of Orion, but I could not generate the EJB descriptor. I am able to generate the EJB jar file, but without the descriptor. When I try to save the descriptor I always get the following error: Couldn't save to that location: META-INF. Could you tell me, what are the correct steps to generate an EJB + the corresponding descriptor? Thanks in advance Michal Palicka, Cleverlance -BEGIN PGP SIGNATURE- Version: PGP 7.0.4 iQA/AwUBPFEpM5Q4KypQ8VZIEQKz7gCbB2rw3gfM2oZQ2Xy2vyX+qR6ctugAmwS7 eIyn5AsPaYi9AHREithoza2w =urF5 -END PGP SIGNATURE-
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
HTTP 1.1 POSTgenerates duplicated response
We are hitting this extrange behaviour: We have a post response calling an entity bean in our Orion server and when the POST HTTP request is logged in HTTP1.1 protocol the function of the Entity Bean is called twice but there is only one request logged!! We get this behaviour when using IE 5.5 (HTTP1.1) but when the client is IE 5.0 (HTTP 1.0) the function is called only once. Is there any configuration problem? Thank you Inaki
Re: Job Scheduler pattern
I'm using a TImer and TimerTasks in my system, and it works perfectly well (even though one is not supposed to use threads in an EJB). What kind of RemoteException are you getting? Cheers, Magnus On fredag, januari 25, 2002, at 10:02 , 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
RE: Retrieving stateful session bean
I tried working through this a couple of weeks ago and found no easy solution to accessing the session in the User Manager. For what you are trying to do, it seems you should be able to use the isUserInRole() method once the request actually gets to your application to make the decisions on what to display. Marc -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mulder, Frans Sent: Thursday, January 24, 2002 11:09 AM To: Orion-Interest Subject: Retrieving stateful session bean Hello list, Here's the situation: I've implemented a custom user manager in the way described in http://kb.atlassian.com/content/orionsupport/articles/usermanager.html and it works fine to restrict certain areas in my web app to specific groups. Authentication is done against an Oracle database using CMP entity beans. When the checkPassword method in my user manager is about to return true, I create a stateful session bean in which I store the user id of the successfully logged in user, so I can later check his rights (in order to later make the decision to display buttons, etc.). But how do I access this specific instance of the sfsb later on? I cannot store the handle in the session object, because I don't have access to the session object from my user manager (or do I?). So how can this be done? Frans winmail.dat Description: application/ms-tnef
Re: HTTP 1.1 POSTgenerates duplicated response
IE uses to call an url twice. I have come upon this behavior. I am not sure of the reason. I have also seen, that the default method for the HEAD request calls the GET method with a dummy HTTPServletResponse. It just returns the headers, that are sent by the servlet. This may be your problem, IF you are accessing the bean in the GET method also. Try a few things to clear this out (log in all methods to see what method is called when). This is quite unclear, but I have come to think that it is IE to send a request twice. I have seen it try to access a jsp, then the JSP dies with a Connection Closed By Foreign Host, and then IE requests the JSP again. I am quite sure it is not Orion, but IE. Haven't seen that with Netscape. Lachezar We are hitting this extrange behaviour: We have a post response calling an entity bean in our Orion server and when the POST HTTP request is logged in HTTP1.1 protocol the function of the Entity Bean is called twice but there is only one request logged!! We get this behaviour when using IE 5.5 (HTTP1.1) but when the client is IE 5.0 (HTTP 1.0) the function is called only once. Is there any configuration problem? Thank you Inaki
SMTP Services for Orion?
Is there any way to add SMTP services to Orion? I am hosting a site, and I need the ability to route incoming email. For example, for all incoming email to *@mysite.com, forward to [EMAIL PROTECTED]. Thanks, Mark
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
Where to put JAAS classfiles (loginmodules) when using it from a web app
Hi, I am using JAAS authentication from a web application, the problem is that the login modules that I use, and all the classes that the LoginModule uses are not loaded from the WEB-INF/classes or WEB_INF/lib folder. I have to put them on the jdk/jre/lib/ext. The problem is that the classes I put there collide with other applications that use the same installed JDK and also with some other webapplications that run on the same application server. I have developed it using jdk1.3.1 and JAAS 1.0. Is there a way to put specify where login module classes should be loaded that does not interfere with other applications (that is, I do not want to put any class on the jdk/ jre/lib/ext folder). Cheers
Re: Where is orion-application.xml?
Thanks for the feedback. I now see that orion-application.xml got auto-generated when I ran the client the first time. Duh! I was still unable to connect until I changed the password for my admin in orion-root/demo/ejb/product/jndi.properties -- This should be in the example install instructions. I had to search the archives to figure it out. Better yet, the docs should allow user comments ala slashdot. Thanks again, ,boz On Friday, January 25, 2002, at 01:02 AM, Petr Podsednik wrote: ORION-DIR/application-deployments/your- application/orion-application.xml - Original Message - From: Chris Boz Jennings [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 25, 2002 4:53 AM Subject: Where is orion-application.xml? I've got Orion working fine on Mac OS X but am having trouble getting the examples to work. The ejb examples deployed without complaint but the docs say to add user-manager class=com.evermind.ejb.EJBUserManager property name=home value=com.evermind.ejb.EJBUser / property name=defaultGroups value=users / /user-manager ... to META-INF/orion-application.xml but there is no such file anywhere in the orion tree. Any insight would be great. ,boz
RE: Where is orion-application.xml?
However, you should really be placing this file in your EAR's META-INF directory. It will automatically be copied to the application-depoyments directory upon new deployments. Anytime you make changes to this file in the ear you will need to delete the whole application-depoyments/your-application directory. Daniel -Original Message- From: Petr Podsednik [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:03 AM To: Orion-Interest Subject: Re: Where is orion-application.xml? ORION-DIR/application-deployments/your-application/orion-application .xml - Original Message - From: Chris Boz Jennings [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 25, 2002 4:53 AM Subject: Where is orion-application.xml? I've got Orion working fine on Mac OS X but am having trouble getting the examples to work. The ejb examples deployed without complaint but the docs say to add user-manager class=com.evermind.ejb.EJBUserManager property name=home value=com.evermind.ejb.EJBUser / property name=defaultGroups value=users / /user-manager ... to META-INF/orion-application.xml but there is no such file anywhere in the orion tree. Any insight would be great. ,boz
Re: SMTP Services for Orion?
To answer my own question, and ask yet another I got James (http://jakarta.apache.org/james/) installed and working. Is there any way to host James from within Orion? It would be nice to have all this functionality in a single JVM. - Mark - Original Message - From: Mark A. Richman To: Orion-Interest Sent: Friday, January 25, 2002 10:42 AM Subject: SMTP Services for Orion? Is there any way to add SMTP services to Orion? I am hosting a site, and I need the ability to route incoming email. For example, for all incoming email to *@mysite.com, forward to [EMAIL PROTECTED]. Thanks, Mark
javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject
Can Orion handle local interfaces, i.e., javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject ? I am going through Ed Roman's Mastering EJB 2nd edition and it uses these (as part of EJB 2.0, I assume.) ,boz
RE: Job Scheduler pattern
It *can* use the Timer classes; it just doesn't. The danger in using Timer, of course, is resoruce starvation if the event being started restarts before the previous execution finishes. On Fri, 25 Jan 2002, Justin Crosbie wrote: 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 --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject
Orion only has partial ejb 2.0 compliance - local interfaces are not part of what's included. Full compliance is coming - but I personally don't know when. --- Chris Boz Jennings [EMAIL PROTECTED] wrote: Can Orion handle local interfaces, i.e., javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject ? I am going through Ed Roman's Mastering EJB 2nd edition and it uses these (as part of EJB 2.0, I assume.) ,boz __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com
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
RE: javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject
Nope..doesn't support EJB Local. -Original Message- From: Chris Boz Jennings [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:43 PM To: Orion-Interest Subject: javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject Can Orion handle local interfaces, i.e., javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject ? I am going through Ed Roman's Mastering EJB 2nd edition and it uses these (as part of EJB 2.0, I assume.) ,boz
RE: javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject
If you look at the interfaces in 1.5.3, the local interfaces are there. AFAIK, it doesn't work yet, though. In a previous thread, Magnus Rydin wrote about the re-factoring is happening now so that EJB 2.0 will work. Maybe this will be in 1.5.4, which isn't out yet. Another encouraging sign is that Oracle indicates that 9iAS will meet j2ee 1.3 soon. Regards, the elephantwalker www.elephantwalker.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Chris Boz Jennings Sent: Friday, January 25, 2002 12:43 PM To: Orion-Interest Subject: javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject Can Orion handle local interfaces, i.e., javax.ejb.EJBLocalHome and javax.ejb.EJBLocalObject ? I am going through Ed Roman's Mastering EJB 2nd edition and it uses these (as part of EJB 2.0, I assume.) ,boz
Re: Where is orion-application.xml?
Chris, You can leave annotations on the Atlassian knowledge base. http://kb.atlassian.com/content/orion/docs/examples/ejb.html Cheers, Scott -- Scott Farquhar :: [EMAIL PROTECTED] Atlassian :: http://www.atlassian.com Supporting YOUR J2EE World Chris Boz Jennings wrote: Thanks for the feedback. I now see that orion-application.xml got auto-generated when I ran the client the first time. Duh! I was still unable to connect until I changed the password for my admin in orion-root/demo/ejb/product/jndi.properties -- This should be in the example install instructions. I had to search the archives to figure it out. Better yet, the docs should allow user comments ala slashdot. Thanks again, ,boz On Friday, January 25, 2002, at 01:02 AM, Petr Podsednik wrote: ORION-DIR/application-deployments/your- application/orion-application.xml - Original Message - From: Chris Boz Jennings [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, January 25, 2002 4:53 AM Subject: Where is orion-application.xml? I've got Orion working fine on Mac OS X but am having trouble getting the examples to work. The ejb examples deployed without complaint but the docs say to add user-manager class=com.evermind.ejb.EJBUserManager property name=home value=com.evermind.ejb.EJBUser / property name=defaultGroups value=users / /user-manager ... to META-INF/orion-application.xml but there is no such file anywhere in the orion tree. Any insight would be great. ,boz