RE: Clusters!!!!

2001-01-18 Thread Kevin Duffey

I have tested Orion in a two server cluster and it worked for the most part
nicely. My HttpSession beans were not all that properly done, so that may
have been the quirks I saw.

You do have to buy a license for each Orion server, 1 per SERVER not per CPU
per server, unlike most applications.


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Mohit Palhan
 Sent: Wednesday, January 17, 2001 8:09 PM
 To: Orion-Interest
 Subject: Clusters
 Importance: High


 Hi! there,
 I want to know if

 1 anyone has Orion servers in cluster's?
 2 Has done load balancing ? (which algorithm are you using etc..)
 3 Is there object clustering in Orion? (as in the case of Weblogic .The
 key technology that
 underpins clustered objects in WebLogic Server is the replica-aware
 stub. When you compile an
 EJB that supports clustering (as defined in its deployment descriptor)
 ejbc passes the EJB's
 interfaces through the rmic compiler to generate replica-aware stubs for
 the bean. For RMI
 objects, you generate replica-aware stubs explicitly using command-line
 options to rmic).
 Note:- I have both session and entity beans in my system!(not sure
 but have heard it corrupts
 database any pointers are welcome)
 4 To have clusters do I have to buy multiple licenses ??

 Thanks
 mohit palhan
 Have a nice day :-)
 PS- Any pointers are welcome viz must do's for clustering
 etc..design etc..)


 --
 **
 ***

 The information contained in this message (including any attachments) is
 confidential and may be legally privileged.
 If you are not the intended recipient, please delete it from your system
 immediately - any disclosure, copying or distribution thereof or any
 action taken or omitted to be taken in reliance thereon is prohibited
 and may be unlawful.AITPL makes no warranty as to the accuracy or
 completeness of any information contained in this message and hereby
 excludes any liability of any kind for the information contained herein
 or for the transmission, reception, storage or use of such information
 in any way whatsoever.  Any opinions expressed in this message are those
 of the author and do not necessarily reflect the opinions of AITPL.
 **
 ***








IBM DB2 database schema

2001-01-18 Thread hartmut wilms

Hello everyone,

has anybody created a DB2 database-schema? I copied oracle.xml and changed
some mappings. But I'm no DB2-dude, so I would really appreciate a working
DB2 schema.

I got some errors when auto-creating tables. Something must be wrong...




AW: Servlet Mapping and Access

2001-01-18 Thread hartmut wilms
Title: SV: Servlet Mapping and Access



Hi 
Magnus,

You're right. 
I must have missed that line

 name - The name of the 
web-application inside the (enterprise-)application. 

But: 
Some pieces are missing in the online docs. Sometimes the information about 
orion config files just stops or breaks respectively in the middle of a 
sentence. 


Hartmut



  -Ursprüngliche Nachricht-Von: Magnus Rydin 
  [mailto:[EMAIL PROTECTED]]Gesendet: Donnerstag, 18. Januar 
  2001 08:30An: Orion-InterestBetreff: SV: Servlet Mapping 
  and Access
  Did you check the doc at http://www.orionserver.com/docs/web-site.xml.html 
  (refered to in the documentation outline) ? It says the following on this: web-app 
  application="default" load-on-startup="false" max-inactivity-time="123" 
  name="defaultWebApp" root="/catalog" shared="true|false" / 
   Reference to a 
  application - The name of the (enterprise-)application the 
  web-app exists in. load-on-startup - Optional 
  attribute specifying whether or not to preload this web-app, if false then the 
  app will be loaded when needed (at the first request). The default is 
  false.
  max-inactivity-time - Optional attribute specifying number of 
  minutes of inactivity before this web-app can be shut down, if not specified 
  no shutdown will occur.
  name - The name of the web-application inside the 
  (enterprise-)application. root - The path on this site 
  to bind the application to, if for instance an app is installed at "/theapp" 
  it is reached by the URL: "http://www.thesiteserver.com/theapp/".
  shared - Whether or not multiple bindings (different 
  sites/context roots) are to be shared. Sharing implies sharing of sessions, 
  servlet instances etc. The default is 'false' 
  Although a lot of documents are missing, the Orion 
  configuration files are pretty well covered. WR 
  
   -Ursprungligt meddelande-  Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
   Skickat: den 17 januari 2001 22:53  Till: Orion-Interest  Ämne: AW: 
  Servlet Mapping and AccessHi Jeff,  
   everything works fine nw. Thanks very much. 
  Nearly all of my  configuration  was perfectly all right in the beginning. The problem was - 
   and still is in  some 
  areas - that there is very few documentation for orion  config-files and  their relationships. 
  The solution:   
  default-web-site:   
  web-app application="gamsytest" name="junitee-web"   
   root="/gamsytest" / 
My EAR archive contains a 
  WAR called junitee-web.war. I  didn't realize, 
  that  the name attribute in the web-app tag 
  references the WAR filename.   After reading your mail I realized what was wrong. Thanks, 
  again.   
  Hartmut   
  -Ursprüngliche Nachricht-  Von: Jeff 
  Schnitzer [mailto:[EMAIL PROTECTED]] 
   Gesendet: Mittwoch, 17. Januar 2001 22:09 
   An: Orion-Interest  Betreff: 
  RE: Servlet Mapping and AccessHave you successfully installed the 
  sample junitee test in the JUnitEE  
  tutorial?   You 
  shouldn't need to modify the global application.xml.  Here's how my  system is set up, given 
  that my ear contains two wars,  
  "similarity-web"  and "similarity-test-web" (which 
  contains my TestServlet and JUnit  tests): 
server.xml: 
   application name="similarity"  path="../applications/similarity.ear" /   default-web-site:  web-app application="similarity" name="similarity-web" 
   root="/similarity" /  
  web-app application="similarity" name="similarity-test-web" 
   root="/test" /  
   similarity-web's web.xml:   servlet   
   servlet-name 
  JUnitTestServlet /servlet-name  

  description JUnit test harness /description   
   servlet-class TestServlet 
  /servlet-class  
   /servlet  

  servlet-mapping  

  servlet-name JUnitTestServlet /servlet-name   
   url-pattern /TestServlet 
  /url-pattern  
   /servlet-mapping   After this, I can access my test 
  servlet as either  http://localhost/test/TestServlet or  http://localhost/test/servlet/TestServlet. The first 
  because it's  configured in the web.xml, the 
  second because all servlets in the  
  WEB-INF/classes directory of the war are exported as under the fairly 
   standard path "root/servlet" (it can be 
  configured in the  
  global-web-application.xml).   I'm a little confused by what you posted, but assuming that 
   your normal  web 
  application is in gamesytest-web.war and your tests are in  junitee-web.war, both packaged in "junitee-orion.ear", you 
  should  configure junitee-web in the 
  default-web-site and remove the reference  to it 
  from the global application.xml.   Then you should be able to use either URL:  http://localhost/junitee/TestServlet  http://localhost/junitee/servlet/TestServlet 
Jeff   -Original Message- 
   From: hartmut wilms [mailto:[EMAIL PROTECTED]] 
   Sent: Wednesday, January 17, 2001 5:16 AM 
   To: Orion-Interest  
  Subject: AW: Servlet Mapping and Access  
  Hi 
  Santosh,

RE: Help: deadlock with concurent access to entity bean

2001-01-18 Thread Elhadi barkat

Storing Images works for me using DB2
it should also works with DBs supporting BLOB
1) first check that your db schema config file defines a mapping between
java.io.Serializable and BLOB

2) implement a Picture class that implements
Serializable
---
public class Picture implements Serializable {
  public Object data;
  public Picture(){}
  public void setData(byte[] data) {
this.data = data.clone();
  }

  public byte[] getData() {
   return (byte[])data;
  }
}

3) in your bean declare your picture as an instance of Picture class and
deploy it as a container
managed field

Hope it'll work for you

As you read it in my previous message, I'm facing deadlocks with a heavy
concurent access to PictureBean
I'm still searching for a solution


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Agus K.
Pranantoseno
Sent: jeudi, 18. janvier 2001 02:52
To: Orion-Interest
Subject: Re: Help: deadlock with concurent access to entity bean


