Calling entity bean from a session bean in Orion 1.5.3

2001-11-20 Thread Puthezhath, Rajeev (TWII Boston)

Hi,

I want to access an entity bean from a session bean . I have added
the ejb-ref tag in the ejb-jar.xml and the same works perfectly on orion
1.3.8 But on Orion 1.5.3 I get the following error

javax.naming.NamingException: No EJB found with an ejb-name matching the
ejb-link 'Entity'
at com.evermind[Orion/1.5.3 (build 10509)]._ccb._po(.:64)
at com.evermind[Orion/1.5.3 (build 10509)]._lsb._wk(.:33)
at com.evermind[Orion/1.5.3 (build
10509)].server.rmi.RMIContext._ywd(.:857)
at com.evermind[Orion/1.5.3 (build
10509)].server.rmi.RMIContext._xnb(.:660)
at com.evermind[Orion/1.5.3 (build
10509)].server.rmi.RMIContext.lookup(.:63)
at com.evermind[Orion/1.5.3 (build 10509)]._bl._eh(.:189)
at com.evermind[Orion/1.5.3 (build 10509)]._bl.lookup(.:63)
at com.evermind[Orion/1.5.3 (build 10509)]._ccb._po(.:34)
at com.evermind[Orion/1.5.3 (build 10509)]._in.lookup(.:53)
at com.evermind[Orion/1.5.3 (build 10509)]._bl._eh(.:121)
at com.evermind[Orion/1.5.3 (build 10509)]._bl.lookup(.:63)

This is my ejb-jar.xml

session
display-nameA/display-name
ejb-nameA/ejb-name
homeAHome/home
remoteA/remote
ejb-classABean/ejb-class
session-typeStateless/session-type
transaction-typeBean/transaction-type
ejb-ref   
  descriptionSubscriber  EJB/description
  ejb-ref-nameejb/BHome/ejb-ref-name
ejb-ref-typeEntity/ejb-ref-type
 homeBHome/home
 remoteB/remote
  ejb-linkEntity/ejb-link
/ejb-ref
/session

Please advice.

Thanks
Rajeev

 




java.lang.OutOfMemoryError;

2001-06-08 Thread Puthezhath, Rajeev (TWII Boston)

Hi ,

We get java.lang.OutOfMemoryError; on production server frequetly.I
know this problem was discussed in this list before. I implemented all the
sugestions in this mailing list but still the error keeps on coming .I would
like to know the following

1) As an answer to the above mentioned problem I saw a sugestion in
this mailing list to limit the # of instances by adding max-instances
attribute to orion-ejb-jar.xml which would force orion to passivate less
used beans.I downloaded orion 1.5.2 and set the same.But observed that
passivation is never called. Is there a way to make sure that orion
passivates beans  which are not used .

2) Some people have mentioned increasing the memory. Has any body
tried this solution and i would like to know whether the problem got
solved.How can I increase the memory ?

3)Has anybody solved this problem ?

Any sugestions

Thanks in advance

Regards

Rajeev




RE: java.lang.OutOfMemoryError;

2001-06-08 Thread Puthezhath, Rajeev (TWII Boston)

Sorry.I didnt get what you meant.could you please explain

Thanks
Rajeev

-Original Message-
From: Juan Lorandi (Chile) [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 4:26 PM
To: Orion-Interest
Subject: RE: java.lang.OutOfMemoryError; 


inline

 -Original Message-
 From: Puthezhath, Rajeev (TWII Boston) [mailto:[EMAIL PROTECTED]]
 Sent: Viernes, 08 de Junio de 2001 14:42
 To: Orion-Interest
 Subject: java.lang.OutOfMemoryError; 
 
 
 Hi ,
 
   We get java.lang.OutOfMemoryError; on production server 
 frequetly.I
 know this problem was discussed in this list before. I 
 implemented all the
 sugestions in this mailing list but still the error keeps on 
 coming .I would
 like to know the following
 
   1) As an answer to the above mentioned problem I saw a 
 sugestion in
 this mailing list to limit the # of instances by adding max-instances
 attribute to orion-ejb-jar.xml which would force orion to 
 passivate less
 used beans.I downloaded orion 1.5.2 and set the same.But observed that
 passivation is never called. Is there a way to make sure that orion
 passivates beans  which are not used .
 
   2) Some people have mentioned increasing the memory. 
 Has any body
 tried this solution and i would like to know whether the problem got
 solved.How can I increase the memory ?


