Re: Orion and JMS: javax.naming.NameNotFoundException]

2001-08-24 Thread Daniel López

Hi Kesav,

Thank you very much for your help, it was as simple as that.
Thanks again,
Dan

 Kesav Kumar wrote:
 
 If you want to get any resource in your Servlet/jsp you got define
 resource-ref in your web.xml.
 One basic information as long as you are in the same container you
 don't need any parameters to JDNI context.
 You need jndi.properties only when you try to access from outside the
 container.  Your servlets/jsp/ejb/applicationclient
 
 are in the same orion container so in all these components you can
 directly get JNDI context by
 Context ctx = new InitialContext();
 As long as you are in the same container there is no need for
 jndi.properties.
 
 Regarding the JMS you got define resource-ref in your web.xml.  Any
 container resource of ejb resource you want to use in web tier i.e in
 servlets/jsp you have to define resource-ref and ejb-ref
 correspondingly. For JMS which is a resource so you have to declare
 resource-ref in your web.xml like the following.
 
 resource-ref
 
 res-ref-namejms/theQueueConnectionFactory/res-ref-name
 res-typejavax.jms.QueueConnectionFactory/res-type
 res-authContainer/res-auth
 /resource-ref
 resource-ref
 res-ref-namejms/myQueue/res-ref-name
 res-typejavax.jms.Queue/res-type
 res-authContainer/res-auth
 /resource-ref
 
 Inside your servlet/jsp for connection factory lookup for
 jms/theQueueConnectionFactory and for queue lookup for jms/myQueue.
 
snip...




Re: Orion and JMS: javax.naming.NameNotFoundException]

2001-08-24 Thread Daniel López

Hi David,

Thank you for your help, this example code might be very useful. What
I'm trying to do is centralised login service, to allow a central
authentication service to control acces to different web applications
that can even be in different hosts. I already succesfully implemented
the login part, but now I want to be able to logout from all the
applications at once, and I also want to be able to trace in one place
the user movements through the different applications. That's why I
thought about using JMS to implement the communication between the
different applications and the central authorization site. My concern is
now whether JMS, specifically Orion's implementation, is mature enough
as to have all my applications depending from it. Or are JMS
implementations in general as inmature and buggy as Michel J. Cannon
stated?
Thank you again,
D.

 From:  David Libke [EMAIL PROTECTED] jue 16:47
 Subject: RE: Orion and JMS: javax.naming.NameNotFoundException]
 To: Orion-Interest [EMAIL PROTECTED]
 
 Daniel,
  
 This my second reply to your question. Apperantly my first was lost since another 
reply submitted after yours appeared
 on the list yesterday but not yours.
  
 In addition, you might want to apply the following edits to jms.xml:
  
