Please Help Me, How to congfig Postgres DataSours on Orion?

2000-12-22 Thread urey



Dear, 
I used Orion 1.3.8, Postgres 6.5,andits JDBC 
Driver jdbc6.5-1.2.jar.
I'm config the Orion DataSours:
 
data-source  
name="Postgres" 
 
class="postgresql.Driver" 
 location="jdbc/javatest" 
 
pooled-location="jdbc/javatest" 
 
xa-location="jdbc/xa/javatest" 
 
ejb-location="jdbc/javatest" 
 
url="jdbc:postgresql://192.168.0.88/javatest" 
 connection-driver="postgresql.Driver" 
 username="postgres" 
 password="" 
 
schema="./database-schemas/postgresql.xml"/
And copy the jdbc6.5-1.2.jar to Orion\Lib.
But When I run Orion it's 
said:
 "Error initializing server: Unknown 
DataSource type: postgresql.Driver"

I don't know how to config Postgres DataSours,
 
and how to write the line Class="" and connection=""?
and 
where can i get more info. of this? 
help me Please.
Thank you!
yoursUrey
 




- Original Message - 
From: "Kays, Jeff" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 8:22 AM
Subject: RE: Database behind entity beans?
 We're using Postgreslql with Linux. Seems to be 
working great, ask again in a  couple of months when we're 
finished with our prototype.   j   
-Original Message-  From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]]  Sent: 
Wednesday, December 20, 2000 4:20 AM  To: Orion-Interest 
 Subject: Database behind entity beans?Hi all, 
I just wonder what options we have for selecting the 
proper RDBMS/OODBMS  to serve as persistent storage for our 
BMPs/CMPs or just for being  accessed via JDBC. Oracle is the 
obvious choice, but might be rather  expensive.  
  I would like to hear some opinion on the databases you're using 
with  Orion.Thanks,   
  Tibor   



RE: Access EJB's from a standalone client.

2000-12-22 Thread Martin Andersson

Thanks for your help. Even though I followed you instructions this error
ocurred.

java.lang.SecurityException: Not allowed to look up java:comp/env/ej
b/CalendarReminderHome, check the namespace-access tag setting in
orion-applicat
ion.xml for details

I thought that you didn't need any settings in the XML files when you used
this syntax?

Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
nitialContextFactory");
prop.setProperty("java.naming.provider.url","ormi://foo.com/appName");
prop.setProperty("java.naming.security.principal","admin");
prop.setProperty("java.naming.security.credentials","123");
Context con = new InitialContext(prop);

Any ideas?

/M Andersson

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Ekholm
Sent: 21 December 2000 17:21
To: Orion-Interest
Subject: RE: Access EJB's from a standalone client.


In order to connect a stand-alone client to my EJBs I place a
jndi.properties file next to the .class files of the client like this
--
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=ormi://hostNameOfOrionServer/yourAppName
java.naming.security.principal=admin
java.naming.security.credentials=passwordOfAdmin
--

By using the RMIInitialContextFactory I don't have to deal with creating an
extra META-INF directory + XML file for the client. If I want to leave the
jndi.properties file out completely, I can put the content inside a
Properties object and pass it as parameter to new InitialContext().

Then I copy these jar files from the orion directory to the client computer:
ejb.jar, jndi.jar, mail.jar, orion.jar, xerces.jar (2.86 MB in total)

I finally run the client and pass the path of the following jar files as
classpath:
orion.jar, ejb.jar, jndi.jar
I also add the path to the ejb.jar file containing the home- and remote
interfaces of my EJB application.
Orion will automatically and instantly create stub code from the interfaces
when I run the application.

/David





Re: Comunicating between EJBs and Application Client

2000-12-22 Thread Daniel Degtyarev

Hi!

You need to specify reference to EJB, that you using from another EJB in
ejb-jar.xml:
Something like this:

  session
   display-nameMySession1/display-name
   ejb-nameMySession1/ejb-name
   homeMySession1Home/home
   remoteMySession1/remote
   ejb-classMySession1EJB/ejb-class
...!-- may be reference to datasource --...
   ejb-ref
ejb-ref-nameejb/MySession2/ejb-ref-name
ejb-ref-typeSession/ejb-ref-type
homeMySession2Home/home
remoteMySession2/remote
ejb-linkMySession2/ejb-link
   /ejb-ref
  /session

  session
   display-nameMySession2/display-name
   ejb-nameMySession2/ejb-name
   homeMySession2Home/home
   remoteMySession2/remote
   ejb-classMySession2EJB/ejb-class
...!-- may be reference to datasource --...
  /session

In code of MySession1 you can look up "java:comp/env/MySession2" and obtain
remote-interface of MySession2 EJB.
I hope you understand me.

Daniel Degtyarev.