Do u succedded using BLOB to map a picture ?? do u experiance size limit ??
i have tried CMP picture bean myself (mapped to bean) but somehow on image
more than 1k it's failed to store to the db (no exception thrown) so i used
LONG RAW instead (i used oracle as db). what database do u used ??

- Original Message -
From: Juan Lorandi (Chile) [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 5:36 AM
Subject: RE: Help: deadlock with concurent access to entity bean


check Bug #161  Bug #170 in bugzilla...
supposedly there's a workaround to Bug #170, but I'm not clear on exactly
how to use it

JP

-Original Message-
From: Elhadi barkat [mailto:[EMAIL PROTECTED]]
Sent: Mircoles, 17 de Enero de 2001 16:57
To: Orion-Interest
Subject: Help: deadlock with concurent access to entity bean


Hi,
During heavy test of my CMP picture bean (mapped to a table with a BLOB),
deadlocks occur when I try to access it concurently from different clients,
a threaded java application, a web client and a proprietary messaging
service within orion

The result is that my db table is no more accessible and I don't get any
exceptions

Could someone give me a push on this issue. I'm stucked on it for the day
Hadi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres
Sent: mercredi, 17. janvier 2001 19:10
To: Orion-Interest
Cc: Claes Theander
Subject: Re: Stand-alone-client


Try using:
   prop.setProperty(
  "java.naming.factory.initial",
  "com.evermind.server.rmi.ApplicationClientInitialContextFactory");

 Hello!

 I'm trying to connect to my EJB's from a stand alone client like this:

 Properties prop = new Properties();


prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
nitialContextFactory");


 prop.setProperty("java.naming.provider.url","ormi://localhost/myApp");
 prop.setProperty("java.naming.security.principal","admin");
 prop.setProperty("java.naming.security.credentials","123");
 Context con = new InitialContext(prop);
 boundObject = con.lookup("java:comp/env/ejb/XXXHome");
 xxxHome =
 (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class);

 Im getting this error message:
 "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not
 found."
 I know that the EJB's are working cause I'm able to access them from a
 jsp-page.
 I have refs to the EJB in application-client.xml.

 Any suggestions ?
 /C.

















Getting the home interface of another EJB from within an EJB

2001-01-18 Thread Randahl Fink Isaksen

From inside an entity bean you can get hold of your Home interface by
calling

myBeansEntityContext.getEJBHome()

but how do I get hold of the home interface of _another_ bean?

I assume this requires some kind of lookup. In JSP files one would simply
use "new InitialContext()" and perform a lookup on this context, but if I do
so within an EJB, I am not able to find any home interfaces at all - I get a
NameNotFoundException.

Now, is it really necessary to go all the way and get an InitialContext by
setting up environment properties and creating an InitialContext from these
plus adding an "application-client.xml" to the deployment?? - After all
I am still inside an EJB...


Any hints would be appreciated.

Randahl





RE: IBM DB2 database schema

2001-01-18 Thread Elhadi barkat

take a look at this message
http://www.mail-archive.com/orion-interest@orionserver.com/msg07615.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of hartmut wilms
Sent: jeudi, 18. janvier 2001 09:43
To: Orion-Interest
Subject: IBM DB2 database schema


Hello everyone,

has anybody created a DB2 database-schema? I copied oracle.xml and changed
some mappings. But I'm no DB2-dude, so I would really appreciate a working
DB2 schema.

I got some errors when auto-creating tables. Something must be wrong...






Re: Open source and low cost EJB

2001-01-18 Thread Christian Sell

personally, under the "Free  Open Source" category I would expect
completely free products. Otherwise, besides Orion you would at least also
have to add JRun - its free for developers as well. I think its safer to
classify orion as a commercial offering.

- Original Message -
From: "Kemp Randy" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 9:24 PM
Subject: Re: Open source and low cost EJB


 I have lobbied successfully to include your project at
 www.ejbean.com, when I noticed only jonas under free
 and open source efforts.  Can someone work with
 Laurent to get Orion added, since it is free to
 developers and for non commercial usage?


 --- Laurent [EMAIL PROTECTED] wrote:
  Randy,
 
  I have read both of your Open Source and low cost
  EJB messages, and I am
  very happy to hear from you.
 
  I am currently working with Lutris to add them to
  the page, and now I
  welcome your suggestions.
 
  Can I ask, would you be willing to work with me to
  get these efforts you
  mention all up on ejbean.com?
 
  Looking forward to hearing back from you.
 
  Regards,
 
  Laurent
 
  At 06:46 AM 1/17/2001 -0800, you wrote:
  I notice you have Jonas on www.ejbean.com.  How
  about
  including these other open source or low cost
  efforts,
  which I have used or followed personally?
  Jboss -- www.jboss.org
  openEJB -- www.openejb.org
  Orion  -- www.orionserver.com
  
  __
  Do You Yahoo!?
  Get email at your own domain with Yahoo! Mail.
  http://personal.mail.yahoo.com/
 
  /*
  Laurent Weichberger   JavaSaurus
  ejbean.com  ~  project manager
  7 E. Aspen Avenue, #11   Flagstaff, AZ  86001
 
  Office: 520.214.9314
  Cell:602.312.5334
 
  mailto: [EMAIL PROTECTED]
http://www.ejbean.com
  Your Universal Resource for Enterprise JavaBeans(tm)
 
  "I and you are all One."  ~  M.B.
  Enterprise JavaBeans is a trademark of Sun
  Microsystems, Inc.
  */
 


 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/






SV: Getting the home interface of another EJB from within an EJB

2001-01-18 Thread Klaus . Myrseth

You work with EJBs inside another EJB the same way as you do inside a JSP

Remember you have to use the JNDI name, not the home interface name, so a
lookup("ejbSomeExample") will ofcourse return the home interface :)

Hope this helps (ps remember ejb-refs to the objects you wish to use from
the bean you are calling from or it will not work..

Klaus

-Opprinnelig melding-
Fra: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]
Sendt: 18. januar 2001 11:00
Til: Orion-Interest
Emne: Getting the home interface of another EJB from within an EJB


From inside an entity bean you can get hold of your Home interface by
calling

myBeansEntityContext.getEJBHome()

but how do I get hold of the home interface of _another_ bean?

I assume this requires some kind of lookup. In JSP files one would simply
use "new InitialContext()" and perform a lookup on this context, but if I do
so within an EJB, I am not able to find any home interfaces at all - I get a
NameNotFoundException.

Now, is it really necessary to go all the way and get an InitialContext by
setting up environment properties and creating an InitialContext from these
plus adding an "application-client.xml" to the deployment?? - After all
I am still inside an EJB...


Any hints would be appreciated.

Randahl





Urgent(Creating EJB(Entity with objectivity database)!!!!

2001-01-18 Thread Sanjeev Sharma


Hi

   If any body know how to use objectivity database with orionserver to
   craete Entity Bean(EJB)First thing is orion support objectivity
database
   how can i make useof this i am trying to create an entity bean(BMP)
bean
   managed persistance. if anybody having idea let me know.


Thanks in Advance

--
  Cheers,
  -:)




Ampersand Info-Tech, GF,Admin Block NSIC-TSC, Okhla Ind.Estate,
New Delhi 110020, INDIA.


The information contained in this message (including any attachments)
is  confidential and may be legally privileged. If you are not the
intended   recipient, please delete it from your system immediately -
any disclosure,copying or distribution thereof or any action taken or
omitted to be taken in reliance thereon is prohibited and may be
unlawful. AITPL makes no warranty as to the accuracy or completeness of
any information contained in this message and hereby excludes any
liability of any kind for the information contained herein or for the
transmission, reception, storage or use of such information in any way
whatsoever. Any opinions expressed in this message are those of the
author and do  not necessarily reflect the opinions of AITPL.
[EMAIL PROTECTED]