first, by hardware (buy some chips), secondly, by specifying a
minimun/maximun heap size of the JVM when you invoke it
these are the ones I use (W2K, Sun's JVM 1.3.0)

-Xms128m (minimun heap size 128 MB)
-Xmx320m (maximun heap size 320 MB)


 
   3)Has anybody solved this problem ?

No. ThereĀ“s always a limit to the amount of memory available on any given
system ;-)
Let's hope that(buggy orion code) gets fixed soon- don't forget to cast your
vote on Bugzilla, that is, if vote casting is finally enabled

 
 Any sugestions
 
 Thanks in advance
 
 Regards
 
 Rajeev
 




Orion as Win2000 service using jnt !

2001-04-17 Thread Puthezhath, Rajeev (TWII Boston)

Hi Friends

I am trying to set up Orion as a Win2000 Service. First I tried to set it up
using RunExecSvc.exe  as explained in orionsupport.com. But I was not
successful in getting this exe run as it always exited suddenly. Then taking
a hint from this mailing list I tried with jnt.

D:\jntd:\jnt\jnt "/InstallAsService: Orion" "/SDD:\orion" java -jar
d:\orion
\orion.jar

I get the following statements.

Java Service Launcher V1.0.1 beta
Copyright (C) 2000 by eWorkSmart, LLC

04/17/01 17:04:40 - Installing as service "Orion" (Orion).
04/17/01 17:04:40 -
This has been installed as "Orion".
This service is set to automatically start when the
system boots.  To start the service now, use the "Services"
icon found in the control panel.
04/17/01 17:04:40 -

NT Service options:
Use /InstallAsService:ServiceName[:dependent1,dependent2,...] to
install.
Use /RemoveAsService:ServiceName to remove (uninstall) as a service.
Use /SetServiceParams:ServiceName to change the startup parameters for this
serv
ice.
Note: Any additional parameters on the command line will be setup
  as the startup parameters for the service when using
  the /InstallAsService or /SetServiceParams options.


But after starting the Orion Service from Services, When I try to access
the application then it throws an error saying 
web server can not be found. Any idea why this is happening ?


Thanks and Regards

Rajeev








How to specify cache time out period for images !!!!

2001-02-02 Thread Puthezhath, Rajeev (TWII Boston)

Hi,

We have a J2EE application developed with JSP,EJB and SQL server 2000 with
Orion Server.We want to cache all our jsp page  for a particular time on a
caching server.With HTTP Headers this is perfectly working but the  images
on the page it never Time out. I would like to know if there is a way to set
cache time out for images in Orion or JSP

Can any body help.

Regards

Rajeev




How to specify 2 databases in datasource.xml file.

2001-01-29 Thread Puthezhath, Rajeev (TWII Boston)

Hi Friends,

As a requirement of the application, We are developing we need to access
differrent databases. I mean certain sections of the application needs to
access database A and certain sections of the site is based on Database B.We
are using SQL Server 2000 and Bean managed Persistence.How can I specify 2
Datasources in Datasource.xml file.Is this sort of architecture supported by
J2EE.

Regards

Rajeev





Connection reset by peer: socket write error Can someone help

2001-01-25 Thread Puthezhath, Rajeev (TWII Boston)

Hi,

We are developing a web application with orion as application server and sql
server as the database.
When i do stress test some time at get the following error.Can Some one say
why this is happening


 in Jsp Exception com.evermind.server.http.HttpIOException: Connection reset
by peer: sock
et write error
com.evermind.server.http.HttpIOException: Connection reset by peer: socket
write error
at com.evermind.server.http.ez.write(JAX, Compiled Code)
at com.evermind.server.http.EvermindJSPWriter.r2(JAX, Compiled Code)
at com.evermind.server.http.EvermindJSPWriter.flush(JAX, Compiled
Code)
at com.evermind.server.http.EvermindJSPWriter.write(JAX, Compiled
Code)
at
__jspPage24_news_default_sps._jspService(__jspPage24_news_default_sps.java,
Com
piled Code)
at com.orionserver.http.OrionHttpJspPage.service(JAX, Compiled Code)
at com.evermind.server.http.HttpApplication.w5(JAX, Compiled Code)
at com.evermind.server.http.JSPServlet.service(JAX, Compiled Code)
at com.evermind.server.http.d1.si(JAX, Compiled Code)
at com.evermind.server.http.d1.forward(JAX, Compiled Code)
at com.evermind.server.http.ed.sp(JAX, Compiled Code)
at com.evermind.server.http.ed.so(JAX, Compiled Code)
at com.evermind.util.f.run(JAX, Compiled Code)