- Original Message -
From: "Christopher Bartling" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 6:11 PM
Subject: Comunicating between EJBs and Application Client


 I've have what I hope is a really easy question to answer.  I have a
number
 of Session beans deployed to Orion (1.4.4 level), and everything works
great
 when communicating from an application client (JSPs and servlets running
 Apache Tomcat) to the Orion server.  Now I want to add some EJB to EJB
 communication, with one EJB obtaining the home and remote interfaces of
 another EJB and executing methods on that remote interface.

 When I attempt to lookup my bean using the JNDI context, I get an
exception
 being thrown that says that it can't find the JNDI lookup name in the
 Application Client.  I assume that Orion is not finding the
 application_client.xml file within its own environment.  What are others
 doing to rectify this situation?  I assume that EJB to EJB communication
is
 **very common**, as most people are using Session bean fascades around
their
 Entity beans.  An example of this sort of functionality and the steps
needed
 to configure it should be available through Orion or orionsupport.com, but
I
 could not find anything.

 Thanks in advance.






Re: What is the latest and greates Orion Server?

2000-12-22 Thread Mikko Kurki-Suonio

On Fri, 22 Dec 2000, Christian Sell wrote:

 java -jar autoupdate.jar. Dont know about stable

My 2 cents: I switched BACK to 1.4.0 because 1.4.4 started giving spurious
errors and crashing.

//Mikko






Re: Comunicating between EJBs and Application Client

2000-12-22 Thread Daniel Degtyarev

I'm sorry. I want to correct my previous message.

In code of MySession1 you can look up "java:comp/env/ejb/MySession2" and
obtain
remote-interface of MySession2 EJB.

- Original Message -
From: "Daniel Degtyarev" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, December 22, 2000 11:33 AM
Subject: Re: Comunicating between EJBs and Application Client


 Hi!

 You need to specify reference to EJB, that you using from another EJB in
 ejb-jar.xml:
 Something like this:

   session
display-nameMySession1/display-name
ejb-nameMySession1/ejb-name
homeMySession1Home/home
remoteMySession1/remote
ejb-classMySession1EJB/ejb-class
 ...!-- may be reference to datasource --...
ejb-ref
 ejb-ref-nameejb/MySession2/ejb-ref-name
 ejb-ref-typeSession/ejb-ref-type
 homeMySession2Home/home
 remoteMySession2/remote
 ejb-linkMySession2/ejb-link
/ejb-ref
   /session

   session
display-nameMySession2/display-name
ejb-nameMySession2/ejb-name
homeMySession2Home/home
remoteMySession2/remote
ejb-classMySession2EJB/ejb-class
 ...!-- may be reference to datasource --...
   /session

 In code of MySession1 you can look up "java:comp/env/MySession2" and
obtain
 remote-interface of MySession2 EJB.
 I hope you understand me.

 Daniel Degtyarev.






CMP-finder with another entity as argument?

2000-12-22 Thread Konstantin Polyzois

Hi all!
I am trying to create a finder that takes an other entity as an argument.
Something like:

public Collection findByProject(Project project) throws RemoteException,
FinderException;

Now how do I modify the finder-method query="???" partial="false"  to
accomplish this?
My impression is that it is not possible. 
Ok so what do I have to do? Write a finder like this instead?

public Collection findByProject(long projID) throws RemoteException,
FinderException;

and create a finder-method like this:

select ... ... from project,person where project.project_id=$1 and ...

Gahhh! Ugly! I now have to keep track of table names and data types! What is
Container managed persistence anyways? Persistence yes! but finders... No!

Is there any way to do this the nice way? Pleases say yes! Anybody?

/Korre




RE: OrionSupport

2000-12-22 Thread Joseph B. Ottinger

Chris, we're willing to accept nearly anything relevant, so whatever niche
you can fill is fine by me. Thank you!

On Thu, 21 Dec 2000, Chris Bartling wrote:

 Joseph,
 
 I would be interested in contributing to orionsupport.  I've been using
 Orion as more of a learning tool (I have experiences with Sybase EAServer
 and I'm just starting a gig using iPlanet's App Server).  One thing that I'd
 like to see with orionsupport is conversations/reviews/etc. which are
 recorded, much in the same way as Slashdot and theserverside.com.
 
 Anyhoo, let me know how I can get involved.  I would like to write up some
 stuff on the various deployment descriptors involved in using J2EE and Orion
 specifically and using Apache Ant and EJBDoclet to construct and build EJBs
 for Orion.
 
 -- chris --
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Joseph B.
 Ottinger
 Sent: Thursday, December 21, 2000 7:17 AM
 To: Orion-Interest
 Subject: OrionSupport
 
 
 A week or so ago, I posted a new document to OrionSupport:
 
 http://www.orionsupport.com/articles/vision.html
 
 In this, titled "In the Future," I try to address what I see OrionSupport
 being, and what facilities I'd like it to provide. This is a community
 effort; in addition to lack of knowledge, I've a severe lack of time, but
 not will. However, this would be a LOT easier to see happen if I had
 specific input and contributions from you, the Orion community. If you've
 expertise in one of the areas mentioned, please let me know. I need code
 as well as contributions; code that doubles as a contribution to the site
 content is best, since that's more or less the modus operandi I see for
 OrionSupport (i.e., "Here's how you do X -- and we know it works, because
 OrionSupport uses it in exactly this way.")
 
 Please let me know what you'd like to see, as well.
 
 ---
 Joseph B. Ottinger   [EMAIL PROTECTED]
 http://epesh.com/ IT Consultant
 
 
 
 

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





Re: Please Help Me, How to congfig Postgres DataSours on Orion?

2000-12-22 Thread Santosh Deshpande

There is a problem with the jdbc postgresql documentation. Change your
class name from postgresql.Driver to org.postgresql.Driver

regards
santosh s :)

