Orion Client jar files for remote application client

2002-05-14 Thread Pedro Garcia Lopez

Hi all,

Unlike many other application servers like jboss, Orion does not
officially provide a list of jar files required to run remote Java
Application clients. This enforces developers to include a lot of files
found in the Orion root directory.

Are there any plans to provide a minimum set of jar files required for
remote applicacion clients ? orion-client.jar, orion-jndi.jar ...


Thank you in advance

Pedro





Cluster and security contexts.

2000-09-06 Thread Pedro Garcia Lopez

Hi,

I want to stablish a security domain or federation between two Orion
servers.
In this scenario one user can authenticate against server A and the
connect to server B and be recognized without
requiring another authentication step.

Can be done with clustering ?

I have successfully tried the clustering example in the howto files. But
this work with unprotected resources.
If you protect a resource in server A and another in server , then
authentication is required. No matter if you use clustering, you must
authenticate twice.

Even using two protected servlets and calling the second one with the
sessiojn id obtained in the first servlet´s call I achieve to access
servlet 2.

Can be stablished a inter-server security domain in Orion ?

Thank you in advance.

Pedro.





FEDERATION IN ORION

2000-08-17 Thread Pedro Garcia Lopez

Hi,

I need to stablish a federation between two servers and thus stablish a
security context.

For example

Case 1: I authenticate against server A accesing a Web page, afterwards
I connect to a protected web page in server B. I would like that my user
information would be propagated to server B.This would avoid double
authentication.

Case 2: My application client connects and authenticates to a EJB in
server A. It then connects to a EJB in server B and user information is
propagated, no need for authentication again.

Is this possible in Orion ?
How ?

Regards,

Pedro





PLEASE !! simple question concerning orion tags !

2000-06-21 Thread Pedro Garcia Lopez

Hi,

I would like to know what is the use of the tag
server host="the.remote.server.com" password="123" port="23791"
username="admin" /
in rmi.xml

Is it possible to stablish some kind of federation or connected servers
?








Re: PLEASE !! simple question concerning orion tags !

2000-06-21 Thread Pedro Garcia Lopez

Hi,

In this case,

1)Both connected servers in the cluster use the same user database ?
2)Is it stablished a security domain among servers ?
I mean, if EJB A in orion A connects to EJB b in Orion B, security constraints
will be applied and Orion B will recognize the user as a valid user ? I imagine
that if question 1 is yes, then authentication should be unified.
3) Security user information is also propagated from server to server ?
 If JSP in Orion A connects to EJB in Orion B, will EJB B able to identify the
user ?


Regards and thank you.
Pedro

Magnus Stenman wrote:

 Hi, federations are best created by the cluster tag.
 add (http://www.orionserver.com/docs/rmi.xml.html for description)
 cluster username="specialclusterusername" password="12345678..." /
 in both the server's rmi.xml and set
 host="a.proper.public.hostname.for.the.machine" in the rmi-server tag for
 both machines. This should establish a link (them acting together).

 To then for instance use remote EJBs you set remote="true" in the ejb-module
 tag in orion-application.xml for your application.

 I hope it helps.

 /Magnus stenman, the Orion team

 ----- Original Message -
 From: "Pedro Garcia Lopez" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Wednesday, June 21, 2000 3:16 PM
 Subject: PLEASE !! simple question concerning orion tags !

  Hi,
 
  I would like to know what is the use of the tag
  server host="the.remote.server.com" password="123" port="23791"
  username="admin" /
  in rmi.xml
 
  Is it possible to stablish some kind of federation or connected servers
  ?
 
 
 
 





FEDERATION !!!

2000-06-20 Thread Pedro Garcia Lopez

Hi again,

In ORION/CONFIG/RMI.XML

What is the use of the server tag ?

 server host="the.remote.server.com" password="123" port="23791"
username="admin" /
Specifies a remote (point to point) RMI-server to communicate
with.

host - Hostname of the remote server.
password - The password to log in with.
port - Port of the remote server, default is 23791.
username - The username to log in with.

I do not understand what it is aimed for.

What I want is to create a security domain between two Orion servers.
When EJB in Orion A connects to EJB in Orion B,
1) Orion B does not know this user and
 2) Tries to find it in Orion A.
 3) and then authenticates.

Can I do this with Orion ?

Regards,

Pedro






CMP Orion bug

2000-06-16 Thread Pedro Garcia Lopez

Hi,

I think I have found a bug with CMP in Orion.

The error is simple and you can test it.
I have a Entity Bean with a field called users--type Collection--.
My entity have simple methos like addUser, removeUser, getUsers.

Without specifying   public static final Class users_type =
java.lang.String.class; in my EJB all works nice.
I have a test application that works without problems.

If I specify this line ( public static final Class users_type =
java.lang.String.class;) the test applications fails.
---
System/communication error: java.lang.ArrayIndexOutOfBoundsException;
nested exc
eption is:
java.lang.ArrayIndexOutOfBoundsException
--
and the client code:

---
 Place thePlace = (Place)home.findByPrimaryKey("pedro");
   thePlace.join();

  String users[] = thePlace.getUsers();

   for (int i =0;iusers.length;i++)
   System.out.println(users[i]);