Can some one please help.

Regards

Rajeev




Sorry ! Test mail

2001-01-25 Thread Puthezhath, Rajeev (TWII Boston)






RE: Problem with pkclass .Thanks Tommy

2000-12-08 Thread Puthezhath, Rajeev (TWII Boston)


Hi Tommy,
It worked.
I modified my PK class and it has worked. I was struggling with this problem
for long.
Thanks.
regards
Rajeev

-Original Message-
From: Tommy Eriksson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:02 AM
To: Orion-Interest
Subject: Re: Problem with pkclass


I was experiencing the same kind of trouble just the other day. May fault
was in implementing the PK class I had forgot to implement the equals and
the hashCode methods, hope it helps.

Example of one of my PK classes:

package knut.ejb.entity;

public class UserContactPK implements java.io.Serializable {
public String ownerId;
public String contactId;

public UserContactPK(String ownerId,String contactId)  {
this.ownerId = ownerId;
this.contactId = contactId;
}

public String getOwnerId()  {
return ownerId;
}
public String getContactId()  {
return contactId;
}

public String toString () {
 return ownerId+":"+contactId;
}

public boolean equals(Object other) {
if (other instanceof UserContactPK) {
 return ownerId.equals(((UserContactPK)other).ownerId) 
   contactId.equals(((UserContactPK)other).contactId);
}
return false;
}

public int hashCode() {
 return ownerId.hashCode();
}
}


- Original Message -----
From: "Puthezhath, Rajeev (TWII Boston)" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Friday, December 08, 2000 1:36 AM
Subject: Problem with pkclass


 Hi

  I have a specific problem regarding caching in orion. When I am passing
 only one varaible in Pk class all requests to the database for the same
 primary key before the bean gets passivated,is served from the instance in
 memory.But if i have more than one parameter is there in PK class then it
 calls ejbload for each request.(Bean is yet to be passivated).Can any body
 sugest any solution for this.

 Please reply.Incase i need to give more info please tell me

 Regards

 Rajeev





RE: Help in running XSL

2000-12-07 Thread Puthezhath, Rajeev (TWII Boston)

Hi Kesav ,

I have a ejb  which gets data from table and creates a xml in memory and
then calls xsl to convert it to html.It works fine and i used to get the
same early. I have xerces.jar in orion directory and all
xalan.jar,bsf.jar,bsfengines.jar and js.jar in orion/lib directory.
You can try this and also check your classpath


regards
rajeev



-Original Message-
From: Kesav Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:33 PM
To: Orion-Interest
Subject: Help in running XSL


Hi I am new to orion I have developed some classes which uses xalanj-1.2.1
for parsing xsl and converting xml to html.  When I ran my application from
command line it works fine.  I am now trying to integrate with servlets
which are running on orion I am always getting class not found exception for
bsf.jar and bsfengines.jar.  I copied all the xalan jar files to my
application web-inf\lib directory but it didn't work.  I copied the jar
files to orion root directory by replacing the orion's original xaln.jar and
xerces.jar but still didn't help me.  Can any one please help me in setting
up xalan classes.

I kept the all xalan's jar files in my classpath and I am using jdk1.3 on
winNT.  I am starting orionserver as java -jar orion.jar.  Can any one plz
help me in settings.

Thanks in advance.

Kesav Kumar
Software Engineer
Voquette, Inc.
650 356 3740
mailto:[EMAIL PROTECTED]
http://www.voquette.com




Problem with pkclass

2000-12-07 Thread Puthezhath, Rajeev (TWII Boston)

Hi

 I have a specific problem regarding caching in orion. When I am passing
only one varaible in Pk class all requests to the database for the same
primary key before the bean gets passivated,is served from the instance in
memory.But if i have more than one parameter is there in PK class then it
calls ejbload for each request.(Bean is yet to be passivated).Can any body
sugest any solution for this.

Please reply.Incase i need to give more info please tell me

Regards

Rajeev




Please help!

2000-11-20 Thread Puthezhath, Rajeev (TWII Boston)

Hi,

Is there a way to set time out period for Entity beans in Orion.And also I
would like to know whether orion creates new instances of the bean even
though the request is for the same data which is already there in
memory.Please help.

Thanks in Advance 

Regards

Rajeev