urey wrote:

 Dear,
 
   I used Orion 1.3.8, Postgres 6.5,and its JDBC Driver jdbc6.5-1.2.jar.
 
 I'm config the Orion DataSours:
 
 Ÿß Ÿålt;data-source
   Ÿß  Ÿß   name="Postgres"
   Ÿß   Ÿß   class="postgresql.Driver"
   Ÿß   Ÿß  location="jdbc/javatest"
   Ÿß   Ÿß   pooled-location="jdbc/javatest"
   Ÿß   Ÿß   xa-location="jdbc/xa/javatest"
   Ÿß   Ÿß   ejb-location="jdbc/javatest"
   Ÿß   Ÿß   url="jdbc:postgresql://192.168.0.88/javatest"
   Ÿß   Ÿß  connection-driver="postgresql.Driver"
   Ÿß   Ÿß  username="postgres"
   Ÿß   Ÿß  password=""
   Ÿß   Ÿß   schema="./database-schemas/postgresql.xml"
 /Ÿû/font
 
 And copy the jdbc6.5-1.2.jar to Orion\Lib.
 
 But When I run Orion it's said:
 
   Ÿß"Error initializing server: Unknown DataSource type:
 postgresql.Driver"
 
 Ÿû/div
 I don't know how to config Postgres DataSours,
 
     and how to write the lineŸßClass="" and connection=""?
 
 and where can i get more info. of this?Ÿß
 
 help me Please.
 
 Thank you!
 
 yoursUrey
 
   Ÿß
 
 Ÿû/font
 
 Ÿû/div
 Ÿû/div
 - Original Message -
 From: "Kays, Jeff" 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 To: "Orion-Interest" 
 mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED]
 
 Sent: Thursday, December 21, 2000 8:22 AM
 
 Subject: RE: Database behind entity beans?
 
 
  We're using Postgreslql with Linux. Seems to be working great, ask
 again in
  a
  couple of months when we're finished with our prototype.
 
  Ÿßj
 
   -Original Message-
   From: Hegyi Tibor [
 mailto:SMTP:[EMAIL PROTECTED]SMTP:[EMAIL PROTECTED]
 mailto:SMTP:[EMAIL PROTECTED]]
   Sent: Wednesday, December 20, 2000 4:20 AM
   To: Orion-Interest
   Subject: Database behind entity beans?
  
   Hi all,
  
   I just wonder what options we have for selecting the proper
 RDBMS/OODBMS
   to serve as persistent storage for our BMPs/CMPs or just for being
   accessed via JDBC. Oracle is the obvious choice, but might be rather
   expensive.
  
   I would like to hear some opinion on the databases you're using with
   Orion.
  
   Thanks,
  
   Tibor
  
  Ÿß
  
 
 





RE: Please Help Me, How to congfig Postgres DataSours on Orion?

2000-12-22 Thread Mike Cannon-Brookes



Easy, 
the driver class is org.postgresql.Driver - fix it and you're 
away.

Mike

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]On Behalf Of 
  ureySent: Wednesday, November 22, 2000 7:50 PMTo: 
  Orion-InterestCc: Orion-InterestSubject: Please Help Me, 
  How to congfig Postgres DataSours on Orion? 
  Dear, 
  I used Orion 1.3.8, Postgres 6.5,andits 
  JDBC Driver jdbc6.5-1.2.jar.
  I'm config the Orion DataSours:
   
  data-source  
  name="Postgres" 
   
  class="postgresql.Driver" 
   location="jdbc/javatest" 
   
  pooled-location="jdbc/javatest" 
   
  xa-location="jdbc/xa/javatest" 
   
  ejb-location="jdbc/javatest" 
   
  url="jdbc:postgresql://192.168.0.88/javatest" 
   connection-driver="postgresql.Driver" 
   username="postgres" 
   password="" 
   
  schema="./database-schemas/postgresql.xml"/
  And copy the jdbc6.5-1.2.jar to Orion\Lib.
  But When I run Orion it's 
  said:
   "Error initializing server: Unknown 
  DataSource type: postgresql.Driver"
  
  I don't know how to config Postgres DataSours,
   
  and how to write the line Class="" and connection=""?
  and 
  where can i get more info. of this? 
  help me Please.
  Thank you!
  yoursUrey
   
  
  
  
  
  - Original Message - 
  From: "Kays, Jeff" [EMAIL PROTECTED]
  To: "Orion-Interest" [EMAIL PROTECTED]
  Sent: Thursday, December 21, 2000 8:22 AM
  Subject: RE: Database behind entity 