.- Configure jms.xml with this content: 
jms-server port=9127 host= 
queue name=Demo Queue location=jms/demoQueue 
descriptionA dummy queue/description 
/queue 
log 
file path=../logs/jms.log / 
/log 
/jms-server 
 This class might simplify your use of messaging:
  
 public class MessageSender implements Serializable
 {
 public MessageSender(String queueName, String topicName) throws MagnetException
 {
 this.queueName = queueName;
 this.topicName = topicName;
 initMessaging();
 }
  
 private void initMessaging()
 {
 try
 {
 if (queueName == null  topicName == null)
 {
 throw new IllegalArgumentException(MessageSender: initMessaging: No 
topic name or queue name);
 }
 InitialContext jndiEnc = new InitialContext();
 if (queueName != null)
 {
 QueueConnectionFactory factory = (QueueConnectionFactory)
 jndiEnc.lookup(JNDINames.QUEUE_CONNECTION_FACTORY);
 qConnect = factory.createQueueConnection();
 qConnect.start();
 qSession = qConnect.createQueueSession(false, 
Session.AUTO_ACKNOWLEDGE);
 try
 {
 requestQ = (Queue)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + 
queueName);
 }
 catch (NameNotFoundException nnfex)
 {
 requestQ = qSession.createQueue(queueName);
 }
 qSender = qSession.createSender(requestQ);
 }
 if (topicName != null)
 {
 TopicConnectionFactory factory = (TopicConnectionFactory)
 jndiEnc.lookup(JNDINames.TOPIC_CONNECTION_FACTORY);
 System.out.println(MessageSender: initMessaging: got connection 
factory  + factory);
 tConnect = factory.createTopicConnection();
 tConnect.start();
 tSession = tConnect.createTopicSession(false, 
Session.AUTO_ACKNOWLEDGE);
 try
 {
 requestT = (Topic)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + 
topicName);
 }
 catch (NameNotFoundException nnfex)
 {
 requestT = tSession.createTopic(queueName);
 }
 publisher = tSession.createPublisher(requestT);
 }
 }
 catch (JMSException jmsex)
 {
 throw new UndeclaredThrowableException(jmsex, MessageSender: 
initMessaging:  + jmsex.getMessage());
 }
 catch (NamingException nex)
 {
 throw new UndeclaredThrowableException(nex,
 MessageSender: initMessaging: Problem looking up 
JmsQueueConnectionFactory);
 }
}
  
 protected void finalize()
 {
 try
 {
  if (qConnect != null)
  qConnect.close();
  qConnect = null;
  qSession = null;
  qSender = null;
  requestQ = null;
  
  if (tConnect != null)
  tConnect.close();
  tConnect = null;
  tSession = null;
  publisher = null;
  requestT = null;
 }
 catch (JMSException jex)
 {
 }
 }
  
 
  private void writeObject(java.io.ObjectOutputStream out) throws IOException
 {
 try
 {
  if (qConnect != null)
  qConnect.close();
  

Virtual DirecTory -- Help

2001-08-24 Thread Eddie Post

Hellu,

I am trying to exculde my JSP files from the war file, such that the
designer can easily change them without my help (withoud deployment,
etc...).

Anyone any idea/advice how to do that as I tried many things, but
appearantly am not able to succeed ?

What I tried  (I am running on a linux box, RedHat 7.0, Orion 1.5.1, JDK
1.3) ?
- First I changed the jsp entry in my web.xml, from a relative path to a
absolute path, that doesn't work, as he always starts looking from within
the web application:
---
 servlet
  servlet-nameMainWebShop/servlet-name
  display-nameMain page of web-shop/display-name
  description/description

jsp-file/home/development/vwr/web-client/jsp/webwinkel/html/main.jsp/jsp-
file
 /servlet
--
- I did add a virtual directoy entry in orion-web.xml of the the default web
application, as the application runs under the default web application:
-
virtual-directory real-path=/home/development/vwr/web-client/jsp
virtual-path=/VWR/jsp /

However this doesn't work as the j2ee application itself listens to the root
url /VWR/.
It also tried the following:
-
virtual-directory real-path=/home/development/vwr/web-client/jsp
virtual-path=/VWR_jsp /

Which works but then the jsp's don't run in the application environment, and
as such you need to make a connection as if you were an external j2ee
client, which isn't very logical ofcource.
- I tried to put a symbolic link in the war file to the jsp's, but jar
doesn't understand that. It will just copy all the files.

Any ideas are more than welcome.

Eddie :(





RE: Yahoo orion list is up..

2001-08-24 Thread Russ White

http://groups.yahoo.com/group/orionserver
Post message: [EMAIL PROTECTED]
Subscribe:  [EMAIL PROTECTED]
Unsubscribe:  [EMAIL PROTECTED]
List owner:  [EMAIL PROTECTED]

56 members so far... It really is very slick.

I appreciate the orion-interest group, but a good host like this has been long
over due. It can only make the Orion support better.

Check it out.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Martin J.
Wells
Sent: Thursday, August 23, 2001 8:12 PM
To: Orion-Interest
Subject: RE: Yahoo orion list is up..


I must have missed it. What are the new list details?

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Russell White
 Sent: Friday, 24 August 2001 6:45 AM
 To: Orion-Interest
 Subject: Re: Yahoo orion list is up..


 6 members so far. Keep em coming

 --- Duffey, Kevin [EMAIL PROTECTED] wrote:
  Damn..I got a response in under 3 minutes! Haven't seen that on
 the orion
  list for many months.
 
 
 


 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/





RE: Orion and JMS: javax.naming.NameNotFoundException]

2001-08-24 Thread David Libke

Daniel,

For the logout service I think I would use durable 'logout' topic which
would guarantee delivery. If you believe you might run into high volume
degradation, then look at SonicMQ messaging server. They wrote the book on
JMS -- literally.

Dave

-Original Message-
From: Daniel López [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 2:45 AM
To: Orion-Interest
Subject: Re: Orion and JMS: javax.naming.NameNotFoundException]


Hi David,

Thank you for your help, this example code might be very useful. What
I'm trying to do is centralised login service, to allow a central
authentication service to control acces to different web applications
that can even be in different hosts. I already succesfully implemented
the login part, but now I want to be able to logout from all the
applications at once, and I also want to be able to trace in one place
the user movements through the different applications. That's why I
thought about using JMS to implement the communication between the
different applications and the central authorization site. My concern is
now whether JMS, specifically Orion's implementation, is mature enough
as to have all my applications depending from it. Or are JMS
implementations in general as inmature and buggy as Michel J. Cannon
stated?
Thank you again,
D.

 From:  David Libke [EMAIL PROTECTED] jue 16:47
 Subject: RE: Orion and JMS: javax.naming.NameNotFoundException]
 To: Orion-Interest [EMAIL PROTECTED]
 
 Daniel,
  
 This my second reply to your question. Apperantly my first was lost since
another reply submitted after yours appeared
 on the list yesterday but not yours.
  
 In addition, you might want to apply the following edits to jms.xml:
  
.- Configure jms.xml with this content: 
jms-server port=9127 host= 
queue name=Demo Queue location=jms/demoQueue 
descriptionA dummy queue/description 
/queue 
log 
file path=../logs/jms.log / 
/log 
/jms-server 
 This class might simplify your use of messaging:
  
 public class MessageSender implements Serializable
 {
 public MessageSender(String queueName, String topicName) throws
MagnetException
 {
 this.queueName = queueName;
 this.topicName = topicName;
 initMessaging();
 }
  
 private void initMessaging()
 {
 try
 {
 if (queueName == null  topicName == null)
 {
 throw new IllegalArgumentException(MessageSender:
initMessaging: No topic name or queue name);
 }
 InitialContext jndiEnc = new InitialContext();
 if (queueName != null)
 {
 QueueConnectionFactory factory = (QueueConnectionFactory)
 jndiEnc.lookup(JNDINames.QUEUE_CONNECTION_FACTORY);
 qConnect = factory.createQueueConnection();
 qConnect.start();
 qSession = qConnect.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);
 try
 {
 requestQ =
(Queue)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + queueName);
 }
 catch (NameNotFoundException nnfex)
 {
 requestQ = qSession.createQueue(queueName);
 }
 qSender = qSession.createSender(requestQ);
 }
 if (topicName != null)
 {
 TopicConnectionFactory factory = (TopicConnectionFactory)
 jndiEnc.lookup(JNDINames.TOPIC_CONNECTION_FACTORY);
 System.out.println(MessageSender: initMessaging: got
connection factory  + factory);
 tConnect = factory.createTopicConnection();
 tConnect.start();
 tSession = tConnect.createTopicSession(false,
Session.AUTO_ACKNOWLEDGE);
 try
 {
 requestT =
(Topic)jndiEnc.lookup(JNDINames.JMS_DIRECTORY + topicName);
 }
 catch (NameNotFoundException nnfex)
 {
 requestT = tSession.createTopic(queueName);
 }
 publisher = tSession.createPublisher(requestT);
 }
 }
 catch (JMSException jmsex)
 {
 throw new UndeclaredThrowableException(jmsex, MessageSender:
initMessaging:  + jmsex.getMessage());
 }
 catch (NamingException nex)
 {
 throw new UndeclaredThrowableException(nex,
 MessageSender: initMessaging: Problem looking up
JmsQueueConnectionFactory);
 }
}
  
 protected void finalize()
 {
 try
 {
  if (qConnect != null)
  qConnect.close();
  qConnect = null;
  qSession = null;
  qSender = null;
  requestQ = null;
  

Re: Yahoo orion list is up..

2001-08-24 Thread Mike Shoemaker

You have to subscribe.

http://groups.yahoo.com/group/orionserver




- Original Message -
From: Holden Glova [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, August 23, 2001 9:11 PM
Subject: Re: Yahoo orion list is up..


 For some reason I can't send any mail to the orion yahoo list - they
 come back undeliverable :(

 Martin J. Wells wrote:

  I must have missed it. What are the new list details?
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Russell White
 Sent: Friday, 24 August 2001 6:45 AM
 To: Orion-Interest
 Subject: Re: Yahoo orion list is up..
 
 
 6 members so far. Keep em coming
 
 --- Duffey, Kevin [EMAIL PROTECTED] wrote:
 
 Damn..I got a response in under 3 minutes! Haven't seen that on
 
 the orion
 
 list for many months.
 
 
 
 
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/
 
 
 


 --
 +---+
 | Holden GlovaAlchemy Group Limited |
 | Software Engineer   P: +64 3 962-0396 |
 | [EMAIL PROTECTED]   F: +64 3 962-0388 |
 | http://www.alchemy.co.nz  |
 +---+



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Yahoo Orion List

2001-08-24 Thread Bill Clinton

Hello,
 I fully support starting another Orion list to replace this one, 
but could the person who started it please send a message to this group 
on the details of signing up for it?  I would also suggest crafting a 
message that can be sent to this group occasionally to explain the 
purpose of the new list, who its moderator is, etc.

 Also, we should notify Orion(Ironflare) and see if they can put a 
link to the new list on their site.  It is very possible that they would 
have no problem with this, since they obviously took no real interest in 
this list anyway.  If they do agree, it would probably take them 3 
months to post it on their site, but its worth a try :)

Bill





New Orion Support Mailing list on YahooGroups.

2001-08-24 Thread Mike Shoemaker

To subscribe send an email to [EMAIL PROTECTED]
The Group's URL is at http://groups.yahoo.com/group/orionserver


Here are the other addresses you will need to participate.  
Post message: [EMAIL PROTECTED] 
Subscribe:  [EMAIL PROTECTED] 
Unsubscribe:  [EMAIL PROTECTED] 
List owner:  [EMAIL PROTECTED] 



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





www.elephantwalker.com

2001-08-24 Thread The elephantwalker

Dear Group,

As many of you know, I am a frequent contributor to the list. About three
months ago, we had a long thread on the need for customer support for Orion.
In late June, I contacted Karl Avedal with Ironflare about my company
providing support for Orion. Karl was very encouraging, so my company
decided to go forward with this venture.

Last Friday our support site went up, www.elephantwalker.com. In the site,
we provide
a free public application for users to post their questions about Orion.
Users
can up-load files to the forum as well as bury a topic when the problem is
solved...a very useful feature when a problem is solved.

We hope that Elephantwalker Support Site will be useful and more reliable
than
the email list.

We also offer subscription-based customer support for the Orion(tm)
Application
Server.  Users may purchase on-line or phone-based support packages. In
addition, we offer a client-site, two-day Orion class in the San Francisco
Bay
area

Join us at www.elephantwalker.com, its free! As far as reliability is
concerned, the site is hosted at Upnetworks in San Francisco, a telecon
grade facility. This means that even during a power failure or natural
disaster the site will continue to operate. We use two separate servers for
the site for reliability. The back-end is Oracle which is running on a raid
configured server for reliability. This site won't go down. As far as band
width is concerned, Upnetworks has several OC-64 network connections to the
internet.

Many have asked what technology we use to power the site. Here is a short
list:

1. Redhat 7.1 with the enterprise kernel is used on the application servers.
2. Two Orion application servers are used to serve up the web pages and
enterprise application.
3. The enterprise application is a distributable forum application so that
if one server goes down, the other server will continue to serve up web
pages. The users will never know that their server has gone done, since the
session are shared across the cluster. This is unlike another well known
forum application, Jive's, which is not distributable.
4. The forum application allows users to up-load files and have lengthy
forum messages. We have imposed a limit of 50k per message, and 2 MB for
up-loads, but our technology has no limit on the message size or file size.
The application is run completely within Orion as an ear file.
5. Our back-end is Oracle 8.1.7, but we do not use any special Oracle
features.


For those of you on the list, don't despair, I will continue to contribute
to the list.

regards,

the elephantwalker





Re: Yahoo Orion List

2001-08-24 Thread Bill Clinton

Hi -
nevermind.  by the time this came through list, my question had 
already been answered.  Which i guess is one of the reasons we needed a 
new list :)

Bill

Bill Clinton wrote:

 Hello,
 I fully support starting another Orion list to replace this one, but 
 could the person who started it please send a message to this group on 
 the details of signing up for it?  I would also suggest crafting a 
 message that can be sent to this group occasionally to explain the 
 purpose of the new list, who its moderator is, etc.
 
 Also, we should notify Orion(Ironflare) and see if they can put a 
 link to the new list on their site.  It is very possible that they would 
 have no problem with this, since they obviously took no real interest in 
 this list anyway.  If they do agree, it would probably take them 3 
 months to post it on their site, but its worth a try :)
 
 Bill





RE: I think, I will start a support site too....

2001-08-24 Thread The elephantwalker

Group,

In order to battle the big boys, Orion needs us all. This is why I started
my support site. Although this is a commercial venture, our goal is to
provide a support community for Orion. If you take a look at the submissions
on the Oracle container support list, you can see that even Oracle needs
some help in understanding some bits of Orion.

For those of you who have already signed up at the site, thanks. I thought
about just providing a maillist server, but felt that what we really needed
was some type of forum application. Several of you have made suggestions
about improving the site, and we are making these changes:

1. automatic logins.
2. wider input forms for the messages.
3. a message thread view as well as the default forum view.
4. next and previous message buttons.
5. message filters so that html tags in the message are not necessary.
6. search engine for the messages and the site.

We are also adding a news application so that members can directly add news
to the site. The up-coming tips and hints page will include the steps that
were taken to build the forum application, including:

1. breaking the 4k barrier for clobs and lobs in Oracle.
2. distributing the application so that session clustering works.
3. encrypted user security.

Regards,

the elephantwalker








Re:New Orion Support Mailing list on YahooGroups.

2001-08-24 Thread Henrik Kniberg

Hi! This is an automatic vacation message.

I'm on vacation until september 17. If you can't wait that long for my reply please 
email [EMAIL PROTECTED] instead. If you need to reach me urgently send an SMS 
to 46704925284 and I'll hopefully be able to call back within a few days.

Cheers,

/Henrik