Re: Urgent(Creating EJB(Entity with objectivity database)!!!!

2001-01-18 Thread Robert Krueger

At 03:37 18.01.2001 , you wrote:

Hi

If any body know how to use objectivity database with orionserver to
craete Entity Bean(EJB)First thing is orion support objectivity
database
how can i make useof this i am trying to create an entity bean(BMP)
bean
managed persistance. if anybody having idea let me know.

no it doesn't directly support it. the problem is that for entity beans 
you'll nee container-managed transactions and that won't work with anything 
but a jdbc datasource so IMHO the only thing you can do is use objectivity 
from a Session Bean und do the transaction demarcation yourself.

sorry

HTH

robert


Thanks in Advance

--
   Cheers,
   -:)
=== 
=

--- 
-

Ampersand Info-Tech, GF,Admin Block NSIC-TSC, Okhla Ind.Estate,
New Delhi 110020, INDIA.
--- 
-

The information contained in this message (including any attachments)
is  confidential and may be legally privileged. If you are not the
intended   recipient, please delete it from your system immediately -
any disclosure,copying or distribution thereof or any action taken or
omitted to be taken in reliance thereon is prohibited and may be
unlawful. AITPL makes no warranty as to the accuracy or completeness of
any information contained in this message and hereby excludes any
liability of any kind for the information contained herein or for the
transmission, reception, storage or use of such information in any way
whatsoever. Any opinions expressed in this message are those of the
author and do  not necessarily reflect the opinions of AITPL.
[EMAIL PROTECTED]
--- 
-

(-) Robert Krger
(-) SIGNAL 7 Gesellschaft fr Informationstechnologie mbH
(-) Brder-Knau-Str. 79 - 64285 Darmstadt,
(-) Tel: 06151 665401, Fax: 06151 665373
(-) [EMAIL PROTECTED], www.signal7.de





RE: How to configure Orion to use Oracle

2001-01-18 Thread Ozzie Gurkan

You can also create an oracle.jar file and put the path in the actual
manifest file. Have you tried that?

Ozzie

--- Stanislav Maximov [EMAIL PROTECTED] wrote:
 
  I'm not sure if you can use the CLASSPATH to accomplish the
  same thing, but frankly I'm not clear on how orion decides where to
 find
  things!
 
  I agree. Why do I have to copy the file(s) there instead of using the
  CLASSPATH? Shouldn't I be able to point to where Oracle installed the
  driver files? Do I need to have two copies of the driver files on
  my machine?
 
  Maybe this is an idea for a future improvement for Orion(?)
 
 This could be solved easily by putting a symlink to the file, not the
 file
 itself. At least on unix systems.
 
 Stas.
 
 





Re: Problem with CMP - persisting a Multi-dimensional array!

2001-01-18 Thread Markus Holmberg

Multidimensinal arrays don't seem to work with Orion CMP. Try emulating
your multidimensional array with a singledimensional array in your Java
code.

Regards, Markus.

On Wed, Jan 17, 2001 at 11:53:13AM -, Bernard wrote:
 Hello everyone.
 
 I am having problems trying to persist the following multi-dimensional array
 with an Entity Bean using CMP and Orion:
   String[][] table
 
 Here is the entry in ejb-jar.xml
   cmp-fieldfield-nametable/field-name/cmp-field
 
 When I deploy the application, I get the following error:
 "
 Error compiling file:/C:/0/build/assemble/np3/widget-ejb.jar: Dependent OR
 class [Ljava.lang.String;
  cannot be abstract unless the ejb-jar.xml has a dependent tag for it
 Orion/1.3.8 initialized
 "
 
 Note: when i try to deploy this as a single dimension array, it deploys
 without a problem.  Has anyone got a resolution to this problem, within the
 context of still using CMP?
 
 Regards
 Bernard
 

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




Re: Is combining Orion and PostgreSQL a good choice

2001-01-18 Thread Markus Holmberg

On Wed, Jan 17, 2001 at 11:50:44PM +1100, Mike Cannon-Brookes wrote:
 I use the default schema (the latest one from Orion has a lot of fixes
 contributed by myself and others, the original was horrible). Let me know if
 there are any problems with the latest schema.

Here's an addition of disallowed field names (as specified in the
PostgreSQL docs):

!-- Postgres reserved words --
disallowed-field named="abort" /
disallowed-field named="analyze" / 
disallowed-field named="binary" / 
disallowed-field named="cluster" /
disallowed-field named="constraint" /
disallowed-field named="copy" /
disallowed-field named="do" / 
disallowed-field named="explain" /
disallowed-field named="extend" /
disallowed-field named="listen" /
disallowed-field named="load" /
disallowed-field named="lock" / 
disallowed-field named="move" / 
disallowed-field named="new" /
disallowed-field named="none" /
disallowed-field named="notify" / 
disallowed-field named="offset" / 
disallowed-field named="reset" / 
disallowed-field named="setof" /
disallowed-field named="show" /
disallowed-field named="unlisten" /
disallowed-field named="until" / 
disallowed-field named="vacuum" /
disallowed-field named="verbose" /

Regards, Markus.

-- 

Markus Holmberg |   Give me Unix or give me a typewriter.
[EMAIL PROTECTED]  |   http://www.freebsd.org/




JSP/Bean not reloading after re-deploy

2001-01-18 Thread Ozzie Gurkan

I have searched through all of orion-interest list and still have not found
a solution that works for me. I am talking about the "reload" problem with
changing of JSPs and its bean classes withouth restarting the server. I
understand that the server should never be restarted, but I can't seem to
get anything working without actually doing just that. I have touched the
web.xml file before it is ear'd up to be deployed, but that didn't work.
Does anyone have a solution to this problem? I must be missing something
very simple.

Thanks,
Ozzie Gurkan




Re: Getting the home interface of another EJB from within an EJB

2001-01-18 Thread Peter Pontbriand

 but how do I get hold of the home interface of _another_ bean?

We've found that Orion exhibits an 'idiosyncracy' in this regard. It can't
seem to decide where to make the home interfaces available in the JNDI ENC.

As I understand it, using the following example EJB-REF in an EJB's
deployment descriptor should make a home interface available through the
described EJB's JNDI ENC:

ejb-ref
ejb-ref-nameejb/OrganizationEJB/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type

homecom.canlink.components.model.party.OrganizationHome/home

remotecom.canlink.components.model.party.Organization/remote
/ejb-ref

However, Orion (version 1.4.4 at least) seems to be uable to decide _where_
in the ENC to make this reference available. Again, as I understand it, the
reference should be found using lookup("java:comp/env/ejb/OrganizationEJB").
Unfortunately, we've found that in many cases the reference can only be
found using lookup("OrganizationEJB"). Being in the all-too-typical
situation of frantically trying to satisfy ridiculous deadline/resource
combinations, we haven't spent the time to try and discern a pattern to this
'idiosyncracy', intead prefering to implement a workaround wherein we try
_both_ lookups thusly:

