Re: problem with ResultSet Object

2002-02-14 Thread Jorge Jimenez C



Sachin:

I think you have a design problem. 
Please,anyone correct me if you think i'm wrong.

From inside a JSP page you should not access a 
recordset returned by an EJB. EJB components represent mostly bussines objects 
that contains rules and data access services. From outside the EJB (from a JSP 
page or remote client) the data that this component encapsulates should be 
accesed using services that returns serializable data types (objects thart 
starts with an uppercase or even another EJBS throught it's remote 
interface).

In design terms, you are innecesarily coupling 
presentation layer with data layer if you return a ResultSet. Capture the 
resultset in private variables of your EJB and provide "getter"services if 
it is a stateful bean, or you can returna Hashtable with attributes if it 
is a stateless one.

Hope this can help you.

JJ

  - Original Message - 
  From: 
  sachin 
  mahajan 
  To: Orion-Interest 
  Cc: sachin 
  mahajan 
  Sent: Thursday, February 14, 2002 1:50 
  AM
  Subject: problem with ResultSet 
  Object
  
  Dear Sir
  Currently i am workingom the orion 
  server.
  i have deployed my application 
  properly.
  But i am facing some problem with transfering 
  ResultSet object from my
  EJB to jsp . It error i am facing is
  this
  
  
  inside basedl The statement is 
  oracle.jdbc.driver.OracleStatement@9617f825inside basedl The 
  resultset is 
  oracle.jdbc.driver.OracleResultSet@c72ff82aResultset is before returning 
  :*** oracle.jdbc.driver.OracleResultSet@c72ff82a
  inside buildselect exception is
  com.evermind.server.rmi.OrionRemoteException: 
  Error (de-)serializing object: 
  oracle.jdbc.driver.OracleResultSet 
  at com.evermind.server.ejb.EJBUtils.cloneObject(Unknown 
  Source) at 
  ConnectionPool_StatelessSessionBeanWrapper0.read(ConnectionPool_StatelessSessionBeanWrapper0.java, 
  Compiled Code)
  
  
  can any body tell me how to solve this 
  problem
  
  Waiting for your reply..
  regds
  sachin


Re: problem with ResultSet Object

2002-02-14 Thread Kesav Kumar



ResultSet is not a seralizable object. 
ResultSet is opened cursor to the database. If you want to pass ResultSet 
to client i.e jsp/servlet either conver the ResultSet data into you own custom 
objects or collection classes. The other alternate is to use 
CachedRowSet. CachedRowset is serializable object and contains all the 
information what ResultSet contains. You can get more information on 
RowSet at http://www.javaworld.com/javaworld/jw-02-2001/jw-0202-cachedrow.html

-kesav


  - Original Message - 
  From: 
  sachin 
  mahajan 
  To: Orion-Interest 
  Cc: sachin mahajan 
  Sent: Wednesday, February 13, 2002 8:50 
  PM
  Subject: problem with ResultSet 
  Object
  
  Dear Sir
  Currently i am workingom the orion 
  server.
  i have deployed my application 
  properly.
  But i am facing some problem with transfering 
  ResultSet object from my
  EJB to jsp . It error i am facing is
  this
  
  
  inside basedl The statement is oracle.jdbc.driver.OracleStatement@9617f825inside 
  basedl The resultset is oracle.jdbc.driver.OracleResultSet@c72ff82aResultset 
  is before returning :*** oracle.jdbc.driver.OracleResultSet@c72ff82a
  inside buildselect exception is
  com.evermind.server.rmi.OrionRemoteException: 
  Error (de-)serializing object: 
  oracle.jdbc.driver.OracleResultSet 
  at com.evermind.server.ejb.EJBUtils.cloneObject(Unknown 
  Source) at 
  ConnectionPool_StatelessSessionBeanWrapper0.read(ConnectionPool_StatelessSessionBeanWrapper0.java, 
  Compiled Code)
  
  
  can any body tell me how to solve this 
  problem
  
  Waiting for your reply..
  regds
  sachin


Accessing HypersonicSQL

2002-02-14 Thread Craig Gregory


I have a few questions about accessing 
HypersonicSQL when acting as the data source for Orion. I am assuming the HSQL 
is running in the same JVM as Orion (the default configuration.)

How do I access the 
HypersonicSQL data source from Java using JDBC, but outside the JVM of Orion 
? Is there a dirver and URL to use ?

How do I access the 
HypersonicSQL data source from Excel running on a desktop ? (i.e. Is there 
"native"ODBC access to HypersonicSQL when the client is running on a 
Windows desktop ?)

A question on 
best practice; when updating a J2EE 
data source in batch (perhaps posting information at night) do I write a 
program that runs in the Orion JVM (how do I invoke it ?)or do I write a 
program that updates outside of Orion ? 
In both cases I would use EJBs (right ?)


Problem on Netscape Browser - Document Contained No Data

2002-02-14 Thread Marc Rabil

I have an application that uses a custom user manager and form-based
authentication on Orion 1.3.8.  Things work great with Internet Explorer,
but with Netscape 4.7, the browser pops up a Document Contained No Data
error when attempting to login - as if its not getting anything back from
the server.  If I turn security off and request the same URL, I get right
in.

Anybody have any idea what is causing this?  Thanks in advance,

Marc





Wow. It seems that 1.5.4 is released!!!

2002-02-14 Thread kesh



See subj.


RE: Debugging using JPDA, FATAL ERROR

2002-02-14 Thread Geoff Soutter

No worries, mate. I blame sun, the error message is hopeless.

geoff

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, 14 February 2002 6:54 PM
To: Orion-Interest
Subject: RE: Debugging using JPDA, FATAL ERROR


