How to config orion to invoke method via RMI

2001-05-02 Thread Van Duong

I have a method deployed on one server. I want to invoke it from other
server. Both of them run on application orion webserver. Does anyone help me
to config rmi.xml file and the way to call this method in *.jsp from remote
server.

thanks in advance,

-VD




Pass object session from one server to another

2001-04-27 Thread Van Duong




  Dear 
  all,
  
  Does 
  anyonecan show me the way to catch a object session from remote server? 
  I have twoapplications on separated server and I want they can 
  communicate each other through object session. the one can pass its object 
  valueand the other can receive it accordingly.
  
  Any 
  hints much appreciated,
  
  Van 
  Duong
  
  


RE: javax.crypto

2001-04-12 Thread Van Duong



Hi,I want to generate secret key for encrypting a credit card number. But It provide a error as follow:java.lang.NoClassDefFoundError
	at javax.crypto.KeyGenerator.getInstance([DashoPro-V1.2-120198])Could anyone tell me what this error is? any help I would highly appreciate.Van DuongMy code:
import java.security.*;import javax.crypto.*;/*** This program demonstrates how to generate a secret-key object for* HMAC-MD5, and initialize an HMAC-MD5 object with it.*/public class initMac { public static void main(String[] args) throws Exception {// Install SunJCE providerProvider sunJce = new com.sun.crypto.provider.SunJCE();Security.addProvider(sunJce);// Generate secret key for HMAC-MD5KeyGenerator kg = KeyGenerator.getInstance("HmacMD5");SecretKey sk = kg.generateKey();// Get instance of Mac object implementing HMAC-MD5, and // initialize it with the above secret keyMac mac = Mac.getInstance("HmacMD5");mac.init(sk);byte[] result = mac.doFinal("Hi There".getBytes()); }}

  -Original Message-From: Dean Parker 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 11, 2001 
  12:34 PMTo: Orion-InterestSubject: RE: 
  javax.crypto
  That 
  consists of 4 jars known collectively as JCE(Java Cryptography 
  Extension). The current version is 1.2.1.
  
  jce1_2_1.jar
  local_policy.jar
  sunjce_provider.jar
  US_export_policy.jar
  
  jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' 
  implementation of their API. It contains the actual algorithms and code that 
  does all the work. Offhand, I don't know of any other 3rd parties that have 
  implemented the API.
  
  These files must be downloaded from Sun's website at this 
  URL..
  
  http://www.java.sun.com/products/jce/index.html
  
  DP
  
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Van 
DuongSent: Wednesday, April 11, 2001 3:40 AMTo: 
Orion-InterestSubject: javax.crypto
Hi,

Does anyone cantell me wherethe 
packagejavax.crypto is?

    Thanks in advance,

Van 
Duong


javax.crypto

2001-04-11 Thread Van Duong



Hi,

Does 
anyone cantell me wherethe 
packagejavax.crypto is?

Thanks 
in advance,

Van 
Duong


RE: javax.crypto

2001-04-11 Thread Van Duong



thanks 
a lot. I got it.

  -Original Message-From: Dean Parker 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 11, 2001 
  12:34 PMTo: Orion-InterestSubject: RE: 
  javax.crypto
  That 
  consists of 4 jars known collectively as JCE(Java Cryptography 
  Extension). The current version is 1.2.1.
  
  jce1_2_1.jar
  local_policy.jar
  sunjce_provider.jar
  US_export_policy.jar
  
  jce1_2_1.jar is the actual API. sunjce_provider.jar is Suns' 
  implementation of their API. It contains the actual algorithms and code that 
  does all the work. Offhand, I don't know of any other 3rd parties that have 
  implemented the API.
  
  These files must be downloaded from Sun's website at this 
  URL..
  
  http://www.java.sun.com/products/jce/index.html
  
  DP
  
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Van 
DuongSent: Wednesday, April 11, 2001 3:40 AMTo: 
Orion-InterestSubject: javax.crypto
Hi,

Does anyone cantell me wherethe 
packagejavax.crypto is?

Thanks in advance,

Van 
Duong


RE: How to run ORION on different ports

2001-04-05 Thread Van Duong

Delare it in default-web-site.xml file as follow:
web-site host="[ALL]" port="8001" display-name="Default Orion WebSite"

For example:
web-site host="[ALL]" port="8001" display-name="Default Orion WebSite"
!-- The default web-app for this site, bound to the root --
default-web-app application="default" name="defaultWebApp" /

web-app application="mis" name="mis-web" load-on-startup="true"
root="/mis" /
access-log path="../log/default-web-access.log" /
/web-site

Hope this help,

Van Duong

-Original Message-
From: mohan krishna [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 11:13 PM
To: Orion-Interest
Subject: How to run ORION on different ports


Hello,
I am interested to run orion on multiple ports...

Consider the following scenario :

There is only one single server for production and development.
Production sites are represented by virtual hosts, each one runs a
single web site. Each sites of these only runs it's own "default" web
application. 
Development is handled by default web site which runs under port 8080.
Now i want to run one site on 8080 and other one on different port say 80.
What are the things i have to do to achieve this

Any input would be greatly appreciated
Thanks
Mohan Krishna


Get free email and a permanent address at http://www.netaddress.com/?N=1




RE: How to specify a servlet as a main page

2001-04-03 Thread Van Duong

You have to put additional line as :

load-on-startup10/load-on-startup

into paragraph:

servlet
servlet-nameboot/servlet-name
 servlet-classcom.testing.es.start.Boot/servlet-class
load-on-startup10/load-on-startup
/servlet

Hope this help

-Original Message-
From: Ismael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 9:26 AM
To: Orion-Interest
Subject: How to specify a servlet as a main page


Hi all,

Until now I have been using a boot.jsp page as the main entry point to my 
application. But now I have changed it to a servlet.

On the web.xml I have made a servlet mapping,

   servlet
 servlet-nameboot/servlet-name
 servlet-classcom.testing.es.start.Boot/servlet-class
 /servlet
 servlet-mapping
 servlet-nameboot/servlet-name
 url-pattern/start/url-pattern
 /servlet-mapping


the if I write http://localhost/context/start it goes to this servlet.

I would like that whenever the user writes http://localhost/context it is 
redirected to the boot servlet.

I have tried it by putting a servlet mapping only with /  but it does not
work.

I have tried also with the welcome-file-list

 welcome-file-list
welcome-fileboot/welcome-file
 /welcome-file-list

and it does not work.

How should I do it?

Thanks





RE: findByXXX() with an ORDER BY parameter for Container-managed bean ?

2001-04-01 Thread Van Duong

The problem is that How can we just define one method such as

finder-method query="ORDER BY $surname $1"
!-- Generated SQL: "select Employee " --
method
ejb-nameEmployee/ejb-name
method-namefindAll/method-name
method-params
/method-params
/method
/finder-method

And depend on $1 parameter (ASC or DESC) was transfered.  we return the
result with alphabetical
order or vice versa. Is it possible? Any solutions?


-Original Message-
From: Robert Hargreaves [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 10:46 AM
To: Orion-Interest
Subject: RE: findByXXX() with an ORDER BY parameter for
Container-managed bean ?


I have to disagree. We've been using ORDER BY statements in finder method
queries since day 1 and they work fine.
As an example we have a findAll for an Employee entity bean configured as:

finder-method query="ORDER BY $surname ASC"
!-- Generated SQL: "select Employee " --
method
ejb-nameEmployee/ejb-name
method-namefindAll/method-name
method-params
/method-params
/method
/finder-method

and when we run the following we get a list of surnames in alphabetical
order.

EmployeeHome empHome = (EmployeeHome)initCtx.lookup("Employee");
  ArrayList al = (ArrayList)empHome.findAll();
  Iterator iter = al.iterator();
   
  while(iter.hasNext()){
Employee emp = (Employee)iter.next();
System.out.println(emp.getSurname());
  }

If we take the "ORDER BY $surname ASC" statement out, the list ain't in
alphabetical order.

Hope this helps.

Robert Hargreaves.

 -Original Message-
 From: Markus Holmberg [mailto:[EMAIL PROTECTED]]
 Sent: 30 March 2001 16:47
 To: Orion-Interest
 Cc: Magnus Rydin (E-mail)
 Subject: Re: findByXXX() with an ORDER BY parameter for
 Container-managed bean ?
 
 
 Having ORDER BY in finder method queries is futile. Iterators of
 java.util.Collection are not required to return objects in any kind of
 order.