try {
ref = jndiContext.lookup("java:comp/env/ejb/OrganizationEJB");
}catch(NamingException ne){
System.err.println("Failed to find Organization; attempting again using
non-standard mapping");
ref = jndiContext.lookup("OrganizationEJB");
}

If anyone knows (and cares to point out) that the 'idionsyncracy' is in our
understanding (or lack thereof) and not in Orion, please feel entirely free
to speak out.

P. Pontbriand
Canlink Interactive Technologies Inc.






Re: Getting the home interface of another EJB from within an EJB

2001-01-18 Thread Mikko Kurki-Suonio

On Thu, 18 Jan 2001, Peter Pontbriand wrote:

 As I understand it, using the following example EJB-REF in an EJB's
 deployment descriptor should make a home interface available through the
 described EJB's JNDI ENC:
 
 ejb-ref
 ejb-ref-nameejb/OrganizationEJB/ejb-ref-name
 ejb-ref-typeEntity/ejb-ref-type
 
 homecom.canlink.components.model.party.OrganizationHome/home
 
 remotecom.canlink.components.model.party.Organization/remote
 /ejb-ref
 
 However, Orion (version 1.4.4 at least) seems to be uable to decide _where_
 in the ENC to make this reference available. Again, as I understand it, the
 reference should be found using lookup("java:comp/env/ejb/OrganizationEJB").

This is exactly how it works for me under 1.4.0... but the again, I *DID*
switch back from 1.4.4 because it behaved weirdly and I didn't have the
time to nail down why exactly.

//Mikko






Invalid username/password looking up EJB

2001-01-18 Thread Carl Schaller
Title: SV: Servlet Mapping and Access



i try 
to access an ejb from a cold fusion (client). a fuslet servers as a connector 
between cfxtags and ejb's.

the 
fuslet 'HotelManager' results in 'Invalid username/password for datamart()' when 
looking up the home interface of 'HotelManager'.

...

 Properties prop = new 
Properties();

 
prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory"); 
prop.setProperty("java.naming.provider.url","ormi://localhost/datamart"); 
prop.setProperty("java.naming.security.principal","admin"); 
prop.setProperty("java.naming.security.credentials","123"); 
 context = new 
InitialContext(prop); HotelManagerHome home = 
(HotelManagerHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/ejb/HotelGuide/HotelManager"), 
HotelManagerHome.class);...

ejb/HotelGuide/HotelManager is referenced in 
web.xml

thx 
for any hint.


RE: Is combining Orion and PostgreSQL a good choice

2001-01-18 Thread Tim Drury


I agree with Sach that postgres is a great database.  Better
yet, the beta of 7.0.3 in cvs supports OUTER JOIN finally.

-tim

 -Original Message-
 From: Sach Jobb [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 17, 2001 2:36 PM
 To: Orion-Interest
 Subject: RE: Is combining Orion and PostgreSQL a good choice
 
 
 That could very well be. We were using postgres 7.0.1 and it 
 may have been
 a known bug.
 
 Tell you what, Randahl, if you end up having issues with date 
 let me know
 and i'll send you our driver hack. I fully recommend 
 postgres, it's by far
 my favorite opensource database.
 
 sach
 robot6
 
 %s/windows/linux/g
 
 
 On Wed, 17 Jan 2001, Tim Drury wrote:
 
  
  I use the latest postgresql jdbc driver that came
  with 7.0.2 and this postgresql.xml database config 
  file and everything works fine for me.
  
  -tim
  
  ?xml version="1.0"?
  !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema"
  "http://www.orionserver.com/dtds/database-schemas.dtd"
  
  database-scheme name="PostGreSQL" 
 max-table-name-length="25" not-null="not
  null" null="" primary-key="primary key"
  
  type-mapping type="java.lang.String" name="varchar" /
  type-mapping type="java.lang.Integer" name="int8" /
  type-mapping type="int" name="int4" /
  type-mapping type="long" name="int8" /
  type-mapping type="float" name="float4" /
  type-mapping type="double" name="float8" /
  type-mapping type="byte" name="int2" /
  type-mapping type="char" name="char" /
  type-mapping type="short" name="int2" /
  type-mapping type="boolean" name="bool" /
  type-mapping type="java.util.Date" name="timestamp" /
  type-mapping type="java.io.Serializable" name="oid" /
  type-mapping type="java.math.BigDecimal" name="decimal" /
  
  disallowed-field name="parent" /
  disallowed-field name="password" /
  disallowed-field name="username" /
  disallowed-field name="date" /
  disallowed-field name="order" /
  disallowed-field name="old" /
  disallowed-field name="user" /
  /database-scheme
  
   -Original Message-
   From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]
   Sent: Wednesday, January 17, 2001 11:21 AM
   To: Orion-Interest
   Subject: RE: Is combining Orion and PostgreSQL a good choice
   
   
   Interesting... but are you stating that without fixing bugs 
   in the JDBC
   driver for PostgreSQL, it just will not work? If so, I would 
   of course like
   to hear what you fixed exactly...
   
   Yours
   
   Randahl
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED]]On Behalf Of Mike
   Cannon-Brookes
   Sent: 17. januar 2001 13:51
   To: Orion-Interest
   Subject: RE: Is combining Orion and PostgreSQL a good choice
   
   
   I'm using PostgreSQL on an application that is about to go 
   live (within the
   next month). Seems to be working fine in testing so far, 
   we're moving off
   Sybase 11.0.3.3 on Linux to PostgreSQL (probably 7.1 by 
 the time we go
   live).
   
   I've personally fixed a bug or two in the JDBC driver, but 
   other than that
   the latest driver seems very solid.
   
   I use the default schema (the latest one from Orion has a 
 lot of fixes
   contributed by myself and others, the original was horrible). 
   Let me know if
   there are any problems with the latest schema.
   
   -mike
   
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of 
   Randahl Fink
Isaksen
Sent: Wednesday, January 17, 2001 11:01 PM
To: Orion-Interest
Subject: Is combining Orion and PostgreSQL a good choice
   
   
I am wondering if using PostgreSQL with Orion would be a good
option. So my
questions are:
   
1. Has anyone tried using PostgreSQL with Orion in a 
   real-life application
(running for a long period with no errors) - and was it 
 a success?
   
2. Do you use the default database schema for PostgreSQL 
   that comes with
Orion?
   
   
Yours
   
Randahl
   
   
   
   
   
   
   
   
   
  
 
 




Re: AW: Stand-alone-client

2001-01-18 Thread Tim Endres

 ApplicationClientInitialContextFactory is the right factory when using
 application clients (J2EE - application-client.xml). If you want to use a
 pure stand alone Java Application 
 RMIInitialContextFactory should be your choice.

Please elaborate. What is the difference between an "application client" and
a "pure stand alone Java Application"?





R: JMS

2001-01-18 Thread Montebove Luciano

I have just started a study for integrating swiftMQ and sonicMQ with Orion.
Up to now I tried only to send messages from servlet/JSP but both the
products provide some form of bridging with other JMS servers, so this way
could be possible to use Message Driven EJB.
More information in a few weeks.

Luciano


-Messaggio originale-
Da: Mike Courtney [mailto:[EMAIL PROTECTED]]
Inviato: mercoled 17 gennaio 2001 18.27
A: Orion-Interest
Oggetto: RE: JMS


Speaking of which, has anyone out there used any of these messaging systems
with Orion?

I am interested in using a solid JMS implementation with a backing database
for distributed replication/high availability. Apparently Orion only
provides file based persistence for JMS queues.

Any suggestions/thoughts?

thanks,
Mike Courtney


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B.
Ottinger
Sent: Wednesday, January 17, 2001 5:52 AM
To: Orion-Interest
Subject: Re: JMS


On Wed, 17 Jan 2001 [EMAIL PROTECTED] wrote:
 Is that true that the only message queue servers in existence
 which support JMS are IBM's MQ Series and Forte's
 Java Message Queue? Any other vendors?

Um, no. Far from it.

Some JMS systems, including the ones you mentioned:

