RE: allow/deny host access

2000-10-12 Thread Goel, Deepak

Hello,

I believe so. Look at the Orion documentation for web-app settings:

http://www.orionserver.com/docs/orion-web.xml.html

--Deepak

-Original Message-
From: Mike Atkin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 10, 2000 4:03 AM
To: Orion-Interest
Subject: allow/deny host access


Hi,

Is possible to do host based access control with orion in a similar way to
apache i.e.
Deny from all
Allow from xxx.xxx.

We have a directory on a site which we only want computers from the client's
network to have access to ( accounting and admin pages ).

Cheers,

Mike





RE: Restricting access by IP

2000-10-12 Thread Goel, Deepak

Hello,

Look at the Orion documentation:

http://www.orionserver.com/docs/orion-web.xml.html

--Deepak

-Original Message-
From: Aleksi Kallio [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 3:00 AM
To: Orion-Interest
Subject: Restricting access by IP


How to restrict access to Orion server to some IP-pattern? 

It could be also per wep-app.






RE: Saving JSP responses

2000-10-12 Thread Goel, Deepak

Hello,

Why do you want to forward to the jsp page. If you just want to capture the
response from the jsp page, you can create a URL object and do a GET or POST
and capture the output.

One thing I'm not sure about is session management - whether a new session
will be created or the current session will be reused.

--Deepak

-Original Message-
From: Claudio Cordova [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 6:20 PM
To: Orion-Interest
Subject: Saving JSP responses


Hello,

I am a newbie on JSP and I am trying to forward a request fom a servlet to a
jsp page and some how read the response and save it into a file without
sending the result to the browser. Instead, I want repeate the process as
many times as I need. Then responde with a different HTML response. Is this
possible?

Claudio





RE: ANSWER: How to use pooled connections in Orion?

2000-10-12 Thread Goel, Deepak

Hi,

The way you access the datasource is dependent on where will you access the
datasource from. I'm currently accessing the datasource from a servlet which
is pretty straightforward:

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("jdbc/SQLServerDS");

The above method might not be portable but it works for me so I mention it.
Note that you don't need any special Orion datasource name. DataSource is
defined in javax.sql.*

The portable way which require more work is to add the following to your
web.xml if you access the datasource from servlets and/or JSP:

context-param
param-namemyDS/param-name
param-valuejdbc/SQLServerDS/param-value
/context-param
resource-ref
descriptionA data source/description
res-ref-namemyDS/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authCONTAINER/res-auth
/resource-ref

Now, you can access the datasource by:

InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/myDS");


--Deepak

-Original Message-
From: Luis M Bernardo [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 7:39 AM
To: Goel, Deepak
Subject: Re: ANSWER: How to use pooled connections in Orion?




hi. thanks for posting this message, but could you show me how you make
the connection (a code snippet)? Looking at old postings I see some people
using a DataSource and some others a ConnectionPoolDataSource. Also, you
use a DriverManagerDataSource, some other people use a
ConnectionDataSource. 

cheers,
luis


On Sat, 7 Oct 2000, Goel, Deepak wrote:

 Hello everyone,
 
 I've seen that many people are confused over how to setup pooled
connections
 in Orion (even I was initially). Now since I figured out through
 documentation and through some hit and try, I would like to share these
 instructions. Keep in mind that this is only one way of setting it up and
 there are other ways to setup depending on capabilities of the driver.
 
 1. Basically, the first step is to create a non-pooled version of your
data
 source. This can be done by adding something like this to your
 data-sources.xml:
 
   data-source
   class="com.evermind.sql.DriverManagerDataSource"
   name="SQLServerNP"
   location="jdbc/SQLServerNP"
   xa-location="jdbc/xa/SQLServerXANP"
   ejb-location="jdbc/SQLServerNP"
   connection-driver="com.inet.tds.TdsDriver"
   username="user"
   password="pwd"
   url="jdbc:inetdae:localhost"
   inactivity-timeout="30"
   schema="database-schemas\ms-sql.xml"
   /
 
 The above example is for a SQL Server data source using i-net driver.
 Remeber to change the connection-driver, username, password and url.
 
 2. Now, the following step will add the pooled version. Add the following
 lines to data-sources.xml.
 
   data-source
   class="com.evermind.sql.OrionPooledDataSource"
   name="SQLServer"
   location="jdbc/SQLServerDS"
   xa-location="jdbc/xa/SQLServerXADS"
   ejb-location="jdbc/SQLServerDS"
   max-connections="4"
   source-location="jdbc/SQLServerNP"
   pooled-location="jdbc/SQLServerDS"
   inactivity-timeout="30"
   connection-driver="com.inet.tds.TdsDriver"
   url="jdbc:inetdae:localhost"
   /
 
 Note that the source-location should correspond to location in the 1st
step.
 "max-connections" can be changed to suit your requirements. I'm not sure
 whether url and connection-driver are required here.
 
 The above steps should work for any JDBC drivers. If your driver vendor
 supplies a data source, step 1 will be little bit different. Also, some of
 the driver vendors directly provide pooled data source implementation in
 which case 2 steps are not needed. I could successfully use i-net OPTA
 PooledDataSource with Orion.
 
 --Deepak
 
 




RE: How to select an other datasource then the default one?

2000-10-12 Thread Goel, Deepak

Hello,

When you deploy your application, Orion creates a subdirectory with the name
of the app under application-deployments. You should see another
subdirectory with the name of your ejb jar file. So for example if you have
an app named myApp and myApp.ear contains myEJB.jar, then you should see

orion-home/application-deployments/myApp/myEJB.jar/orion-ejb-jar.xml

This file is automatically created by Orion and can be changed to suit your
needs. For each entity bean deployed, there will be an entry here:

entity-deployment name="Cabinet" location="Cabinet"
wrapper="CabinetHome_EntityHomeWrapper7" table="cab" 
data-source="jdbc/SQLServerDS" validity-timeout="2"

/entity-deployment

For more info, look at the documentation for this file:

http://www.orionserver.com/docs/orion-ejb-jar.xml.html


--Deepak

-Original Message-
From: Frank Eggink [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 12, 2000 12:28 AM
To: Orion-Interest
Subject: RE: How to select an other datasource then the default one?


Ralph and others,

My datasources.xml looks like:

?xml version="1.0"?
!DOCTYPE data-sources PUBLIC "Orion data-sources" 
"http://www.orionserver.com/dtds/data-sources.dtd"

data-sources
data-source
name="Default data-source"
class="com.evermind.sql.ConnectionDataSource"
location="jdbc/DefaultDS"
pooled-location="jdbc/DefaultPooledDS"
xa-location="jdbc/xa/DefaultXADS"
ejb-location="jdbc/DefaultEJBDS"
url="jdbc:HypersonicSQL:./database/DB"
connection-driver="org.hsql.jdbcDriver"
username="xxx"
password="xxx"
/
data-source
name="Default data-source"
class="com.evermind.sql.ConnectionDataSource"
location="jdbc/TestDS"
pooled-location="jdbc/TestPooledDS"
xa-location="jdbc/xa/TestXADS"
ejb-location="jdbc/TestEJBDS"
url="jdbc:HypersonicSQL:./database/Test"
connection-driver="org.hsql.jdbcDriver"
username="xxx"
password="xxx"
/
/data-sources

Guess there is not much wrong in that. The trouble I have is making the 
application point to the right datasource. Using CMP I would expect you can 
add some option somewhere to tell the server to use that connection, but 
where do I need to put the great 'use-this-datasource' option? 
Orion-application.xml seemed logical to me.

Frank

On Wednesday, October 11, 2000 8:41 PM, Ralph Crawford 
[SMTP:[EMAIL PROTECTED]] wrote:
 Here's an example of a data-sources.xml file with two different
 datasources...

   data-source
   name="Default data-source"
   class="com.evermind.sql.ConnectionDataSource"
   location="jdbc/DefaultDS"
   pooled-location="jdbc/DefaultPooledDS"
   xa-location="jdbc/xa/DefaultXADS"
   ejb-location="jdbc/DefaultEJBDS"
   url="jdbc:oracle:thin:@blah.domain.com:1521:dbinstance"
   connection-driver="oracle.jdbc.driver.OracleDriver"
   username="username"
   password="password"
   /

   data-source
   name="Othert data-source"
   class="com.evermind.sql.ConnectionDataSource"
   location="jdbc/OtherDS"
   pooled-location="jdbc/OtherPooledDS"
   url="jdbc:postgresql://blah.domain.com:5432/postgres"
   connection-driver="postgresql.Driver"
   username="username"
   password="password"
   /

 Obviously, in this case, I've got both the Oracle and Postgres drivers in 
my
 orion/lib directory.  Then when you want to get a pooled connection, 
you'd
 use...

 connection = ((javax.sql.DataSource)
 ctx.lookup("jdbc/DefaultPooledDS")).getConnection();


 and if you wanted to use the other database, you'd use jdbc/OtherPooledDS 
 instead of jdbc/DefaultPooledDS.

 Hope this helps.

 Ralph


 From: Frank Eggink [EMAIL PROTECTED]
 Reply-To: Orion-Interest [EMAIL PROTECTED]
 To: Orion-Interest [EMAIL PROTECTED]
 Subject: How to select an other datasource then the default one?
 Date: Wed, 11 Oct 2000 15:19:04 +0200
 MIME-Version: 1.0
 Received: from [195.84.237.200] by hotmail.com (3.2) with ESMTP id
 MHotMailBBADCD3A0024D82197D8C354EDC808540; Wed Oct 11 08:07:44 2000
 Received: from druid.evermind.net (IDENT:[EMAIL PROTECTED]
 [127.0.0.1])by druid.evermind.net (8.9.3/8.9.3) with SMTP id 
PAA10617;Wed,
 11 Oct 2000 15:26:20 -0100
 Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net
 [194.159.73.20])by paladin.evermind.net (8.9.3/8.9.3) with ESMTP id
 QAA06513for [EMAIL PROTECTED]; Wed, 11 Oct 2000 16:22:12
 -0400
 Received: from [212.238.78.167] (helo=barabas)by post.mail.nl.demon.net
 with smtp (Exim 3.14 #2)id 13jLql-0003J1-00for
 [EMAIL PROTECTED]; Wed, 11 Oct 2000 

RE: 2nd post, please help

2000-10-09 Thread Goel, Deepak

Try using java:comp/env/mail/MailSession.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 2:52 AM
To: Orion-Interest
Subject: 2nd post, please help


I have created a stand alone admin component outside the orion server, which
use 
the MailerEJB functions to send emails. An exception will be thrown in
MailHelper 
when I start running the stand-alone admin program, which is
"java:com\env\mail\MailSession 
not found". 
here is resource-ref tag in ejb-jar.xml and web.xml 
resource-ref 
res-ref-namemail/MailSession/res-ref-name 
res-typejavax.mail.Session/res-type 
/resource-ref 
 
and here is mail-session tag in server.xml 
mail-session location="mail/MailSession" smtp-host="csah.com" 
property name="mail.transport.protocol" value="smtp" / 
property name="mail.smtp.from" value="[EMAIL PROTECTED]" / 
property name="mail.from" value="[EMAIL PROTECTED]" / 
/mail-session 
 
Is anything missed? Kindly please help. 


Regards,


___
http://www.SINA.com - #1 Destination Site for Chinese Worldwide




RE: ANSWER: How to use pooled connections in Orion?

2000-10-07 Thread Goel, Deepak

Hello,

I'm certainly not an expert on this area and I can only answer from my
experience. If you're not using a pooled connection, a connection is opened
for each request in CMP. If you're using BMP, it's totally upto you to
control connection handling. Even with BMP, it is advised that a datasource
defined within the container be used so that the container (Orion) can
manage connection pooling etc.

In case of CMP and a pooled datasource, the connection sharing across beans
is dependent on how you specify the datasource in orion-ejb-jar.xml. Say for
both beans A and B, you specify jdbc/SQLServerDS as the datasource, then
Orion will only use connections available from the pool of connections for
jdbc/SQLServerDS.

I request the Orion team to correct me if any of this is not correct.

--Deepak

-Original Message-
From: Rick Bos [mailto:[EMAIL PROTECTED]]
Sent: Saturday, October 07, 2000 5:38 AM
To: Orion-Interest
Subject: RE: ANSWER: How to use pooled connections in Orion?


I have a question.

If I only specify a location, not a pooled location, does Orion
not do any connection pooling ?

For example, if I have several container managed entity beans from
the same database, would Orion share the same connection for these ?

Thanks.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Goel, Deepak
Sent: Saturday, October 07, 2000 12:09 AM
To: Orion-Interest
Subject: ANSWER: How to use pooled connections in Orion?


Hello everyone,

I've seen that many people are confused over how to setup pooled connections
in Orion (even I was initially). Now since I figured out through
documentation and through some hit and try, I would like to share these
instructions. Keep in mind that this is only one way of setting it up and
there are other ways to setup depending on capabilities of the driver.

1. Basically, the first step is to create a non-pooled version of your data
source. This can be done by adding something like this to your
data-sources.xml:

data-source
class="com.evermind.sql.DriverManagerDataSource"
name="SQLServerNP"
location="jdbc/SQLServerNP"
xa-location="jdbc/xa/SQLServerXANP"
ejb-location="jdbc/SQLServerNP"
connection-driver="com.inet.tds.TdsDriver"
username="user"
password="pwd"
url="jdbc:inetdae:localhost"
inactivity-timeout="30"
schema="database-schemas\ms-sql.xml"
/

The above example is for a SQL Server data source using i-net driver.
Remeber to change the connection-driver, username, password and url.

2. Now, the following step will add the pooled version. Add the following
lines to data-sources.xml.

data-source
class="com.evermind.sql.OrionPooledDataSource"
name="SQLServer"
location="jdbc/SQLServerDS"
xa-location="jdbc/xa/SQLServerXADS"
ejb-location="jdbc/SQLServerDS"
max-connections="4"
source-location="jdbc/SQLServerNP"
pooled-location="jdbc/SQLServerDS"
inactivity-timeout="30"
connection-driver="com.inet.tds.TdsDriver"
url="jdbc:inetdae:localhost"
/

Note that the source-location should correspond to location in the 1st step.
"max-connections" can be changed to suit your requirements. I'm not sure
whether url and connection-driver are required here.

The above steps should work for any JDBC drivers. If your driver vendor
supplies a data source, step 1 will be little bit different. Also, some of
the driver vendors directly provide pooled data source implementation in
which case 2 steps are not needed. I could successfully use i-net OPTA
PooledDataSource with Orion.

--Deepak





RE: new documentation site

2000-09-28 Thread Goel, Deepak

Hello,

I had posted some questions about caching couple of days back. I hoped that
some of these questions were answered by the new documentation. I am still
missing answers to those questions. I request that some information is
provided for these.

1. Does Orion implement EJB object caching? If yes, I'll appreciate some
details on what has been implemented.

2. I want to find out specifically about CMP based EJB caching. When are
these beans cached and what evicts them from cache? I have implemented some
CMP EJBs and I see that anytime I want to access these beans, a database
call is made. To clarify, my client starts up and instantiates these beans
and then exits. When I restart the client, when it accesses the same beans
leads to database calls.

3. Some details about session beans caching will also be appreciated. Does
Orion allow that some number of session bean instances be pre-created? If
yes, how can this be specified?


4. I have been able to successfully deploy some CMP EJBs on Orion server.
The
issue is that I have to copy the orion-ejb-jar.xml file to the
application-deployments directory if I change this file. Is it possible to
include this file in the jar file for EJBs. I tried adding this file to
these directories in the jar file: META-INF, orion, META-INF\orion and it
didn't work.

I'll appreciate a response.

Thanks,
Deepak

-Original Message-
From: Karl Avedal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 28, 2000 5:14 AM
To: Orion-Interest
Subject: Re: new documentation site


Hello Sanjay,

Absolutely, we're open to any suggestions to improving documentation, I'll
look
right into that, we have not used that certificate ourselves, that's why
it's
been hard to say anything about it.

Regards,
Karl Avedal

Sanjay wrote:

 Hi Karl,
 the new orion documentation site
 still doesnt say much about how to set up Global server certificates
 could that be incorporated as Weblogic have described in detail how to
 install all the different type of certificates

 thank you
 cheers

 - Original Message -
 From: "Mikko Kurki-Suonio" [EMAIL PROTECTED]
 To: "Orion-Interest" [EMAIL PROTECTED]
 Sent: Thursday, September 28, 2000 11:14 AM
 Subject: Data type mapping

  Hi,
 
   How does Orion handle mapping java data types to database types?
 
   Specifically, I'm having trouble mapping "long", with Solid and
  InterBase. I've tried "decimal(20,0)" "binary(64)" and even just
"integer"
  as the corresponding database type, but neither database digests
  these without hickups.
 
   Deployment goes fine, but when you try to actually create an entity
with
  a "long" member field, the database spews errors like
 
  SOLID Table Error 13039: Illegal assignment from type CHAR to type
DECIMAL
 
  Invalid Conversion
  Invalid Assignment
 
  etc.
 
 
 
 





RE: Classpath : Orion On Linux

2000-09-28 Thread Goel, Deepak

The classpath is not an Orion problem but the issue with the JDK 1.2 and up.
If you deploy Orion with the following command line, the classpath is taken
from the Manifest file in orion.jar:

java -jar orion.jar

If you want that the classpath set in environment settings be used, the
following command can be used:

java com.evermind.server.ApplicationServer

You'll have to make sure that all the files in orion directory are atleast
in the classpath. 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 28, 2000 5:47 AM
To: Orion-Interest
Subject: SV: Classpath : Orion On Linux


CLASSPATH variable is worthless in orion...

You have to copy your jar to [orion]/lib directory, then it will be in your
classpath automatically.

Hope this helps :)

Klaus Myrseth
Telenor Mobil AS

-Opprinnelig melding-
Fra: Mr Shailesh Joshi [mailto:[EMAIL PROTECTED]]
Sendt: 28. september 1998 14:14
Til: Orion-Interest
Emne: Classpath : Orion On Linux


Hi All


I  have installed Orion 1.3.8 on Linux server.

I have  deployed  beans and running  clients successfully.
The  problem  is the server can't  get  the  Driver in  Class.forName("
");
I  have  copied driver  class in the orion-root  directory; set the
classpath .
But still the server is not able to get the class ?

FROM  WHERE  ORION TAKES  THE  CLASSPATH  ?

With regards
   Shailesh





Where to put orion-ejb-jar.xml in the jar file

2000-09-27 Thread Goel, Deepak

Hello,

I have been able to successfully deploy some CMP EJBs on Orion server. The
issue is that I have to copy the orion-ejb-jar.xml file to the
application-deployments directory if I change this file. Is it possible to
include this file in the jar file for EJBs. I tried adding this file to
these directories in the jar file: META-INF, orion, META-INF\orion and it
didn't work.

I'll appreciate any help on how to do this.

Thanks,
Deepak




Caching and object pooling in Orion

2000-09-27 Thread Goel, Deepak

Hello everyone,

This question has been asked before in this mailing list but there has been
no answer yet. I hope that there is some response this time.

The questions are:
1. Does Orion implement EJB object caching? If yes, I'll appreciate some
details on what has been implemented.
2. I want to find out specifically about CMP based EJB caching. When are
these beans cached and what evicts them from cache? I have implemented some
CMP EJBs and I see that anytime I want to access these beans, a database
call is made. To clarify, my client starts up and instantiates these beans
and then exits. When I restart the client, when it accesses the same beans
leads to database calls.
3. Some details about session beans caching will also be appreciated. Does
Orion allow that some number of session bean instances be pre-created? If
yes, how can this be specified?

Thanks,
Deepak





FW: Primary Key problem

2000-09-27 Thread Goel, Deepak

Hi Amir,

I'm interested in finding how were you able to make Orion work with
JDBC-ODBC layer. I was able to do it but I keep on getting error from the
ODBC driver "Connection is busy with results from the previous statement".
This I have seen to be a limitation of SQL Server driver, not of Orion or
any other software.

I'll appreciate if you can share your solution.

Thanks,
Deepak

-Original Message-
From: Amir Peivandi [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 25, 2000 1:26 PM
To: Orion-Interest
Subject: RE: Primary Key problem


Yes I did, bug #64 

-Original Message-
From: Ernst de Haan [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 25, 2000 2:06 PM
To: Orion-Interest
Subject: Re: Primary Key problem


Hi Amir,

Have you added this to the Bugzilla bug database ? This way you will get the
attention of the Orion development team and you (and the rest of us) will be
able to track the status. :)

Ernst

Amir Peivandi wrote:
 Hi,
 I had a problem and it took me about five hours to find and fix it. I
though
 it could be useful for everybody to know and maybe it's a bug in Orion.
 When you have a CMP Entity bean which maps to a table with a certain
 condition as I explain here, the remove method fails with a message which
 says the object is being used and is locked by another active connection.
 This happens when you have a table with one, two or more fields and the
 primary key is a multi field key, consist of all the fields in the table.
It
 also happens when there is only one field in the table which is the
primary
 key. To resolve this issue you need to add at least a field to the table
 which is not part of the primary key!
 
 I'm using SQL server with ODBC/JDBC connection.
 
 Regards,
 Amir
 
 




RE: Servlet+EJB problem still not solved. :((

2000-09-23 Thread Goel, Deepak

Hi,

My case is little bit different than yours but I thought you can still give
it a try. When I create the InitialContext(), I don't put in the
CONTEXT_FACTORY and PROVIDER_URL. It works for me even though my servlet and
EJBs are deployed in one application.

--Deepak

-Original Message-
From: James Ho [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 11:13 PM
To: Orion-Interest
Subject: Servlet+EJB problem still not solved. :((


Hi all,

I have a urgent problem regarding EJB and servlet, I cannot find the
home interface of the bean from the servlet (whereas a standalone
client works very well)...Can anyone pls give me some hint as to what
maybe be wrong here?  Below is the background info, sorry, it is kind
of long...

My bean is called Stamp, the classes are

stamp.ejb.Stamp - remote
stamp.ejb.StampHome - home
stamp.ejb.StampBean - bean class
java.lang.String- primaryKey

There are two applications deployed.
stamps - the EJBs
test - the servlets.

My problem, I CANNOT get the bean in servlet :((

Here is my ejb-jar.xml 

 ejb-jar
 description/description
 enterprise-beans
entity
description/description
ejb-nameStamp/ejb-name
homestamp.ejb.StampHome/home
remotestamp.ejb.Stamp/remote
ejb-classstamp.ejb.StampBean/ejb-class
primkey-classjava.lang.String/primkey-class
reentrantTrue/reentrant
persistence-typeBean/persistence-type
/entity
 /enterprise-beans

 assembly-descriptor
security-role
   descriptionUsers/description
   role-nameusers/role-name
/security-role
method-permission
   descriptionRestricted/description
   role-nameusers/role-name
   method
  ejb-nameStamp/ejb-name
  method-name*/method-name
   /method
/method-permission
 /assembly-descriptor

 /ejb-jar 

It works when I used standalone client, having this..
application-client
display-nameStamp/display-name
descriptionExample Bank/description
ejb-ref
ejb-ref-nameStamp/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homestamp.ejb.StampHome/home
remotestamp.ejb.Stamp/remote
/ejb-ref
/application-client


However, it doesn't work when using servlets, I have this..

web-app
   display-nameTesting app/display-name
   servlet
  servlet-nameHelloServlet/servlet-name
  descriptionServlet that calls the Stamp bean/description
  servlet-classvc.web.HelloServlet/servlet-class
   /servlet
   servlet-mapping
  servlet-nameHelloServlet/servlet-name
  url-pattern/test/url-pattern
   /servlet-mapping

!--
ejb-ref
ejb-ref-nameStamp/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
homestamp.ejb.StampHome/home
remotestamp.ejb.Stamp/remote
/ejb-ref
--
/web-app

Note that I have ejb-ref commented out, i had been told not to use
ejb-ref in web.xml for my case, and I do a lookup on the global name
of the bean, which is Stamp

Object boundObject = context.lookup("Stamp");

but resulted in "javax.naming.NameNotFoundException: Stamp not found"

I have also been told that maybe it is because I hace the EJB/servlets
deployed sepearately as two apps.

I initialised the context using...

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.ApplicationInit
ialContextFactory");
env
put(Context.PROVIDER_URL,"ormi://p500.cheapdull.mine.nu/stamp");
env.put(Context.SECURITY_PRINCIPAL,"admin");
env.put(Context.SECURITY_CREDENTIALS,"123");
 
context = new InitialContext(env);
 
(similar in the client as well, but use
ApplicationClientInitialContextFactory instead)

so does any one has any suggestion as to what amI doing wrong here?

Thanks heaps in advance. :)

Regards, James.






RE: Can't deploy EJB2.0 bean

2000-09-22 Thread Goel, Deepak

IMHO, why don't you try this simple thing and then figure out whether this
is the problem or not instead of wasting your time as well as time of other
people in the list.

-Original Message-
From: Vimal Kansal [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 4:34 PM
To: Orion-Interest
Subject: Re: Can't deploy EJB2.0 bean


I am looking on counter.jar through winzip on an NT
machine. Try doing it on an NT machine. Moreoever, I
checked my other jars which I deploy on weblogic
server, they also have meta-inf as against META-INF
and they work.

Vimal
--- Matthew Domarotsky [EMAIL PROTECTED] wrote:
 I just looked at my counter.jar and META-INF was
 uppercase.  If you look at
 the list below, notice there are two META-INF
 directories being added to
 the jar, one uppercase and the other lowercase.  So
 it seems the
 directories are being treated separately.
 
 
 
 
 Vimal Kansal wrote:
 
  I don't think case is any issue. If you look at
  counter.jar whichg Orion ships with their product,
 it
  also has ejb-jar.xml under meta-inf and not
 META-INF
 
  Vimal
  --- Matthew Domarotsky [EMAIL PROTECTED]
 wrote:
   Vimal,
  
   I looked in the jar you attached, here's what I
 saw:
  
   jar -tvf emp.jar
   META-INF/
   META-INF/MANIFEST.MF
   ejb20/
   ejb20/Address.class
   ejb20/ContactInfo.class
   ejb20/Employee.class
   ejb20/EmployeeEJB.class
   ejb20/EmployeeHome.class
   meta-inf/
   meta-inf/ejb-jar.xml
  
   The ejb-jar.xml needs to be in META-INF
 (uppercase),
   like so:
  
   META-INF/ejb-jar.xml
  
   Hope this helps,
  
   Matt
  
  
  
  
  
  
   Vimal Kansal wrote:
  
Hi,
   
I am trying to deploy a very simple EJB2.0
 bean.
   But
everytime I get the message :
   
unable to find/read assembly info for
emp.jar(META-INF/ejb-jar.xml)
   
I ahve also attached my jar file to this mail.
   
Please help me.
   
Vimal
   
   
 __
Do You Yahoo!?
Send instant messages  get email alerts with
   Yahoo! Messenger.
http://im.yahoo.com/
   
   
  
 


 Name: emp.jar
   emp.jar   Type: Zip Compressed Data
   (application/x-zip-compressed)
 Encoding: base64
  Description: emp.jar
  
  
 
  __
  Do You Yahoo!?
  Send instant messages  get email alerts with
 Yahoo! Messenger.
  http://im.yahoo.com/
 
 


__
Do You Yahoo!?
Send instant messages  get email alerts with Yahoo! Messenger.
http://im.yahoo.com/




EJB 2.0 O/R Mapping Support in Orion

2000-09-15 Thread Goel, Deepak

Hello everyone,

I would like to find more about support for EJB 2.0 O/R mapping support in
Orion. Somewhere on this list I read that the ATM example is EJB 2.0 but the
distribution I have doesn't seem to have that. Also, how can I make sure
that the version of Orion I have really supports EJB 2.0 since I also saw
some posts about Orion 1.3.1 required to support EJB 2.0.

Any help will be greatly appreciated.

Thanks,
Deepak Goel
Project Lead
Siemens ICN