Re: UserTransaction

2001-06-19 Thread Klaus Thiele


 Phan Anh Tran wrote:
  Yeah, but can I do that from a stand-alone APP running in separate

no, you can't.
(and it is a better design to handle transactions on the server side.
for example you can use sessionbeans for your businesslogic(+transactions)
from your standalone-app)

Am Montag, 18. Juni 2001 16:23 schrieben Sie:
 I don't know, I've never tried it. I would try it and let the list
 know the result. You're going to need to set the jndi properties
 using a jndi.properties file in your client. This is well documented
 elsewhere in this list. Once the jndi context is set up correctly, I
 see no reason why it wouldn't work.

 Jeff.

 Phan Anh Tran wrote:
  Yeah, but can I do that from a stand-alone APP running in separate
  VM?
 
  Anh
 
  - Original Message -
  From: Jeff Hubbach [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Friday, June 15, 2001 6:05 AM
  Subject: Re: UserTransaction
 
   Check www.orionserver.com, under the FAQ link:
  
   How do I get a reference to the TransactionManager?
  
  
  import javax.naming.*;
  import javax.transaction.*;
  ...
  TransactionManager manager = (TransactionManager)new
   InitialContext().lookup(java:comp/UserTransaction);
  
   Jeff Hubbach
  
   Phan Anh Tran wrote:
With orion, Is it possible to look up a user transaction
outside an EJB (a stand-alone app for example)?  Thanks
  
   --
   Jeff Hubbach
   Internet Developer
   New Media Designs, Inc.
   www.nmd.com
 
  _
  Do You Yahoo!?
  Get your free @yahoo.com address at http://mail.yahoo.com

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Klaus Thiele - Personal  Informatik AG
mailto:[EMAIL PROTECTED]

 Your mouse has moved.
  Windows must be restarted for the change to take effect.




Re: [EJB][1.5.1] ShowStopper on CMP deploying

2001-06-19 Thread Steffen Stundzig

Hi Ara,

 Ara Abrahamian [EMAIL PROTECTED] wrote:
 I want to notice another limitation: if you have a CMP bean with ejb-name
 say bank/Account, then orion throws an exception when generating tables,
 etc. Orion should use table name bank_Account for example but it doesn't
 expect a / in ejb-name and fails.

my solution for this problem was, to write down an 'orion-ejb-jar.xml' with an
alternative table name. 

But I think also, that orion should handle this without an exception.


Regards
Steffen...

-- 
__
Steffen Stundzigmailto:[EMAIL PROTECTED]
SMB GmbHhttp://www.smb-tec.com







Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-19 Thread Steffen Stundzig

Hi Eddie,

 Eddie [EMAIL PROTECTED] wrote:
 Hellu,
 
 I am have still having problems with the problem below. Can someone PLEASE
help me with this ???

do you have tested this with absolute path's? 

I've have disabled, that orion deploys my ear in an specific deployment
directory. Otherwise the relative path's such as in your sample can become
incorrect. Then the relative paths works for me.

Regards
Steffen...

-- 
__
Steffen Stundzigmailto:[EMAIL PROTECTED]
SMB GmbHhttp://www.smb-tec.com







Re: Servlet and CSS

2001-06-19 Thread Johan Fredriksson

Use Netscape to develop this for the first time, since Netscape complains
more ( Netscape 6 is worst / best ).

the file
blaf.css
as you have now written the code is assumed to be in the /servlet dir, which
probably is not the case.

Use something like

request.getContextPath()+/css/blaf.css

which assumes your css is in the

appname-web/css/

directory. ( The app can be mounted anywhere, request.getContextPath()
handles that. )



Johan


- Original Message -
From: Holden Glova [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 3:57 AM
Subject: Re: Servlet and CSS


 Brynolf Andersson wrote:
 
  Hi all gurus,
  I am trying to include a CSS in my servlet:
 
  out.println(html);
  out.println(head);
  out.println(titleUntitled Document/title);
  out.println(meta http-equiv=\Content-Type\ content=\text/html;
  charset=iso-8859-1\);
  out.println(link rel=\StyleSheet\ href=\blaf.css\
  type=\text/css\);
  out.println(/head);
 
  But it won't work for me. So where should I put the blaf.css in my Web
  application structure to get it working, or is there something wrong
with my
  HTML ???
 
  Thanks a lot

 I'll start with the obvious? is blaf.css
 located there? Remember that they are
 relative paths.

 Kind regards,

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





No Subject

2001-06-19 Thread Trent Rosenbaum

I am developing a system using Orion, I have developed a previous system
using the server.  The first system was using a web front end and included
jsp, sevlets and different EJBS.  The current system I want to develop is a
RMI front end and an EJB back end.  I have not done this before and I am
finding it hard to develop the RMI Client.  From what I can understand is
that a RMI Client must be included in the Orion server, but I thought the
point of RMI was to be able to distribute the system across many machines
and not just in a single server.

I have found it therefore hard to follow the examples and develop a test
application.  Can anyone give me some help with the processes that are
involved with this method of development.

Many thanks

Trent


== 
This communication contains information which is
confidential and may also be privileged. It is for the
exclusive use of the intended recipient(s). If you are
not the intended recipient(s) please note that any
distribution, copying or use of this communication
or the information in it is strictly prohibited.

Global Internet Billing Limited
598-608 Chiswick High Road
London W4 5RT +44 (0) 20 8612 8612

http://www.glintbill.com






RE: Servlet and CSS

2001-06-19 Thread Simon Kitching

Hi,

You have not put an absolute path on your href, so the webbrowser will
generate an absolute path by merging this filename with the URL it loaded
the parent document from (ie your servlet's URL).

Are you accessing your servlet as http://host:port/servlet/serletname?
If so, then the webbrowser will request http://host:port/servlet/blaf.css,
which I suspect doesn't exist.

Either:
(a) put an absolute path on your href for the css
(b) put a relative path (eg ../blaf.css, which will resolve to
http://host:port/servlet/../blaf.css, ie http://host:port/blaf.cxx)
(c) use the servlet-mapping tag in WEB-INF/web.xml so that your servlet
appears to be in the same directory as you want to put your stylesheet file
in.

Hope this helps,

Simon

 -Original Message-
 From: Brynolf Andersson [mailto:[EMAIL PROTECTED]]
 Sent: 18 June 2001 23:25
 To: Orion-Interest
 Subject: Servlet and CSS
 
 
 Hi all gurus,
 I am trying to include a CSS in my servlet:
 
 out.println(html);
 out.println(head);
 out.println(titleUntitled Document/title);
 out.println(meta http-equiv=\Content-Type\ content=\text/html; 
 charset=iso-8859-1\);
 out.println(link rel=\StyleSheet\ href=\blaf.css\ 
 type=\text/css\);
 out.println(/head);
 
 But it won't work for me. So where should I put the blaf.css 
 in my Web 
 application structure to get it working, or is there 
 something wrong with my 
 HTML ???
 
 Thanks a lot
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 


___
This communication contains  information which  is confidential and
may also be privileged. It is for the exclusive use of the intended
recipient. If you are  not the intended recipient, please note that
any form of distribution, copying or  use of this  communication or
the information in it is strictly prohibited. If  you have received
this communication  in  error,  please  return  it  with  the title
received in error  to  [EMAIL PROTECTED]  then  delete the
email and destroy any copies of it. Please contact our Helpdesk  on
0162876 if you need assistance. Thank you for your cooperation.
___




Re: Classpath and library path ERROR ??? -- PLEASE again ???

2001-06-19 Thread Eddie



Thanks,

Indeed the library tag wasn't on the correct place 
in the orion-application.xml.
However, after placing it in the correct place it 
still doesn't work:

.
web-module id="web" path="web" 
/persistence path="persistence" /

 
library path="./lib" / 
library path="./lib/log4j-core.jar" 
/ library 
path="./lib/log4j.jar" /

principals path="principals.xml" 
/ 
logfile path="application.log" 
//lognamespace-access
---

I also tried the orion-web.xml:


orion-web-appdeployment-version="1.5.1"development="true"jsp-cache-directory="./persistence"temporary-directory="./temp"servlet-webdir="/servlets/" 
classpath path="./lib/log4j-core.jar" /ejb-ref-mapping 
name="ejb/UserManagerHome" /...


But didn't had much luck, which didn't suprise me, 
as I am using the lib files in my ejb's.
I am sure that the jar files can be find by Orion, 
as it complaints when it can't find the files.

But are you using Linux ?? I have a friend that has 
exatly the same problems on his linux machine!! .-- :(
Shoudn't I put it all in a ear file ?? and if so, 
where ??

Hope you have some ideas as I don't have them 
anymore. Neither do I know how to debug this, as Orion doesn't show that it 
loads the jar file...or where it looks..
Hmmm... frustrating..
Eddie

  - Original Message - 
  From: 
  elephantwalker 
  To: Orion-Interest 
  Sent: Monday, June 18, 2001 6:20 PM
  Subject: RE: Classpath and library path 
  ERROR ??? -- PLEASE again ???
  
  The 
  dtd for orion-application.xml says about library:
  
  !-- A relative/absolute path/URL to a directory or a .jar/.zip to 
  add as a library-path for this server. Directories are scanned for jars/zips 
  to include at startup. --!ELEMENT library 
  (#PCDATA)!ATTLIST library path CDATA 
  #IMPLIED
  
  The 
  main orion-application element is:
  
  !ELEMENT orion-application 
  (ejb-module*,web-module*,client-module*,security-role-mapping*, persistence?, 
  library*, principals?, mail-session*, user-manager?, log?, data-sources?, 
  namespace-access?)
  
  Note 
  the order. If library is not in the right order (after persistence and before 
  principals), this won't work.
  
  But 
  this is application, which is for the overall server. You might try the 
  orion-web.xml for specific support of a codebase of a war 
  file:
  
  !-- Specifies a codebase where classes used by this application 
  (servlets/beans, etc) can be found. --!ELEMENT classpath 
  (#PCDATA)!ATTLIST classpath path CDATA 
  #IMPLIED
  
  This 
  should be the first element in your orion-web-app element.
  
  regards,
  
  the 
  elephantwalker
  
  
  
  
  
  
  
  
  
-Original Message-From: 
[EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of 
EddieSent: Monday, June 18, 2001 8:15 AMTo: 
Orion-InterestSubject: Re: Classpath and library path ERROR ??? 
-- PLEASE again ???
Hellu,

I am have still having problems with the 
problem below. Can someone PLEASE help me with this ???

Eddie



  - Original Message - 
  From: 
  Eddie 
  To: Orion-Interest 
  Sent: Friday, June 15, 2001 1:08 
  PM
  Subject: Classpath and library path 
  ERROR ???
  
  OK,
  
  I want to include a jar file in my 
  application, so I put it in $APPLICATION_ROOT/lib
  and in the orion-application.jar I put (I 
  first let Orion generate the orion-application.xml file):
  -
   
  library path="./lib" 
  / library 
  path="./lib/log4j-core.jar" 
  / library 
  path="./lib/log4j.jar" /---
  
  However My application can't find the jar 
  files: "NoClassDefFoundError". 
  Can someone please tell me how to solve this 
  ??? 
  I notice that Orion is reading the tags, as 
  it complains when the names of the directory or jar fileis 
  incorrect.
  
  BTW: my application needs his own jar file 
  (so putting it in the orion lib dir is no alternative).
  
  I have been struggling with this problem in 
  the past as well and didn't solve it.
  I now have Orion 1.5.1 with redHat 7.0 and 
  still have the same problem.
  I searched the mailinglist and tried a lot of 
  possible solutions, but had bad luck.
  
  I like to hear how people solved this running 
  on Linux, without having there application in an EAR, as I noticed that 
  the people that have it working are running Windowz or/and an EAR 
  file.
  
  I am getting frustrated by this problem, so 
  please come up with a solution??
  
  What I tried, among others:
  1- let orion deploy the application in the 
  application directory (in the server.xml).
  2 - put the lib files in the deployment 
  dir.
  3 - including the jar files as absolute paths 
  and other forms..
  4 - the persmission are correct of the 
  files.
  

Transaction and DriverManagerXADataSource

2001-06-19 Thread aby

Hello everyone,
I am new to orion server and am trying to find out how to use
transaction handling within orion. Now within the datasource.xml file.
I have got something like this

data-source
  class=com.evermind.sql.DriverManagerDataSource
  name=OracleDS
  location=jdbc/OracleCoreDS
  source-location = c:\orion\j2ee\home\orion.jar
  xa-location=jdbc/xa/OracleXADS
  ejb-location=jdbc/OracleDS
  connection-driver=oracle.jdbc.driver.OracleDriver
  username=scott
  password=tiger
  url=jdbc:oracle:thin:@192.168.0.5:1521:dcom
  inactivity-timeout=30
 /

In this case when I am using the code in the client as

InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup(jdbc/OracleDS);
Connection con = ds.getConnection();

then the pooled connection happens. As I understand there is a place where the 
transactions can be rolled back if an
'EJBException' is thrown by the container. Now the doubt is that this does not happen 
with the OracleDS.

So I thought that I should use the

class=com.evermind.sql.DriverManagerXADataSource in the xml file

and in the client code use

DataSource ds = (DataSource)ic.lookup(jdbc/xa/OracleXADS);

The problem is that the server does not start saying that it needs the 
source-location. can anyone
help me out on this? Thanks

i would also like to know how to say 'transaction' required for one of the function of 
my EJB in orion.
I could do this in the J2EE RI using the deploytool, but I am totally lost here.

Thanks in advance

Regards
Aby





Very Strange loadbalancing problem with applet jar files

2001-06-19 Thread Darren Mosley

Hi,

I have two Orion 1.3.8's configured to be clustered and load balanced
using the Orion loadbalancer.jar
My main 'web app' is not called default, but called 'Java-web-app'
(please dont ask why, it wasnt me).

Now, everythings working fine, I can call my EJB ok, I can call my pages
ok, and i can call applets ok except for the following condition :  that
in IE 4/5  the applet jar files are no larger than 50kb ?!?!  
Ive tested in Netscape 4.5 ok.  Its just with IE 4/5 if the applet jar
file is large than 50kb, IE just displays 'Opening ...*.jar', and sits
there and puts my processor through the roof!!  Doesnt matter whats in
the jar file, its related to the size of it.

Any ideas anyone...

Cheers

Darren 




RE: Servlet and CSS

2001-06-19 Thread Alexander Jesse

try:
 out.println(link rel=\StyleSheet\ href=\/blaf.css\ 
note the slash in front of blaf.css

What happens is this without the slash the web thinks you want something
relative to your actual URL which might be something like .../servlet/...
So it is assumed that blaf.css should be a servlet or an alias.

This means, that this reference must begin with a slash.

good luck
Alexander Jesse

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 19, 2001 12:25 AM
 To: [EMAIL PROTECTED]
 Subject: Servlet and CSS
 
 
 Hi all gurus,
 I am trying to include a CSS in my servlet:
 
 out.println(html);
 out.println(head);
 out.println(titleUntitled Document/title);
 out.println(meta http-equiv=\Content-Type\ content=\text/html; 
 charset=iso-8859-1\);
 out.println(link rel=\StyleSheet\ href=\blaf.css\ 
 type=\text/css\);
 out.println(/head);
 
 But it won't work for me. So where should I put the blaf.css 
 in my Web 
 application structure to get it working, or is there 
 something wrong with my 
 HTML ???
 
 Thanks a lot
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 




Re: Transaction and DriverManagerXADataSource

2001-06-19 Thread Ray Harrison

Can't help with your first question, but can with the second:

In your ejb-jar.xml file(s) there is a section called assembly-descriptor
and within that, you can set up security roles on methods, etc but can also
define container transactions in a section called (you guessed it)
container-transaction which looks like this:

assembly-descriptor
.
.
.
container-transaction
 description Give this a required transaction /description
 method
  ejb-nameYourEJBName/ejb-name
  method-intfRemote/method-intf
  method-namedeposit/method-name
 /method
 method
 .
 /method
 .
 .
 List all of your methods for which you want a 'required transaction'
trans-attributeRequiredtrans-attribute
   /container-transaction

Check out the ejb specs at java.sun.com as they describe all of this quite well.
The GUI tools often hide what is going on! (good  bad) 
--- [EMAIL PROTECTED] wrote
 :
 Hello everyone,
 I am new to orion server and am trying to find out how to use
 transaction handling within orion. Now within the datasource.xml file.
 I have got something like this
 
 data-source
   class=com.evermind.sql.DriverManagerDataSource
   name=OracleDS
   location=jdbc/OracleCoreDS
   source-location = c:\orion\j2ee\home\orion.jar
   xa-location=jdbc/xa/OracleXADS
   ejb-location=jdbc/OracleDS
   connection-driver=oracle.jdbc.driver.OracleDriver
   username=scott
   password=tiger
   url=jdbc:oracle:thin:@192.168.0.5:1521:dcom
   inactivity-timeout=30
  /
 
 In this case when I am using the code in the client as
 
 InitialContext ic = new InitialContext();
 DataSource ds = (DataSource)ic.lookup(jdbc/OracleDS);
 Connection con = ds.getConnection();
 
 then the pooled connection happens. As I understand there is a place where the 
transactions can
 be rolled back if an
 'EJBException' is thrown by the container. Now the doubt is that this does not 
happen with the
 OracleDS.
 
 So I thought that I should use the
 
 class=com.evermind.sql.DriverManagerXADataSource in the xml file
 
 and in the client code use
 
 DataSource ds = (DataSource)ic.lookup(jdbc/xa/OracleXADS);
 
 The problem is that the server does not start saying that it needs the 
source-location. can
 anyone
 help me out on this? Thanks
 
 i would also like to know how to say 'transaction' required for one of the function 
of my EJB in
 orion.
 I could do this in the J2EE RI using the deploytool, but I am totally lost here.
 
 Thanks in advance
 
 Regards
 Aby
 
 


__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/




Re: Servlet and CSS

2001-06-19 Thread Robert Koberg

nobody is stating an obvious solution:

  out.println(link rel='StyleSheet' href='/css/blaf.css'
type='text/css');

This will always look for a css in a css folder off of the document root of
the site.



- Original Message -
From: Alexander Jesse [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 3:40 AM
Subject: RE: Servlet and CSS


 try:
  out.println(link rel=\StyleSheet\ href=\/blaf.css\
 note the slash in front of blaf.css

 What happens is this without the slash the web thinks you want something
 relative to your actual URL which might be something like .../servlet/...
 So it is assumed that blaf.css should be a servlet or an alias.

 This means, that this reference must begin with a slash.

 good luck
 Alexander Jesse

  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 19, 2001 12:25 AM
  To: [EMAIL PROTECTED]
  Subject: Servlet and CSS
 
 
  Hi all gurus,
  I am trying to include a CSS in my servlet:
 
  out.println(html);
  out.println(head);
  out.println(titleUntitled Document/title);
  out.println(meta http-equiv=\Content-Type\ content=\text/html;
  charset=iso-8859-1\);
  out.println(link rel=\StyleSheet\ href=\blaf.css\
  type=\text/css\);
  out.println(/head);
 
  But it won't work for me. So where should I put the blaf.css
  in my Web
  application structure to get it working, or is there
  something wrong with my
  HTML ???
 
  Thanks a lot
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 






re: messages

2001-06-19 Thread Simon Harris



Well I just unsubscribed [EMAIL PROTECTED] from the mailing list. hopefully 
that should stop the flood of messages.


Re: Question about DataSourceUserManager

2001-06-19 Thread Michael Jara

I had the same problem with the DataSourceUserManager.  Judging by messages
in the mailing-list archive, it looks like some people have gotten it
working, but I have no idea how.

I ended up writing my own user manager, which didn't take very long.  (I
spent more time trying to get the DataSourceUserManager working, than
writing my own!)  You might try that, or try the EJBUserManager.

A word of warning though: After I solved that problem, I ran into some
issues with Orion's EJB security for which I never found a solution.  But I
was working with application clients...  You might be fine if you are using
Orion's integrated web server(?)

Mike

- Original Message -
From: Eric Hodges [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, June 18, 2001 8:36 PM
Subject: Question about DataSourceUserManager


 I'm trying to set up a DataSourceUserManager.  I've got it configured to
 read from our user database, but it never authenticates.  It asks for the
 user name and password 3 times and gives a 401 to the browser.  I wrapped
it
 with my own class so I could see which methods were getting called.
 getUser() is called and returns the correct user information, so I know
it's
 seeing our database.  If I call user.authenticate(user.getPassword()) it
 returns true.  What am I doing wrong?

 /*
 Eric Hodges,  Chief Technology Officer
 Mongoose Technology, Inc.
 We chase cobras so you don't have to.
 */







native_user_support tarball

2001-06-19 Thread Berry Sizemore

Anyone have the native user support tarball at hand?  Could you send it to me.  I'm in 
dire need of this.

Berry Sizemore




Re: Question about DataSourceUserManager

2001-06-19 Thread Eric Hodges

Even if I write my own user manager, I'm not sure what I should make it do
to fix the problem.  The one from Orion seems to be doing everything
correctly.  It just never lets me in.  The AbstractUserManager class doesn't
seem to have any methods that would help.

- Original Message -
From: Michael Jara [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 10:43 AM
Subject: Re: Question about DataSourceUserManager


 I had the same problem with the DataSourceUserManager.  Judging by
messages
 in the mailing-list archive, it looks like some people have gotten it
 working, but I have no idea how.

 I ended up writing my own user manager, which didn't take very long.  (I
 spent more time trying to get the DataSourceUserManager working, than
 writing my own!)  You might try that, or try the EJBUserManager.

 A word of warning though: After I solved that problem, I ran into some
 issues with Orion's EJB security for which I never found a solution.  But
I
 was working with application clients...  You might be fine if you are
using
 Orion's integrated web server(?)

 Mike

 - Original Message -
 From: Eric Hodges [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Monday, June 18, 2001 8:36 PM
 Subject: Question about DataSourceUserManager


  I'm trying to set up a DataSourceUserManager.  I've got it configured to
  read from our user database, but it never authenticates.  It asks for
the
  user name and password 3 times and gives a 401 to the browser.  I
wrapped
 it
  with my own class so I could see which methods were getting called.
  getUser() is called and returns the correct user information, so I know
 it's
  seeing our database.  If I call user.authenticate(user.getPassword()) it
  returns true.  What am I doing wrong?
 
  /*
  Eric Hodges,  Chief Technology Officer
  Mongoose Technology, Inc.
  We chase cobras so you don't have to.
  */
 
 







How to unsubscribe?

2001-06-19 Thread Daniel Frey

How do you unsubscribe from this list.  I have sent it
to the other address a number of times, but the
messages keep coming.  Can anyone help?

__
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/




Re: tunneling ORMI through SSL?

2001-06-19 Thread Wes Weems



I guess I just want to be able to have secure 
transactions (executions of beans rather) encryption via ssl or whatever. 
If nothing else I suppose I could just create a SSH tunnel... but I'd like to 
avoid that, as I want to have win32 clients, and I know nothing about createign 
ssh tunnels on win.

Wes

  - Original Message - 
  From: 
  Wes Weems 
  To: Orion-Interest 
  Sent: Monday, June 18, 2001 9:04 AM
  Subject: Re: tunneling ORMI through 
  SSL?
  
  =) would be greatly appreciated... 
  thanks!
  Wes
  
- Original Message - 
From: 
[EMAIL PROTECTED] 
To: Orion-Interest 
Sent: Monday, June 18, 2001 5:32 
AM
Subject: Re: tunneling ORMI through 
SSL?
It can be done. We 
have a way that was devised by a Sun Architect who worked for us for a 
while. I'll see if I can send the classes to your address 
later. It is called SRI for 
Simple Remote Interface. You make a facade of your methods you want on 
the EJBs. Make an interface that represents those methods. We 
have a pre-compile program that will make an abstract servlet and a 
servletImpl to handle the SSL communication. You can set it up so that it 
can detect if it needs to use RMI or SSL. Jonathan BrickerLilly Research LabsJava 
ATG 

  
  

Wes Weems 
  [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 
  06/15/01 02:16 PM Please respond to Orion-Interest 


  
  To:Orion-Interest 
  [EMAIL PROTECTED] cc:   
  
Subject:tunneling ORMI 
  through SSL?Ok... a little background... I dont have TONS of 
ejb programming backgroundhowever I understand the concepts... and am 
more than willing to read =)My problem... I wanna create an 
applicationserver (running orion of course)that is more or less a 
transaction server... and have clients (entirelyseperate machines) 
connecting to the orion server to perform transactions.What I need 
is a secure method of clients communicating with orion. Somoneproposed 
the idea of ORMI tunneled through ssl, which he didnt know if itwas 
possible for sure. I would be interested to see the methods other 
peoplehave used to solve similar 
problems.Wes


Re: Question about DataSourceUserManager

2001-06-19 Thread Eric Hodges

I thought it might be a group/role problem, so I tried to add the user to
the group that has permission to access the web app.  I'm using this code in
MyUserManager (extends DataSourceUserManager):

  public User getUser(String parm1) {
User aUser = super.getUser( parm1);
try {
 Group portalUsers = super.getGroup(Portal User);
 System.out.println(is member of portal
users=+aUser.isMemberOf(portalUsers));
 aUser.addToGroup(portalUsers);
 System.out.println(is member of portal
users=+aUser.isMemberOf(portalUsers));
 System.out.println(group
info:+portalUsers.getName()+:+portalUsers.getDescription());
}
catch (Exception ex) {
 ex.printStackTrace();
}
return aUser;
  }

After aUser.addToGroup(portalUsers), aUser.isMemberOf(portalUsers) still
returns false.  What am I doing wrong?


- Original Message -
From: Eric Hodges [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Tuesday, June 19, 2001 12:45 PM
Subject: Re: Question about DataSourceUserManager


 Even if I write my own user manager, I'm not sure what I should make it do
 to fix the problem.  The one from Orion seems to be doing everything
 correctly.  It just never lets me in.  The AbstractUserManager class
doesn't
 seem to have any methods that would help.

 - Original Message -
 From: Michael Jara [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Sent: Tuesday, June 19, 2001 10:43 AM
 Subject: Re: Question about DataSourceUserManager


  I had the same problem with the DataSourceUserManager.  Judging by
 messages
  in the mailing-list archive, it looks like some people have gotten it
  working, but I have no idea how.
 
  I ended up writing my own user manager, which didn't take very long.  (I
  spent more time trying to get the DataSourceUserManager working, than
  writing my own!)  You might try that, or try the EJBUserManager.
 
  A word of warning though: After I solved that problem, I ran into some
  issues with Orion's EJB security for which I never found a solution.
But
 I
  was working with application clients...  You might be fine if you are
 using
  Orion's integrated web server(?)
 
  Mike
 
  - Original Message -
  From: Eric Hodges [EMAIL PROTECTED]
  To: Orion-Interest [EMAIL PROTECTED]
  Sent: Monday, June 18, 2001 8:36 PM
  Subject: Question about DataSourceUserManager
 
 
   I'm trying to set up a DataSourceUserManager.  I've got it configured
to
   read from our user database, but it never authenticates.  It asks for
 the
   user name and password 3 times and gives a 401 to the browser.  I
 wrapped
  it
   with my own class so I could see which methods were getting called.
   getUser() is called and returns the correct user information, so I
know
  it's
   seeing our database.  If I call user.authenticate(user.getPassword())
it
   returns true.  What am I doing wrong?
  
   /*
   Eric Hodges,  Chief Technology Officer
   Mongoose Technology, Inc.
   We chase cobras so you don't have to.
   */