MQSeries (http://www-4.ibm.com/software/ts/mqseries/)
SonicMQ (http://www.progress.com/sonicmq/)
FioranoMQ (http://www.fiorano.com/)
BEA's message queue (http://www.bea.com/)
OpenJMS (http://www.openjms.org/)
SwiftMQ (http://www.swiftmq.com/)
Sun's JMS (http://http://www.sun.com/forte/jmq/index.html)
Softwired iBus (http://www.softwired-inc.com/)

I'm sure there are more.

---
Joseph B. Ottinger   [EMAIL PROTECTED]
http://epesh.com/ IT Consultant







RE: Help: deadlock with concurent access to entity bean

2001-01-18 Thread Juan Lorandi (Chile)

Oracle, MS SQL, Sybase 11  12, Hypersonic
database-schemas are key in this...

However, I don't store files in the database but have built a service that
sync's a number of dir's in a cluster/island, so it handles all file
replication
without hitting the DB; I map Objects to clob in Oracle, VARBINARY in Sybase
 MSSQL.
I haven't persisted any object above 30 K
-Original Message-
From: Agus K. Pranantoseno [mailto:[EMAIL PROTECTED]]
Sent: Mircoles, 17 de Enero de 2001 22:52
To: Orion-Interest
Subject: Re: Help: deadlock with concurent access to entity bean


Do u succedded using BLOB to map a picture ?? do u experiance size limit ??
i have tried CMP picture bean myself (mapped to bean) but somehow on image
more than 1k it's failed to store to the db (no exception thrown) so i used
LONG RAW instead (i used oracle as db). what database do u used ??

- Original Message -
From: Juan Lorandi (Chile) [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, January 18, 2001 5:36 AM
Subject: RE: Help: deadlock with concurent access to entity bean


check Bug #161  Bug #170 in bugzilla...
supposedly there's a workaround to Bug #170, but I'm not clear on exactly
how to use it

JP

-Original Message-
From: Elhadi barkat [mailto:[EMAIL PROTECTED]]
Sent: Mircoles, 17 de Enero de 2001 16:57
To: Orion-Interest
Subject: Help: deadlock with concurent access to entity bean


Hi,
During heavy test of my CMP picture bean (mapped to a table with a BLOB),
deadlocks occur when I try to access it concurently from different clients,
a threaded java application, a web client and a proprietary messaging
service within orion

The result is that my db table is no more accessible and I don't get any
exceptions

Could someone give me a push on this issue. I'm stucked on it for the day
Hadi

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tim Endres
Sent: mercredi, 17. janvier 2001 19:10
To: Orion-Interest
Cc: Claes Theander
Subject: Re: Stand-alone-client


Try using:
   prop.setProperty(
  "java.naming.factory.initial",
  "com.evermind.server.rmi.ApplicationClientInitialContextFactory");

 Hello!

 I'm trying to connect to my EJB's from a stand alone client like this:

 Properties prop = new Properties();


prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
nitialContextFactory");


 prop.setProperty("java.naming.provider.url","ormi://localhost/myApp");
 prop.setProperty("java.naming.security.principal","admin");
 prop.setProperty("java.naming.security.credentials","123");
 Context con = new InitialContext(prop);
 boundObject = con.lookup("java:comp/env/ejb/XXXHome");
 xxxHome =
 (XXXHome)PortableRemoteObject.narrow(boundObject,XXXHome.class);

 Im getting this error message:
 "javax.naming.NameNotFoundException: java:comp/env/ejb/XXHome not
 found."
 I know that the EJB's are working cause I'm able to access them from a
 jsp-page.
 I have refs to the EJB in application-client.xml.

 Any suggestions ?
 /C.















workaround for bug #170

2001-01-18 Thread Elhadi barkat

Yesterday, I've posted a message about a deadlock with concurent access to
an entity bean
Juan Lorandi told me about bug #170. I found it in bugzilla but couldn't
find its workaround

If one could send it to me it would be great

Hadi







Re: Invalid username/password looking up EJB

2001-01-18 Thread Ozzie Gurkan

Try using "com.evermind.server.ApplicationInitialContextFactory" and use
"ormi://localhost" as the url.

Thanks,
Ozzie

--- Carl Schaller [EMAIL PROTECTED] wrote:
 SV: Servlet Mapping and Accessi try to access an ejb from a cold fusion
 (client). a fuslet servers as a connector between cfxtags and ejb's.
 
 the fuslet 'HotelManager' results in 'Invalid username/password for
 datamart()' when looking up the home interface of 'HotelManager'.
 
 ...
 
   Properties prop = new Properties();
 
 

prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
 nitialContextFactory");
 
 prop.setProperty("java.naming.provider.url","ormi://localhost/datamart");
   prop.setProperty("java.naming.security.principal","admin");
   prop.setProperty("java.naming.security.credentials","123");
 
   context = new InitialContext(prop);
  HotelManagerHome home =

(HotelManagerHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/
 ejb/HotelGuide/HotelManager"), HotelManagerHome.class);
 ...
 
 ejb/HotelGuide/HotelManager is referenced in web.xml
 
 thx for any hint.
 





RE: JSP/Bean not reloading after re-deploy

2001-01-18 Thread Thomas Pridham

Not sure if this helps...we are using ant do builds with and each time we
build / deploy, Orion deploys the new files without failure.  It appears to
me that Orion is triggering a re-deploy based on the timestamp of the ear
file changing.  However, I don't think this on-the-fly deployment is a good
thing and here is why:

When we first deploy our app, the JVM memory footprint is 11.9Mbytes.
After the first compile / redeploy, the memory is 22.4Mbytes.
After the third compile / redeploy, the memory is 24.8Mbytes.

The memory usage continues to climb with each auto-deploy.  As far as I can
tell, the memory is never reclaimed for re-use.  Not quite sure why it works
that way, but it could be dangerous in a production environment.  I know the
standard developer answer is to allocate more memory, but that is just
hiding the problem.


-Original Message-
From: Ozzie Gurkan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 10:08 AM
To: Orion-Interest
Subject: JSP/Bean not reloading after re-deploy


I have searched through all of orion-interest list and still have not found
a solution that works for me. I am talking about the "reload" problem with
changing of JSPs and its bean classes withouth restarting the server. I
understand that the server should never be restarted, but I can't seem to
get anything working without actually doing just that. I have touched the
web.xml file before it is ear'd up to be deployed, but that didn't work.
Does anyone have a solution to this problem? I must be missing something
very simple.

Thanks,
Ozzie Gurkan




Jikes

2001-01-18 Thread Rabi Satter

Has anyone got Jikes to work with Orion? If so how?

Thanks
Rabi Satter





Re: JSP/Bean not reloading after re-deploy

2001-01-18 Thread Ozzie Gurkan

Actually, I am not getting any errors. I am deploying an 'ear' file using
admin.jar commands and everything works fine. However, it seems like the
server still wants to hang on to its memory copy of the JSPs and not
recompile the deployed ones. When I restart the server, everything is fine.

Ozzie

--- "Daniel G. Koulomzin" [EMAIL PROTECTED] wrote:
 What is the error?  I get a LinkageError when I update my WAR file
 without
 restarting the server.
 
 -Dan
 
 Ozzie Gurkan wrote:
 
  I have searched through all of orion-interest list and still have not
 found
  a solution that works for me. I am talking about the "reload" problem
 with
  changing of JSPs and its bean classes withouth restarting the server. I
  understand that the server should never be restarted, but I can't seem
 to
  get anything working without actually doing just that. I have touched
 the
  web.xml file before it is ear'd up to be deployed, but that didn't
 work.
  Does anyone have a solution to this problem? I must be missing
 something
  very simple.
 
  Thanks,
  Ozzie Gurkan
 
 --
 Daniel G. Koulomzin
 Digital Media On Demand
 244 Brighton Ave. 3rd Floor
 Allston MA 02134
 
 
 
 





RE: Getting the home interface of another EJB from within an EJB

2001-01-18 Thread Randahl Fink Isaksen

Thanks a lot for your post - I was getting a little worried that I was the
only person _unable_ to make this work on Orion

R.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Peter
Pontbriand
Sent: 18. januar 2001 16:26
To: Orion-Interest
Subject: Re: Getting the home interface of another EJB from within an
EJB


 but how do I get hold of the home interface of _another_ bean?

We've found that Orion exhibits an 'idiosyncracy' in this regard. It can't
seem to decide where to make the home interfaces available in the JNDI ENC.

As I understand it, using the following example EJB-REF in an EJB's
deployment descriptor should make a home interface available through the
described EJB's JNDI ENC:

ejb-ref
ejb-ref-nameejb/OrganizationEJB/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type

homecom.canlink.components.model.party.OrganizationHome/home

remotecom.canlink.components.model.party.Organization/remote
/ejb-ref

However, Orion (version 1.4.4 at least) seems to be uable to decide _where_
in the ENC to make this reference available. Again, as I understand it, the
reference should be found using lookup("java:comp/env/ejb/OrganizationEJB").
Unfortunately, we've found that in many cases the reference can only be
found using lookup("OrganizationEJB"). Being in the all-too-typical
situation of frantically trying to satisfy ridiculous deadline/resource
combinations, we haven't spent the time to try and discern a pattern to this
'idiosyncracy', intead prefering to implement a workaround wherein we try
_both_ lookups thusly:

try {
ref = jndiContext.lookup("java:comp/env/ejb/OrganizationEJB");
}catch(NamingException ne){
System.err.println("Failed to find Organization; attempting again using
non-standard mapping");
ref = jndiContext.lookup("OrganizationEJB");
}

If anyone knows (and cares to point out) that the 'idionsyncracy' is in our
understanding (or lack thereof) and not in Orion, please feel entirely free
to speak out.

P. Pontbriand
Canlink Interactive Technologies Inc.








RE: Is combining Orion and PostgreSQL a good choice

2001-01-18 Thread Mike Cannon-Brookes

Just a note for all, these fields have now been added to the postgresql
schema, autoupdate to update your schema.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Markus
 Holmberg
 Sent: Friday, January 19, 2001 1:43 AM
 To: Orion-Interest
 Cc: Orion-Interest
 Subject: Re: Is combining Orion and PostgreSQL a good choice


 On Wed, Jan 17, 2001 at 11:50:44PM +1100, Mike Cannon-Brookes wrote:
  I use the default schema (the latest one from Orion has a lot of fixes
  contributed by myself and others, the original was horrible).
 Let me know if
  there are any problems with the latest schema.

 Here's an addition of disallowed field names (as specified in the
 PostgreSQL docs):

 !-- Postgres reserved words --
 disallowed-field named="abort" /
 disallowed-field named="analyze" /
 disallowed-field named="binary" /
 disallowed-field named="cluster" /
 disallowed-field named="constraint" /
 disallowed-field named="copy" /
 disallowed-field named="do" /
 disallowed-field named="explain" /
 disallowed-field named="extend" /
 disallowed-field named="listen" /
 disallowed-field named="load" /
 disallowed-field named="lock" /
 disallowed-field named="move" /
 disallowed-field named="new" /
 disallowed-field named="none" /
 disallowed-field named="notify" /
 disallowed-field named="offset" /
 disallowed-field named="reset" /
 disallowed-field named="setof" /
 disallowed-field named="show" /
 disallowed-field named="unlisten" /
 disallowed-field named="until" /
 disallowed-field named="vacuum" /
 disallowed-field named="verbose" /

 Regards, Markus.

 --

 Markus Holmberg |   Give me Unix or give me a typewriter.
 [EMAIL PROTECTED]  |   http://www.freebsd.org/







RE: Is combining Orion and PostgreSQL a good choice

2001-01-18 Thread Tim Drury


oops, my fault.  I meant the 7.1 beta.

-tim

 -Original Message-
 From: Tim Drury 
 Sent: Thursday, January 18, 2001 11:14 AM
 To: 'Orion-Interest'
 Subject: RE: Is combining Orion and PostgreSQL a good choice
 
 
 
 I agree with Sach that postgres is a great database.  Better
 yet, the beta of 7.0.3 in cvs supports OUTER JOIN finally.
 
 -tim
 
  -Original Message-
  From: Sach Jobb [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 17, 2001 2:36 PM
  To: Orion-Interest
  Subject: RE: Is combining Orion and PostgreSQL a good choice
  
  
  That could very well be. We were using postgres 7.0.1 and it 
  may have been
  a known bug.
  
  Tell you what, Randahl, if you end up having issues with date 
  let me know
  and i'll send you our driver hack. I fully recommend 
  postgres, it's by far
  my favorite opensource database.
  
  sach
  robot6
  
  %s/windows/linux/g
  
  
  On Wed, 17 Jan 2001, Tim Drury wrote:
  
   
   I use the latest postgresql jdbc driver that came
   with 7.0.2 and this postgresql.xml database config 
   file and everything works fine for me.
   
   -tim
   
   ?xml version="1.0"?
   !DOCTYPE database-schema PUBLIC "-//Evermind//- Database schema"
   "http://www.orionserver.com/dtds/database-schemas.dtd"
   
   database-scheme name="PostGreSQL" 
  max-table-name-length="25" not-null="not
   null" null="" primary-key="primary key"
 
   type-mapping type="java.lang.String" name="varchar" /
   type-mapping type="java.lang.Integer" name="int8" /
   type-mapping type="int" name="int4" /
   type-mapping type="long" name="int8" /
   type-mapping type="float" name="float4" /
   type-mapping type="double" name="float8" /
   type-mapping type="byte" name="int2" /
   type-mapping type="char" name="char" /
   type-mapping type="short" name="int2" /
   type-mapping type="boolean" name="bool" /
   type-mapping type="java.util.Date" name="timestamp" /
   type-mapping type="java.io.Serializable" name="oid" /
   type-mapping type="java.math.BigDecimal" name="decimal" /
   
   disallowed-field name="parent" /
   disallowed-field name="password" /
   disallowed-field name="username" /
   disallowed-field name="date" /
   disallowed-field name="order" /
   disallowed-field name="old" /
   disallowed-field name="user" /
   /database-scheme
   
-Original Message-
From: Randahl Fink Isaksen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 11:21 AM
To: Orion-Interest
Subject: RE: Is combining Orion and PostgreSQL a good choice


Interesting... but are you stating that without fixing bugs 
in the JDBC
driver for PostgreSQL, it just will not work? If so, I would 
of course like
to hear what you fixed exactly...

Yours

Randahl

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Mike
Cannon-Brookes
Sent: 17. januar 2001 13:51
To: Orion-Interest
Subject: RE: Is combining Orion and PostgreSQL a good choice


I'm using PostgreSQL on an application that is about to go 
live (within the
next month). Seems to be working fine in testing so far, 
we're moving off
Sybase 11.0.3.3 on Linux to PostgreSQL (probably 7.1 by 
  the time we go
live).

I've personally fixed a bug or two in the JDBC driver, but 
other than that
the latest driver seems very solid.

I use the default schema (the latest one from Orion has a 
  lot of fixes
contributed by myself and others, the original was horrible). 
Let me know if
there are any problems with the latest schema.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of 
Randahl Fink
 Isaksen
 Sent: Wednesday, January 17, 2001 11:01 PM
 To: Orion-Interest
 Subject: Is combining Orion and PostgreSQL a good choice


 I am wondering if using PostgreSQL with Orion would be a good
 option. So my
 questions are:

 1. Has anyone tried using PostgreSQL with Orion in a 
real-life application
 (running for a long period with no errors) - and was it 
  a success?

 2. Do you use the default database schema for PostgreSQL 
that comes with
 Orion?


 Yours

 Randahl









   
  
  
 




Re: Jikes

2001-01-18 Thread Klaus Thiele

Hi Rabi,

look at config/server.xml:

  !-- Compiler, activate this to specify an alternative compiler such
   as jikes for EJB/JSP compiling. --
  compiler executable="jikes" 
classpath="/opt/java/jdk1.3/jre/lib/rt.jar" /

klaus

Rabi Satter wrote:

 Has anyone got Jikes to work with Orion? If so how?
 
 Thanks
 Rabi Satter
 
 
 
 





RE: Invalid username/password looking up EJB

2001-01-18 Thread Juan Lorandi (Chile)

have y'all tried the namespace-access tag in orion-application.xml??


JP


-Original Message-
From: Ozzie Gurkan [mailto:[EMAIL PROTECTED]]
Sent: Jueves, 18 de Enero de 2001 16:14
To: Orion-Interest
Subject: Re: Invalid username/password looking up EJB


Try using "com.evermind.server.ApplicationInitialContextFactory" and use
"ormi://localhost" as the url.

Thanks,
Ozzie

--- Carl Schaller [EMAIL PROTECTED] wrote:
 SV: Servlet Mapping and Accessi try to access an ejb from a cold fusion
 (client). a fuslet servers as a connector between cfxtags and ejb's.
 
 the fuslet 'HotelManager' results in 'Invalid username/password for
 datamart()' when looking up the home interface of 'HotelManager'.
 
 ...
 
   Properties prop = new Properties();
 
 

prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
 nitialContextFactory");
 
 prop.setProperty("java.naming.provider.url","ormi://localhost/datamart");
   prop.setProperty("java.naming.security.principal","admin");
   prop.setProperty("java.naming.security.credentials","123");
 
   context = new InitialContext(prop);
  HotelManagerHome home =

(HotelManagerHome)PortableRemoteObject.narrow(context.lookup("java:comp/env/
 ejb/HotelGuide/HotelManager"), HotelManagerHome.class);
 ...
 
 ejb/HotelGuide/HotelManager is referenced in web.xml
 
 thx for any hint.
 





RE: serialisation problem?

2001-01-18 Thread Juan Lorandi (Chile)



marshalling code is withing JVM

  -Original Message-From: Greg Matthews 
  [mailto:[EMAIL PROTECTED]]Sent: Miércoles, 17 de Enero de 2001 
  20:01To: Orion-InterestSubject: Re: serialisation 
  problem?
  
  thanks juan and mike for the 
  responses.
  
  F:\dev\scriptjava -versionjava version 
  "1.3.0"Java(TM) 2 Runtime Environment, Standard Edition (build 
  1.3.0-C)Java HotSpot(TM) Client VM (build 1.3.0-C, mixed 
mode)
  
  
  is there any way i get see the marshalling code 
  generated by orion
  so i could maybe work out what's going 
  on?
  
  if so, can the marshalling code generated by 
  orion be modified 
  for debugging purposes?
  
  thanks,
  greg
  
  
- Original Message - 
From: 
Juan 
Lorandi (Chile) 
To: Orion-Interest 
Sent: Thursday, January 18, 2001 2:32 
AM
Subject: RE: serialisation 
problem?

shooting from the hip again (bad habits die 
hard)...

String's limit was 64K until JDK 1.3... which JDK 
are you using?


  -Original Message-From: Greg Matthews 
  [mailto:[EMAIL PROTECTED]]Sent: Miércoles, 17 de Enero de 
  2001 1:27To: Orion-InterestSubject: serialisation 
  problem?
  dear all,
  
  we're got a strange problem whereby a large 
  (141K) String return value from a stateless session bean is turning up at 
  the client as an empty string.
  
  this happens whether we call the ejb method 
  from a jsp or a java client external to orion.
  
  it has also happened in other ejb methods 
  during testing where a master-detail type record suddenly stopped being 
  retrievable when the total size of all data in xml format asa String 
  exceeded a certain size.
  
  is there an upper limit on the size of 
  variables that can be serialised?
  
  does anyone have any ideas on why this might 
  be happening?
  
  thanks,
  greg


Error Reading application-client descriptor...

2001-01-18 Thread Globetrot Communications

I am running Orion on Linux.
The 'Product' application runs o.k when I use the
hypersonic database. But I get the following error
when trying to use postgreSQL:

"Error reading application-client descriptor. Error
looking up EJBHome. Disconnected.. Unknown command 7"

The data-source.xml looks as follows:

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

data-sources
!--
An example/default DataSource that uses an ordinary
JDBC-driver (in this case hsql) to create the
connections. 
This tag creates all the needed kinds
of data-sources, transactional, pooled and EJB-aware
sources.
The source generally used in application code is the
"EJB"
one - it provides transactional safety and
connection pooling.
--
!--
data-source
class="com.evermind.sql.DriverManagerDataSource"
name="Hypersonic"
location="jdbc/HypersonicCoreDS"
xa-location="jdbc/xa/HypersonicXADS"
ejb-location="jdbc/HypersonicDS"
connection-driver="org.hsql.jdbcDriver"
username="sa"
password=""
url="jdbc:HypersonicSQL:./database/defaultdb"
inactivity-timeout="30"
/
--
data-source
class="com.evermind.sql.ConnectionDataSource"
name="postgresql"
location="jdbc/postgreDS"
xa-location="jdbc/xa/postgreXADS"
ejb-location="jdbc/postgreEJBDS"
connection-driver="org.postgresql.Driver"
username="postgres"
password=""
url="jdbc:postgre:./database/postgredb"
inactivity-timeout="30"
schema="database-schemas/postgresql.xml"
/
/data-sources

Also, I included "postgres" as a user in the
"administrators" group in principals.xml

Also, I include:
default-data-source="jdbc/postgreEJBDS" in
orion-application.xml under deployment-directory.

Is there anything else I need to do? Do I need to do
any clean-up after I run the application using
hypersonic and before re-running it with postgres?

Thanks for your help

Satish Gupta

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/




RE: JSP/Bean not reloading after re-deploy

2001-01-18 Thread Jeff Schnitzer

Just a thought, but have you checked the system clocks on the various
machines involved?  Maybe the timestamps are fouled.

"reloading" of JSPs works fine for me; my deployment process just copies
the new .ear over the old one.

Jeff

-Original Message-
From: Ozzie Gurkan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 7:08 AM
To: Orion-Interest
Subject: JSP/Bean not reloading after re-deploy


I have searched through all of orion-interest list and still 
have not found
a solution that works for me. I am talking about the "reload" 
problem with
changing of JSPs and its bean classes withouth restarting the server. I
understand that the server should never be restarted, but I 
can't seem to
get anything working without actually doing just that. I have 
touched the
web.xml file before it is ear'd up to be deployed, but that 
didn't work.
Does anyone have a solution to this problem? I must be missing 
something
very simple.

Thanks,
Ozzie Gurkan






RE: Error Reading application-client descriptor...

2001-01-18 Thread Mike Cannon-Brookes

The user in principals.xml is a furfy.

Looks like your URL is wrong:

   url="jdbc:postgre:./database/postgredb"

should be

   url="jdbc:postgres:..."

where ... is a combination of hostname, port and database name. See the
postgres jdbc docs for more description.

-mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Globetrot
 Communications
 Sent: Friday, January 19, 2001 10:34 AM
 To: Orion-Interest
 Subject: Error Reading application-client descriptor...


 I am running Orion on Linux.
 The 'Product' application runs o.k when I use the
 hypersonic database. But I get the following error
 when trying to use postgreSQL:

 "Error reading application-client descriptor. Error
 looking up EJBHome. Disconnected.. Unknown command 7"

 The data-source.xml looks as follows:

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

 data-sources
   !--
   An example/default DataSource that uses an ordinary
   JDBC-driver (in this case hsql) to create the
 connections.
   This tag creates all the needed kinds
   of data-sources, transactional, pooled and EJB-aware
 sources.
   The source generally used in application code is the
 "EJB"
   one - it provides transactional safety and
 connection pooling.
   --
   !--
   data-source
   class="com.evermind.sql.DriverManagerDataSource"
   name="Hypersonic"
   location="jdbc/HypersonicCoreDS"
   xa-location="jdbc/xa/HypersonicXADS"
   ejb-location="jdbc/HypersonicDS"
   connection-driver="org.hsql.jdbcDriver"
   username="sa"
   password=""
   url="jdbc:HypersonicSQL:./database/defaultdb"
   inactivity-timeout="30"
   /
   --
   data-source
   class="com.evermind.sql.ConnectionDataSource"
   name="postgresql"
   location="jdbc/postgreDS"
   xa-location="jdbc/xa/postgreXADS"
   ejb-location="jdbc/postgreEJBDS"
   connection-driver="org.postgresql.Driver"
   username="postgres"
   password=""
   url="jdbc:postgre:./database/postgredb"
   inactivity-timeout="30"
   schema="database-schemas/postgresql.xml"
   /
 /data-sources

 Also, I included "postgres" as a user in the
 "administrators" group in principals.xml

 Also, I include:
 default-data-source="jdbc/postgreEJBDS" in
 orion-application.xml under deployment-directory.

 Is there anything else I need to do? Do I need to do
 any clean-up after I run the application using
 hypersonic and before re-running it with postgres?

 Thanks for your help

 Satish Gupta

 __
 Do You Yahoo!?
 Get email at your own domain with Yahoo! Mail.
 http://personal.mail.yahoo.com/







RE: JMS

2001-01-18 Thread Mike Cannon-Brookes

There is an article on Orion Support about integrating OpenJMS with Orion,
this may help you - http://www.orionsupport.com/articles/openjms.html

If you do succeed, but need changes, we'd love to hear what you needed to do
to get SwiftMQ working with Orion - I'll alter the article on the site.

Cheers,
Mike

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Montebove
 Luciano
 Sent: Friday, January 19, 2001 3:31 AM
 To: Orion-Interest
 Cc: [EMAIL PROTECTED]
 Subject: R: JMS


 I have just started a study for integrating swiftMQ and sonicMQ
 with Orion.
 Up to now I tried only to send messages from servlet/JSP but both the
 products provide some form of bridging with other JMS servers, so this way
 could be possible to use Message Driven EJB.
 More information in a few weeks.

 Luciano


 -Messaggio originale-
 Da: Mike Courtney [mailto:[EMAIL PROTECTED]]
 Inviato: mercoled 17 gennaio 2001 18.27
 A: Orion-Interest
 Oggetto: RE: JMS


 Speaking of which, has anyone out there used any of these
 messaging systems
 with Orion?

 I am interested in using a solid JMS implementation with a
 backing database
 for distributed replication/high availability. Apparently Orion only
 provides file based persistence for JMS queues.

 Any suggestions/thoughts?

 thanks,
 Mike Courtney


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B.
 Ottinger
 Sent: Wednesday, January 17, 2001 5:52 AM
 To: Orion-Interest
 Subject: Re: JMS


 On Wed, 17 Jan 2001 [EMAIL PROTECTED] wrote:
  Is that true that the only message queue servers in existence
  which support JMS are IBM's MQ Series and Forte's
  Java Message Queue? Any other vendors?

 Um, no. Far from it.

 Some JMS systems, including the ones you mentioned:

 MQSeries (http://www-4.ibm.com/software/ts/mqseries/)
 SonicMQ (http://www.progress.com/sonicmq/)
 FioranoMQ (http://www.fiorano.com/)
 BEA's message queue (http://www.bea.com/)
 OpenJMS (http://www.openjms.org/)
 SwiftMQ (http://www.swiftmq.com/)
 Sun's JMS (http://http://www.sun.com/forte/jmq/index.html)
 Softwired iBus (http://www.softwired-inc.com/)

 I'm sure there are more.

 ---
 Joseph B. Ottinger   [EMAIL PROTECTED]
 http://epesh.com/ IT Consultant










Writing user managers

2001-01-18 Thread Nick Newman

Hi,

I seem to recall someone within the last few weeks saying that they 
implemented the UserManager and other associated interfaces in just a few 
days.  Would whoever it was care to drop me a line please.

Thanks
Nick





servlet-mapping for jsp-file

2001-01-18 Thread Stan Ng

I'm not sure if there was any new information regarding the servlet mapping
and jsp-files for web applications.  I checked the archive... there was a
little bit of info regarding the topic, but it was rather dated.  For some
reason, the jsp mappings in my webapp don't seem to work for Orion 1.4.4.  I
deployed it on the reference implementation and it *seems* to be correct.
afaik, other than specifying my web-app in default-web-site.xml, I don't
have to do any other Orion-specific configuration, right?


Snippets from my config files...

!-- web.xml --
servlet
servlet-nametest/servlet-name
jsp-filetest1.jsp/jsp-file
load-on-start0/load-on-startup
/servlet
servlet-mapping
servlet-nametest/servlet-name
url-patternmytest/url-pattern
/servlet-mapping






servlet-mapping for jsp-file [clarification]

2001-01-18 Thread Stan Ng


Just to clarify, I was mapping a specific filename to the jsp.  I changed
the url-pattern to /mytest and it worked, so I guess the question is one
regarding the ambiguity of the servlet specifications.  In what instances
would case 3: "All other strings are used as exact matches only" apply?





OrionCMTConnection not closed, check your code!

2001-01-18 Thread Guilherme Ceschiatti

What does this message mean?

OrionCMTConnection not closed, check your code!
LogicalDriverManagerXAConnection not closed, check your code!
(Use -Djdbc.connection.debug=true to find out where the leaked connection was 
created)


[]s
Guilherme Ceschiatti




Re: JSP/Bean not reloading after re-deploy

2001-01-18 Thread Dmitry Chagin


- Original Message -
From: "Jeff Schnitzer" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, January 19, 2001 7:44 AM
Subject: RE: JSP/Bean not reloading after re-deploy


 Just a thought, but have you checked the system clocks on the
various
 machines involved?  Maybe the timestamps are fouled.

 "reloading" of JSPs works fine for me; my deployment process just
copies
 the new .ear over the old one.

 Jeff

in my case deployer copies new.ear as _new.ear and create _new/
application
directory. :(


/chd
cc esrr






Re: Jikes

2001-01-18 Thread anand

hi..
in orion\config\server.xml activate the compiler tag as mentioned below...
.
compiler executable="ur jikes path\jikes\bin\jikes.exe" classpath="ur jdk
path\jre\lib\rt.jar" /

eg.
compiler executable="c:\jikes\jikes\bin\jikes.exe"
classpath="c:\jdk1.3\jre\lib\rt.jar" /

anand
Verchaska
[EMAIL PROTECTED]
**
- Original Message -
From: "Rabi Satter" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, January 19, 2001 12:58 AM
Subject: Jikes


 Has anyone got Jikes to work with Orion? If so how?

 Thanks
 Rabi Satter








RE: Orion and Kawa 5.0

2001-01-18 Thread Chris Bartling

I wonder how all this will turn out now that Allaire is being acquired by
Macromedia.  Hmmm...  Story can be found at...

http://www.techweb.com/wire/story/TWB20010116S0019


-- chris --


  -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, January 18, 2001 12:40 PM
 To:   Orion-Interest
 Subject:  Orion and Kawa 5.0
 
 Further to previous postings about support for Orion in Kawa I enquired
 with Allaire and this is the reply I received from them.
 Sorry if similar information has already been posted to the List by
 somebody else but I am still not getting any messages.
 
 
 Jarek
 
  
 
 
 
 Hi Jarek
 
 It turns out that Orion support was due to be in the product, but couldn't
 be completed in time for the most recent release.  However, the Kawa
 product
 team tells me that a service pack is due out in a couple of weeks time;
 this
 service pack release should have support for Orion.
 
 Sincerely
 
 Andi Hindle
 Sales Engineer Europe
 Allaire Corporation
 
 

 winmail.dat


Best way to redirect root / URL to servlet with parameters

2001-01-18 Thread Johnson, Robert

Is there an easy way with orion to redirect the root URL to a servlet. For
example:

www.mysite.com  = www.mysite.com/c?param=1 (/c is mapped to a servlet)

I could do it with a HTML redirect but I don't want the intermediate page to
show up.  I also thought about just mapping "/" to a servlet that just uses
the redirect() method call.  I was hoping I could just type in a couple of
lines in a xml config file.

Robert Johnson
Software Engineer
SprintPCS




RE: Single Sign On

2001-01-18 Thread Gerald Gutierrez


How does one share HTTP sessions between Orion applications?


At 05:47 PM 1/16/2001 -0300, you wrote:
Just for the sake of shooting from the hip every now and then, why don't you
allow
sessions to be shared among applications? (I mean http sessions) That works
when switching
from http to https...

JP

-Original Message-
From: Nick Newman [mailto:[EMAIL PROTECTED]]
Sent: Martes, 16 de Enero de 2001 14:52
To: Orion-Interest
Subject: RE: Single Sign On


Hi,

We had a similar problem.  The solution we came up with was to use BASIC
authentication for all the relevant web-apps, and to specify the same
realm-name for each web-app.  That way, the browser supplies the required
logins as you switch between web-apps.

Yes, it would be nicer to use FORM based login, but so far as we could tell
(with some help from the orion folk) this does not work with SSO.  They
(orion) indicated that certificate based security was a better fit for SSO,
as I recall.

Nick

At 09:53 AM 1/16/01 +, you wrote:
 Gerald,
 
 Did you ever get any direct replies to this SSO query ?  We are trying to
do
 the same.  Maybe we could work together in some way ?
 
 Kind regards,
 Tony.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Gerald
 Gutierrez
 Sent: 02 December 2000 20:09
 To: Orion-Interest
 Subject: Single Sign On
 
 
 
 Does Orion do any sort of single sign-on for multiple applications deployed
 on the same application server? If so, how can one get this working?