---
In the server side the problem arises when obtaining the users, in the
getUsers method.

If any Orion guy is interested in fixing this problem I can send you the
source code.
Regards.





Re: Two Instances of orion

2000-06-14 Thread Pedro Garcia Lopez

Hi,

In orion/config/default-web-app.xml change the web port number.
If you want to use EJBs you must also change the  rmi port number in rmi.xml,
and of course change the url in your application client's jndi.properties file.

Regards,

About shutdown I cannot help, I use CTRL+C ;-)



Hashim Merchant wrote:

 I have one instance of orion running on the default port 80 now I want
 to run another instance of orion on another port (say 88) by using java -jar
 orion.jar also i should be able to shut this instance down using java -jar
 shutdown.jar and all this time the previous instance of orion should be
 on.Is there some way to do this im pretty new to orion...if any of u guys
 have anyideas please help me out.Like is there something i can put in the
 classpath java -jar orion.jar port="88"
 Thank you for your time

 Hashim Merchant

   
   Name: winmail.dat
winmail.datType: application/ms-tnef
   Encoding: base64





EJBUserManager

2000-06-12 Thread Pedro Garcia Lopez

Hi,

I solved my last question (HttpServletRequest.getPrincipal).

Another question:

First of all, I find very clean and elegant the UserManager idea in
Orion. It is surprising how other commercial servers like iPlanet do not

provide such facility. In fact we plan to develop ouw own
LDAPUserManager implementing Orion interface.

The problem is that I find several holes in the UserManager API.
The most important is:
How can you know the members of a specific group ?
--getUsers(groupName).
Or how can you list all existing groups ? --getGroups()

I do not understand why this simple functionality is not included.
Anybody can explain this ?





Maintaining state: EJB question

2000-06-02 Thread Pedro Garcia Lopez

Hi,

In order to maintain state for multiple clients the EJB specification
recommends the use of Entity Beans.
So you need to use a database even if you want to maintain state that is
not persistent.

I have found a solution that I do not know if it is correct:
I use a Session Bean.
I the ejbCreateMethod of the Session BEan I do this:

  public void ejbCreate(String name)
  {

   this.name = name;
   users = new HashMap();
  try{
   EJBObject ref = context.getEJBObject();
   Context initial = new InitialContext();

  initial.bind(name,ref);
  }catch (javax.naming.NamingException ex){
   ex.printStackTrace();
  }
   }


and then, applicatrion clients can use JNDI to connect to the Session
Bean reference. You can thus maintains state for multiple clients using
a Session Bean.

Is this a bad trick ?

Some guy told me that this is dangerous due to activation and
passivation, but I think that documentation says that getEjbObject gives
you a handle that persists acrosts passivations states.

Let me know your comments.

In CORBA the Naming service is also used for locating references to
specific instance of remote objects.
In the EJB model I have seen that JNDI is used for locaintg factory
objects (Home).

Is this approach correct ?
can JNDI also be used for locating specific instances ?

Thank you in advance.





JMS access exception

2000-05-18 Thread Pedro Garcia Lopez

Hi,

I have tested several JMS examples in Orion and all works fine. My only
problem is that I must always use the admin user.
If I log as another user this exception occcurs:

Any idea ?
-- I am looking for an specific permission in principals.xml but I only
found the Administration permission--

Thank you in advance.


D:\apps\orion\demo\jms\jmspubjava -classpath ../../../orion.jar;.
examples.jms.
topic.TopicSend
Exception in thread "main" java.lang.SecurityException: Not allowed to
look up j
ava:comp/ResourceFinder
at com.evermind.server.rmi.a6.es(JAX)
at com.evermind.server.rmi.RMIServer.es(JAX, Compiled Code)
at com.evermind.server.rmi.RMIContext.lookup(JAX)
at com.evermind.server.administration.LazyResourceFinder.es(JAX)

at
com.evermind.server.administration.LazyResourceFinder.getLocation(JAX
)
at com.evermind.server.Application.ahs(JAX, Compiled Code)
at
com.evermind.server.ApplicationClientInitialContextFactory.getInitial
Context(JAX)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
72)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:250
)
at javax.naming.InitialContext.init(InitialContext.java:226)
at javax.naming.InitialContext.init(InitialContext.java:182)
at examples.jms.topic.TopicSend.main(TopicSend.java:77)






Applet 2 EJB communication

2000-05-15 Thread Pedro Garcia Lopez

Hi all,

My question is:

What jar libraries do I need for a remote client component ?
Is the ejb-client-jar tag in ejb-jar.xml supported ?
ejb-client-jaremployee_service_client.jar/ejb-client-jar
I tryed it without success.

If you test Orion examples in your machine all work nicely, but if you
move any of them to another machine (JMSChat for example),
--even getting all required jars-- the authentication fails.
Why the admin account is recognized working local but not from another
machine ?

Thank you in advance.





Client Jar

2000-05-08 Thread Pedro Garcia Lopez


Hi all,

In the deployment phase a client jar file must be generated. Applets and
application clients need this jar file in order to connect to the EJB.
Where is generated ?
Is it an option of some deployment file ?

Thank you in advance.

Pedro.