Thanks Geoff, you were right.
Tibor

-Original Message-
From: Geoff Soutter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 13, 2002 11:34 PM
To: Orion-Interest
Subject: RE: Debugging using JPDA, FATAL ERROR


Hmm, I seem to remember this one as well. Make sure you are using the
java.exe from the JDK directory rather than the JRE, as in the latest
1.3.1 revision only the JDK java.exe seems to have access to JPDA (or at
least, that's what I remember, YMMV)

Geoff


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, 13 February 2002 8:10 PM
To: Orion-Interest
Subject: Debugging using JPDA, FATAL ERROR


Hi, 

I'd need some urgent help on starting Orion with JDPA remote debugging
enabled.

I read through the docs and followed the instructions to start this way:

java -classic -Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar
orion.jar


But it came up with a FATAL ERROR :

Transport dt_socket failed to initialize, rc = 509.
FATAL ERROR in native method: No transports initialized abnormal program
termination

In case you have some ideas, share them with me.

Thanks, 

Tibor








Re: Problem on Netscape Browser - Document Contained No Data

2002-02-14 Thread John Hogan

try an html meta tab spcifying noCache

-Original Message-
From: Marc Rabil [EMAIL PROTECTED]
Date: Thu, 14 Feb 2002 14:50:56 -0500
To: Orion-Interest [EMAIL PROTECTED]
Subject: Problem on Netscape Browser - Document Contained No Data 


 I have an application that uses a custom user manager and form-based
 authentication on Orion 1.3.8.  Things work great with Internet Explorer,
 but with Netscape 4.7, the browser pops up a Document Contained No Data
 error when attempting to login - as if its not getting anything back from
 the server.  If I turn security off and request the same URL, I get right
 in.
 
 Anybody have any idea what is causing this?  Thanks in advance,
 
 Marc
 
 
 

-- 

___
Get your premium email from http://www.ireland.com/email





getClass().getClassLoader().getResource(fileName) problem

2002-02-14 Thread Min-Hua Luo

Hi,

  I tried to open a property file from within my
custom UserManager program, however, Orion was unable
to find my file. I just don't know where should I put
my property file so it can be located by the following
command:

props_ = new Properties();
try {
  URL aURL =
getClass().getClassLoader().getResource(fileName);
  InputStream in = (InputStream)aURL.openStream();
  props_.load(in);

Thanks a lot.

__
Do You Yahoo!?
Got something to say? Say it better with Yahoo! Video Mail 
http://mail.yahoo.com




Re: problem with ResultSet Object

2002-02-14 Thread sachin mahajan

Hello
Thanks. Can u explain me if i will use CachedRowSet object instead of
ResultSet object.
How my application is affected and it is scalable or not.

sachin
- Original Message -
From: Dvornikov Victor [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Thursday, February 14, 2002 1:48 PM
Subject: RE: problem with ResultSet Object


 ResultSEt is not a serializable object. For RMI purpose use CachedRowSet
 object  Take into account that this object is not for scalable
 applications!

 -Original Message-
 From: sachin mahajan [SMTP:[EMAIL PROTECTED]]
 Sent:  14  2002 6:51
 To: Orion-Interest
 Cc: sachin mahajan
 Subject: problem with ResultSet Object

 Dear Sir
 Currently i am working om the orion server.
 i have deployed my application properly.
 But i am facing some problem with transfering ResultSet object from
 my
 EJB to jsp . It error i am facing is
 this


 inside basedl The statement is
 oracle.jdbc.driver.OracleStatement@9617f825
 inside basedl The resultset  is
 oracle.jdbc.driver.OracleResultSet@c72ff82a
 Resultset is before returning :***
 oracle.jdbc.driver.OracleResultSet@c72ff82a

 inside buildselect exception is

 com.evermind.server.rmi.OrionRemoteException: Error (de-)serializing
 object: ora
 cle.jdbc.driver.OracleResultSet
 at com.evermind.server.ejb.EJBUtils.cloneObject(Unknown
 Source)
 at
 ConnectionPool_StatelessSessionBeanWrapper0.read(ConnectionPool_State
 lessSessionBeanWrapper0.java, Compiled Code)


 can any body tell me how to solve this problem
 Waiting for your reply..
 regds
 sachin


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





Re: getClass().getClassLoader().getResource(fileName) problem

2002-02-14 Thread Oleg Bivol

if your file.ini is in c:\orion try the following:

  String path = c:\orion\file.ini;
  Properties props = new Properties();
  props.load(new FileInputStream(path));

- Original Message - 
From: Min-Hua Luo [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Friday, February 15, 2002 5:32 AM
Subject: getClass().getClassLoader().getResource(fileName) problem


 Hi,
 
   I tried to open a property file from within my
 custom UserManager program, however, Orion was unable
 to find my file. I just don't know where should I put
 my property file so it can be located by the following
 command:
 
 props_ = new Properties();
 try {
   URL aURL =
 getClass().getClassLoader().getResource(fileName);
   InputStream in = (InputStream)aURL.openStream();
   props_.load(in);
 
 Thanks a lot.
 
 __
 Do You Yahoo!?
 Got something to say? Say it better with Yahoo! Video Mail 
 http://mail.yahoo.com





fyi: 1.5.4 still stacks rather than queues JMS messages

2002-02-14 Thread Geoff Soutter

Re the problem reported a couple weeks back by Jorge Jimenez and
confirmed by myself, I tested 1.5.4 to see if they had fixed this
problem, but it's still there. Just set max-instances to 1 and load up
with a lot of messages, it works just like a stack. Doh. 

Maybe I'll have time to put this into Bugzilla next week...

Is _everyone_ using a third party JMS with Orion?

geoff