beans?
   We're using Postgreslql with Linux. Seems to 
  be working great, ask again in a  couple of months when we're 
  finished with our prototype.   j   
  -Original Message-  From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]]  Sent: 
  Wednesday, December 20, 2000 4:20 AM  To: Orion-Interest 
   Subject: Database behind entity beans?Hi all, 
  I just wonder what options we have for selecting 
  the proper RDBMS/OODBMS  to serve as persistent storage for our 
  BMPs/CMPs or just for being  accessed via JDBC. Oracle is the 
  obvious choice, but might be rather  expensive.  
I would like to hear some opinion on the databases you're using 
  with  Orion.Thanks,   
Tibor   
  


RE: Orion, JDBC-ODBC bridge, and SQL Server

2000-12-22 Thread Jose Fresnadillo

Here is may data-source.xml. I hope this can help you.

?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
name="MSSQLServer"
location="jdbc/MSSQLCoreDS"
xa-location="jdbc/xa/MSSQLXADS"
ejb-location="jdbc/MSSQLDS"
connection-driver="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:sqlatogo"
username=""
password=""
inactivity-timeout="30"
class="com.evermind.sql.DriverManagerDataSource"
/
 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-sources


- Original Message -
From: Michael S. Kelly [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, December 21, 2000 10:21 PM
Subject: Orion, JDBC-ODBC bridge, and SQL Server


 Anyone out there that is using the the JDBC-ODBC bridge that would share
 their data-sources.xml file with me?  I plan on using SQL Server 2000.
 Anything special I should know?

 -=michael=-

 ==
  Michael S. Kelly      _
  Axian, Inc. // |_  __(_) ___  _ __
  4800 SW Griffith Dr., Ste. 202 file://| |\\/ /| |/ _ \| '_ \
  Beaverton, OR  97005 USA _//_| | / / | | |_| | | | |
  Voice: (503)644-6106 x122   ((   //  |_|/_/\\|_|\_/|_|_| |_|
  Fax:   (503)643-8425 ``-''  ``-''
  http://www2.axian.com   Software Consulting and Training
  mailto:[EMAIL PROTECTED]
 ==




?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
name="MSSQLServer"
location="jdbc/MSSQLCoreDS"
xa-location="jdbc/xa/MSSQLXADS"
ejb-location="jdbc/MSSQLDS"
connection-driver="sun.jdbc.odbc.JdbcOdbcDriver"
url="jdbc:odbc:sqlatogo"
username=""
password=""
inactivity-timeout="30"
schema="d:\orion\config\database-schemas\ms-sql.xml"
class="com.evermind.sql.DriverManagerDataSource"
/	
	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-sources



Problems with Orion load balancer.

2000-12-22 Thread Tony J Brooks


Dear All,

I'm having problems with load-balancing a single island of two orion
appservers.  I have followed the instructions from the clustering 'howto'
document, and I've made changes to the relevant XML files.  Note, I made the
changes to the default web app files, rather than to the XML files specific
to my app.  From the documentation I expect the changes to therefore impact
*all* apps, and that I should experience the desired clustering and load
balancing for my app.

Using the Microsoft Web App Stress Tool, running 100 threads which
continually request a single page from the clustered app via the load
balancer, things seem to work fine for the first minute or so, despite the
fact that the balancer 'drops' servers periodically but then manages to
re-discover them.  The performance meter for the servers in the app cluster
show that both machines are working at close to full capacity during this
brief period.

At some point after that first minute or so, the load balancer will
typically drop one of the servers, re-discover it, add it back into the
island, but that server will thereafter be unloaded - the performance meter
registers 0% load.  Note that this is despite the fact that the other
server - still alive, is working flat out at 100%.

Has anyone experienced this before ?  I can't find anything in the archive.
I'm especially perplexed since a lot of other people claim to have
load-balancing and clustering working fine - after working from the same
'howto' as me.

I would really appreciate help on this.

Merry Christmas everyone.

Tony.

---
 Dr Tony J Brooks
 Apama (UK) Ltd
 17 Millers Yard
 Cambridge, UK

 Mobile : 07748 767 110
 eMail  : [EMAIL PROTECTED]





public boolean isModified()

2000-12-22 Thread Konstantin Polyzois

Hello everybody!

I am using Orion 1.4.4 and it seems that the method "public boolean
isModified()" (used to limit writes to the database) is not getting called.
Bug?

/korre




More info about isModified:

http://www.orionserver.com/faq/




Re: Please Help Me, How to congfig Postgres DataSours on Orion?

2000-12-22 Thread David Smith


Not quite right, the class line is wrong - this should be the driver manager
class, not the driver class
i.e.
class="com.evermind.sql.DriverManagerDataSource"
Whether the driver is postgresql.Driver or org.postgresql.Driver depends
on the driver version.


Mike Cannon-Brookes wrote:

Easy,
the driver class is org.postgresql.Driver - fix it and you're away.Mike

-Original
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of urey
Sent: Wednesday, November
22, 2000 7:50 PM
To: Orion-Interest
Cc: Orion-Interest
Subject: Please Help Me, How
to congfig Postgres DataSours on Orion?
Dear, I used Orion 1.3.8, Postgres 6.5,and its JDBC
Driver jdbc6.5-1.2.jar.I'm config the Orion DataSours:
data-source

name="Postgres"

class="postgresql.Driver"

location="jdbc/javatest"

pooled-location="jdbc/javatest"

xa-location="jdbc/xa/javatest"

ejb-location="jdbc/javatest"

url="jdbc:postgresql://192.168.0.88/javatest"
 
connection-driver="postgresql.Driver"

username="postgres"

password=""

schema="./database-schemas/postgresql.xml"
 />And copy
the jdbc6.5-1.2.jar to Orion\Lib.But When I run Orion it's said:
"Error initializing server: Unknown DataSource type: postgresql.Driver"
I don't know how to config Postgres DataSours,
and how to write the line Class="" and connection=""?
and where can i get more info. of this?help me Please.Thank you!yoursUrey
- Original Message -From: "Kays, Jeff" [EMAIL PROTECTED]>To:
"Orion-Interest" [EMAIL PROTECTED]>Sent:
Thursday, December 21, 2000 8:22 AMSubject: RE: Database behind entity
beans? > We're using Postgreslql with Linux. Seems
to be working great, ask again in
> a
> couple of months when we're finished with our prototype.
>
> j
>
> > -Original Message-
> > From: Hegyi Tibor [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 20, 2000 4:20 AM
> > To: Orion-Interest
> > Subject: Database behind entity beans?
> >
> > Hi all,
> >
> > I just wonder what options we have for selecting
the proper RDBMS/OODBMS
> > to serve as persistent storage for our BMPs/CMPs
or just for being
> > accessed via JDBC. Oracle is the obvious choice,
but might be rather
> > expensive.
> >
> > I would like to hear some opinion on the databases
you're using with
> > Orion.
> >
> > Thanks,
> >
> > Tibor
> >
> >
> >
>


--
David Smith

Software Development Manager
e-Net Software Ltd
[EMAIL PROTECTED]



SV: Access EJB's from a standalone client.

2000-12-22 Thread David Ekholm


I'm sorry I forget to tell you that you also have to add namespace access in
the application-deployments/yourAppName/orion-application.xml file too
(i.e on the server side only). Like this (in my case)

namespace-access
read-access
namespace-resource root=""
security-role-mapping
name="lt;jndi-user-rolegt;"
group name="administrators" /
group name="users" /
/security-role-mapping
/namespace-resource
/read-access
write-access
namespace-resource root=""
security-role-mapping
name="lt;jndi-user-rolegt;"
group name="administrators" /
group name="users" /
/security-role-mapping
/namespace-resource
/write-access
/namespace-access

Also in $ORION/config/principals.xml I have set up normal and admin users
and their passwords. It is this information that is put into the
jndi.properties file on the client side I referred to in my previous post.
/David


-Ursprungligt meddelande-
Från: Martin Andersson [mailto:[EMAIL PROTECTED]]
Skickat: den 22 december 2000 10:17
Till: Orion-Interest
Ämne: RE: Access EJB's from a standalone client.


Thanks for your help. Even though I followed you instructions this error
ocurred.

java.lang.SecurityException: Not allowed to look up java:comp/env/ej
b/CalendarReminderHome, check the namespace-access tag setting in
orion-applicat
ion.xml for details

I thought that you didn't need any settings in the XML files when you used
this syntax?

Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial","com.evermind.server.rmi.RMII
nitialContextFactory");
prop.setProperty("java.naming.provider.url","ormi://foo.com/appName");
prop.setProperty("java.naming.security.principal","admin");
prop.setProperty("java.naming.security.credentials","123");
Context con = new InitialContext(prop);

Any ideas?

/M Andersson

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of David Ekholm
Sent: 21 December 2000 17:21
To: Orion-Interest
Subject: RE: Access EJB's from a standalone client.


In order to connect a stand-alone client to my EJBs I place a
jndi.properties file next to the .class files of the client like this
--
java.naming.factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
java.naming.provider.url=ormi://hostNameOfOrionServer/yourAppName
java.naming.security.principal=admin
java.naming.security.credentials=passwordOfAdmin
--

By using the RMIInitialContextFactory I don't have to deal with creating an
extra META-INF directory + XML file for the client. If I want to leave the
jndi.properties file out completely, I can put the content inside a
Properties object and pass it as parameter to new InitialContext().

Then I copy these jar files from the orion directory to the client computer:
ejb.jar, jndi.jar, mail.jar, orion.jar, xerces.jar (2.86 MB in total)

I finally run the client and pass the path of the following jar files as
classpath:
orion.jar, ejb.jar, jndi.jar
I also add the path to the ejb.jar file containing the home- and remote
interfaces of my EJB application.
Orion will automatically and instantly create stub code from the interfaces
when I run the application.

/David





Re: Re: javax.naming.NameNotFoundException: agency not found

2000-12-22 Thread revivalatgt revivalatgt

I tried this as well, this doesn't work either...how can this work one day 
and not the next?  Maybe this is a jndi issue...

Robert

Does anybody know what could cause a javax.naming.NameNotFoundException:
my
bean name not found?  I think my .xml files are fine, and I think this
used
to work!

We've got the same problem - it seems Orion 1.4.4 can't decide whether to
make EJB home interfaces available at "java:comp/env/ejb-name" or just
"ejb-name". We've replaced all our lookup code with something like this:

Object ref = null;
try{
ref = jndiContext.lookup("java:comp/env/ejb/WhateverEJB");
} catch(NamingException ne) {
System.err.println("Failed to find WhateverEJB attempting again
using non-standard mapping");
ref = jndiContext.lookup("WhateverEJB");
}
WhateverHome home = (WhateverHome)PortableRemoteObject.narrow(ref,
WhateverHome.class);

This at least lets the app function. Sometimes the first lookup works,
sometimes not. If and when we see a pattern that implies sort sort of reason
for this strange behaviour, I'll report it to the list.

P. Pontbriand
Canlink Interactive Technologies Inc.




_
Get your FREE download of MSN Explorer at http://explorer.msn.com





RE: public boolean isModified()

2000-12-22 Thread Konstantin Polyzois

Actually not! If u follow the link i specified u will find it.

More info about isModified:

http://www.orionserver.com/faq/

Search for it on the displayed page.

/korre

PS
Weblogic does not need isModified(). U specify any method name (public
boolean isX()) and then point it out in your deployment descriptor:

is-modified-method-nameisX/is-modified-method-name


-Original Message-
From: Stanislas Truffaut [mailto:[EMAIL PROTECTED]]
Sent: den 22 december 2000 17:37
To: [EMAIL PROTECTED]; Orion-Interest
Subject: public boolean isModified()


I think your isModified() is a specific WebLogic method




From: Konstantin Polyzois
Subject: public boolean isModified()
Date: Fri, 22 Dec 2000 05:56:46 -0800




Hello everybody!

I am using Orion 1.4.4 and it seems that the method "public boolean
isModified()" (used to limit writes to the database) is not getting called.
Bug?

/korre




Re: What is the latest and greates Orion Server?

2000-12-22 Thread Lawrence8080

Don't update to 1.4.4 if you are using the DataSourceUserManager and want to
store your groups/roles in a database.  I spent days trying to get it to
work before I read that 1.4.4 broke the DataSourceUserManager piece.  The
DataSourceUserManager works in 1.4.4, but only if you are storing your group
permissions in principals.xml

I deleted 1.4.4 and then put 1.3.8 back on and everything instantly worked.
Orion suddenly started doing group authentication against the database
instead of principals.xml


- Original Message -
From: "Mikko Kurki-Suonio" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, December 22, 2000 1:46 AM
Subject: Re: What is the latest and greates Orion Server?


 On Fri, 22 Dec 2000, Christian Sell wrote:

  java -jar autoupdate.jar. Dont know about stable

 My 2 cents: I switched BACK to 1.4.0 because 1.4.4 started giving spurious
 errors and crashing.

 //Mikko








Stress orion = servlet engine's LOOKUP hungs arround 200 users !

2000-12-22 Thread Stanislas Truffaut


A few days ago we've post a question about "servlet engine hung arround 200
users".

We have investigate. In fact the servlet engine (in a separate VM from the
ejb server, see config below) is waiting about many simultaneous
multi-threaded call to InitialContext.lookup(on session bean) when more than
200 simultaneous users are connected !

I precise that each threads manipulate a different InitialContext instance
(so don't need synchronize...). And jprobe threadanalyser doesn't detect any
deadlock on the webServer nor on the ejbServer...

The servlet engine is hung in 60 to 150 simultaneous lookup() that never
return.

The problem appear when the web server do remote rmi call for all ejb (see
config below).

== Is anyone have already seen this kind of problem in lookup ? What's
wrong on the rmi port or rmi registry ??

thank's for any help,
Stan.


PS:
 1. We stress our appli with WebLoad (throw http request from 4
different client host), on NT with following config:
  - WebServer: orion1.3.8+jdk1.3 on a PIII 700MHz - 512 Mo RAM
 and all ejb call are remote call to following ejb server.
 with orion-application.xml:
orion-application 
ejb-module remote="true"  / // for all ejb-module
  
/orion-application
   and rmi.xml:
rmi-server
server host="EjbServer" port="23791" .../
  
/rmi-server
  - EjbServer: orion1.3.8+jdk1.3 on a PIII 500MHz - 256 Mo RAM
   with rmi.xml:
rmi-server port="23791"
  
/rmi-server
  - DataBase: oracle8i ...
  2. if we stress the application without remote call for the ejb's
 everything is OK for more than 500 simultaneous users !!
  - Web+EjbServer: orion1.3.8+jdk1.3 on a PIII 700MHz - 512 Mo RAM
 with orion-application.xml:
orion-application 
ejb-module remote="false"  / // for all ejb-module
  
/orion-application
   and rmi.xml:
rmi-server
   
/rmi-server
   - DataBase: oracle8i ...





Re: Report Printing Tool??

2000-12-22 Thread Satish S.

Hi Seung
We got our reporting tool from Elixir( www.elixirtech.com ). Looks good and is
inexpensive and royalty free.
Most importantly for us, it can do applet-based reporting.
You might want to check it out - free non-timelimited eval version with crippled
printing support is available...
Regards
Satish


Seung Bang wrote:

 Hello,
 We are now almost finished with EJB, JSP and Servlet stuff.
 All we gotta do is print.
 As you know, web browsers don't print well-formantted reports.
 I was thinking of using retepPDF which was a great library for PDF
 file generation, but it lacked the function of laying out images on report
 forms.
 I wish there were CrystalReport for Java. I checked out the Seagate's site
 and they seemed to support Windows only.
 Any suggestion??  Any Idea? Maybe we can make a nice applet to do that.

 Any other idea??? ;-)  Thanks a million.

 Simon







FreeBSD port for Orion

2000-12-22 Thread Ernst de Haan

Hi to all fellow FreeBSD users on o-i,

At the moment I am working on a port for Orion, and it is in beta stage. If
anyone would like to comment on it, just poke it, and let me know. There's a
tgz available at either of the following locations:

   * http://www.znerd.demon.nl/orion-port.tgz
   * http://www.jollem.com/~ernst/orion-port.tgz

Or you can browse the files from either of these locations:

   * http://www.znerd.demon.nl/orion-port/
   * http://www.jollem.com/~ernst/orion-port/

Any and all comments are welcome! To test this port thorougly, follow the
procedure described at:

   * http://www.freebsd.org/porters-handbook/porting-testing.html

Note that I tested this port with portlint, available from the devel/portlint
port.

Note for non-FreeBSD users: This will enable FreeBSD users to install and
deinstall Orion in a very easy way. To install:

   # cd /usr/ports/java/orion/  make install

And to deinstall:

   # cd /usr/ports/java/orion  make deinstall


Ernst




Re: FreeBSD port for Orion

2000-12-22 Thread Justen Stepka

Are you looking for any help on this port? I've been working on an
internal copy and have yet to show anyone outside of my office.

Justen Stepka

On Sat, 23 Dec 2000, Ernst de Haan wrote:

 Hi to all fellow FreeBSD users on o-i,
 
 At the moment I am working on a port for Orion, and it is in beta stage. If
 anyone would like to comment on it, just poke it, and let me know. There's a
 tgz available at either of the following locations:
 
* http://www.znerd.demon.nl/orion-port.tgz
* http://www.jollem.com/~ernst/orion-port.tgz
 
 Or you can browse the files from either of these locations:
 
* http://www.znerd.demon.nl/orion-port/
* http://www.jollem.com/~ernst/orion-port/
 
 Any and all comments are welcome! To test this port thorougly, follow the
 procedure described at:
 
* http://www.freebsd.org/porters-handbook/porting-testing.html
 
 Note that I tested this port with portlint, available from the devel/portlint
 port.
 
 Note for non-FreeBSD users: This will enable FreeBSD users to install and
 deinstall Orion in a very easy way. To install:
 
# cd /usr/ports/java/orion/  make install
 
 And to deinstall:
 
# cd /usr/ports/java/orion  make deinstall
 
 
 Ernst
 





Re: Sharing Thoughts ...

2000-12-22 Thread S. Balachandher

Hi,

At last, I have found the appropriate place for tag libraries.  Here is a
"Hello" tag which I have tried.  What I found useful with this approach is
that it doesn't need to create a jar file for the tags for development
purposes.  Moreover while creating a .war file it's much easier to pack the
entire web directory and we need not do anything extra.

If there is any other method which is more simpler or easier to maintain for
both development as well as packaging, please do let me know.

Step 1
--
Place all your tag handler source files in a package under WEB-INF\classes
directory.  For example, I have used the following,

$ORION\application\web\WEB-INF\classes\tagext\Hello.java
***
package tagext ;

import java.io.* ;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*;

public class Hello extends TagSupport {
 public int doStartTag() throws JspException {
  return EVAL_BODY_INCLUDE ;
 }

 public int doEndTag() throws JspException {
  try {
   pageContext.getOut().write( "Hellobr" ) ;
  } catch ( IOException e ) {
   throw new JspTagException( "JSP IOException" ) ;
  }

  return EVAL_PAGE ;
 }
}

Step 2
--
Define TLD under WEB-INF\tlds directory.  For example,

$ORION\application\web\WEB-INF\tlds\taglib.tld


taglib
 tlibversion1.0/tlibversion
 jspversion1.1/jspversion
 shortnamelearn/shortname
 infoLearn JSP Custom tags/info

 tag
  namehello/name
  tagclasstagext.Hello/tagclass
  bodycontentJSP/bodycontent
  infoSimple Tag Example/info
 /tag
/taglib

Step 3
--
Referring a tag from JSP file.  Example.

%@ taglib uri="WEB-INF/tlds/taglib.tld" prefix="learn" %

h3A Simple tag/h3
learn:hello /
hr

With regards
sbchand


- Original Message -
From: "Mike Cannon-Brookes" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Saturday, December 23, 2000 2:56 AM
Subject: RE: Sharing Thoughts ...


 Looks like a great idea. You place your tag library jars in the
 web/WEB-INF/lib directory.

 (Or at least I do).

 Mike

  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED]]On Behalf Of S.
  Balachandher
  Sent: Saturday, December 23, 2000 4:47 AM
  To: Orion-Interest
  Subject: Sharing Thoughts ...
 
 
  Hi,
 
  I just wanted to share my thoughts regarding Orion to you all.
 
  I am still a newbie with Orion Server.  After reading thro' the
  documentation, looking for information here  there, I have found the
  following to be useful for "Orion Freshers" who want to kickstart their
  application development.
 
  Directory Structure for a new J2EE application
  --
 
  $ORION\application\ - Application root
  $ORION\application\META-INF\application.xml - Descriptor for
Application
  $ORION\application\ejb\ - Root dir for EJB's
  $ORION\application\ejb\META-INF\ejb-jar.xml - Descriptor for EJB's
  $ORION\application\web\ - Root dir for Web
contents
  $ORION\application\web\WEB-INF\web.xml  - Descriptor for
  Web contents
  $ORION\application\web\WEB-INF\classes\ - Servlet dir
  $ORION\application\web\WEB-INF\lib\ - lib dir
 
  where $ORION is the home directory for Orion.
 
  $ORION\application\META-INF\application.xml
  -
  application
  display-name../display-name
  module
  ejbejb/ejb
  /module
 
  module
  web
  web-uriweb/web-uri
  context-root/application/context-root
  /web
  /module
  /application
 
  $ORION\application\web\WEB-INF\web.xml
  
  web-app
  display-name../display-name
 
  welcome-file-list
  welcome-fileindex.html/welcome-file
  welcome-fileindex.jsp/welcome-file
  /welcome-file-list
 
  ejb-ref
  ejb-ref-nameejb/EJB Name/ejb-ref-name
  ejb-ref-typeEntity|Session/ejb-ref-type
  homeHome Name/home
  remoteRemote Name/remote
  /ejb-ref
  /web-app
 
  Remember to add the following
  -
  application name="application" path="../application" / in
  $ORION\config\server.xml
  web-app application="application" name="web"
  root="/application" / in
  $ORION\config\default-web-site.xml
 
  Now start orion and just point http://servername[:port]/application
 
  That's it.
 
  For combining everything into an .ear file, it's as simple as changing
  ejbejb/ejb to ejbejb.jar/ejb and web-uriweb/web-uri to
  web-uriweb.war/web-uri in
  $ORION\application\META-INF\application.xml
 
  Is there any other better method.  If yes, please do let me know.  In
the
  meantime, I will start digging up Orion.  Also I wanted to know where to
  place my tag libraries, assuming I am following the above directory
  structure.
 
  With regards