Help with Deploying a simple Entity EJB

2001-07-09 Thread Oisin Kim

Hello to you all,
this is a resend
Can anyone tell me why I'm getting the following error when I try to deploy 
an 
Entity bean. 

[root@mcdonalds orion]# java -jar orion.jar
Auto-deploying /usr/orion/application-deployments/HLR/HLR-ejb.jar (No 
previous deployment found)... Error compiling 
/usr/orion/application-deployments/HLR/HLR-ejb.jar: Variable contained 
illegal space
Orion/1.5.2 initialized

I have all the files in place in the jar file they are:

[root@mcdonalds HLR]# jar tf HLR-ejb.jar 
META-INF/
META-INF/MANIFEST.MF
ie/tcd/cs/dsg/HLR/Client_1.class
ie/tcd/cs/dsg/HLR/HLRBean.class
ie/tcd/cs/dsg/HLR/HLR.class
ie/tcd/cs/dsg/HLR/HLRHome.class
ie/tcd/cs/dsg/HLR/HLRPK.class
META-INF/ejb-jar.xml

I've already created a META-INF folder and put application.xml in to it.
I've also placed application-client.xml here too.

Thanks for any help in advance!
Oisin


+-+
   _/_/_/_/_/  _/_/_/  __/_/_/_/  Oisin Kim
  _/ _/_/  _/ _/  Dept. Computer Science
 _/ _/_/ _/   Trinity College Dublin
_/ _/_/ _/tel : (+353 86).841 9967
   _/ _/_/  _/ _/ email: [EMAIL PROTECTED]
  _/  _/_/_/  __/_/_/_/   http://www.cs.tcd.ie/Oisin.Kim/

+-+




RE: How can I get UserTransaction or TransactionManager

2001-07-09 Thread HyungKee Hwang

Thank you Heinz.

I tried in other ways to manage a transaction, but I still have other problems about 
Orion TXN.

What I wanted to do in my App. is as follows;

Let's assume that  user class and address class exist and their relationship is 1-to-1.
1. Create a user
2. Create an address object of the user

if creating the address object is failed, I'd like to rollback creating a user.

Trial 1
I used entity bean and session bean to manage the transaction as follows;
1. newUser method is one of the methods of a session bean, and the method's 
transaction attribute is set to RequiresNew
2. newAddress method is one of the methods of User entity bean, and the mehtod's 
transaction attribute is set to Supports
3. newUser method calls newAddress method.
But, even though creating the address failed, creating a user was not rollbacked, i.e. 
new user was still in the database.

Tiral 2
I used ejbContext to get UserTransaction in newUser method of a session bean as 
follows;

ejbContext.getUserTransaction().begin();
create a user
newAddress();
ejbContext.getUserTransaction().commit();
And set the session bean's TXN attribute to Bean

but, the result was the same as above.

Any advice appreciated.
-HK





-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED]]On Behalf Of Haeussler, Heinz
Sent: Monday, July 09, 2001 2:32 PM
To: Orion-Interest
Subject: RE: How can I get UserTransaction or TransactionManager

Hi HK,

you can't get UserTransaction from an Application-Client-or
RMI-Client-Context. This (optional) feature is not supported by Orion.

Heinz

-Ursprüngliche Nachricht-
Von: HyungKee Hwang [mailto:[EMAIL PROTECTED]]
Gesendet am: Montag, 9. Juli 2001 02:35
An: Orion-Interest
Betreff: RE: How can I get UserTransaction or TransactionManager

Thank you Aby
I tried java:comp/env/UserTransaction, but the same error occurred.

Any advice appreciated.

Regards,
-HK


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 3:47 PM
To: Orion-Interest
Subject: Re: How can I get UserTransaction or TransactionManager


Hi HK,
I think you should try

java:comp/env/UserTransaction

Regards
Aby




HyungKee Hwang [EMAIL PROTECTED]@orionserver.com on 07-07-2001
09:10:55 AM

Please respond to Orion-Interest [EMAIL PROTECTED]

Sent by:  [EMAIL PROTECTED]


To:   Orion-Interest [EMAIL PROTECTED]
cc:
Subject:  How can I get UserTransaction or TransactionManager


Hello, all.

Can you give me some advice how to get UserTransaction or
TrasactionManger?

I wrote some codes in my application as follows;

 // Below codes are from Orion FAQ
import javax.naming.*;
import javax.transaction.*;
...
TransactionManager manager = (TransactionManager)new InitialContext
().lookup(java:comp/UserTransaction);
I didn't have any problem compiling my codes, but I met below error
while running my application
avax.naming.NameNotFoundException: java:comp/UserTransaction not found
at com.evermind.server.rmi.RMIContext.lookup(JAX)
Thank you in advance.
-HK








Re: Help on List

2001-07-09 Thread Ray Harrison

It worked as recently as May. I was able to go unsubscribe prior to leaving for 
vacation and it
worked just fine. There may be a slight delay, however. 
--- Abhilash Koneri [EMAIL PROTECTED] wrote:
 HI,
 I need to unsubscribe from this list and subscribe to a different mail
 id. I managed
 the secoud part. But how do I go about the former?? (The unsubscribe
 button on the orionserver home
 page does not work).
 
 regards,
 abhilash
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/




Re: Help on List

2001-07-09 Thread Magnus Rydin

Maybee you stated the wrong email address for unsubscription?
WR

- Original Message - 
From: Abhilash Koneri [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Sent: Monday, July 09, 2001 4:27 AM
Subject: Help on List


 HI,
 I need to unsubscribe from this list and subscribe to a different mail
 id. I managed
 the secoud part. But how do I go about the former?? (The unsubscribe
 button on the orionserver home
 page does not work).
 
 regards,
 abhilash
 





RE: communication among ejbs in different applications

2001-07-09 Thread Robert Ren

Hi,Juan:
Thank you for your suggestion.
Do you think this kind of calls will violate any J2EE specs? I mean that one
ejb in parent  application should have one container, and the ejbs in child
app should have thire own container. So, the question: does this kind call
violate any container specs?
It's pretty interesting, in one ejb of the parent app, when a new context
initialized, I already saw the all ejbs in child app, but if I try to
instance one of them, the ejb got removed, and the server complained that
the class is not defined, although, I put the .jar file including all class
in the classpath and import the ejb's remote and home interface also.  The
error is following:

The lookup is=com.evermind.naming.MapNamingEnumeration@28c19b
the Name is =com.qmarkets.mas.commerce.ejb.CommerceService

the Name is =com.qmarkets.mas.attachments.ejb.AttachmentService

the Name is =com.qmarkets.mas.product.ejb.ProductService

the Name is =com.qmarkets.mas.user.ejb.UserService

the Name is =com.qmarkets.mas.contact.ejb.ContactService

the Name is =com.qmarkets.mas.deliveryorder.ejb.DeliveryOrderService

the Name is =com.qmarkets.mas.mlcaller.ejb.MLCaller

the Name is =java:comp

the Name is =com.qmarkets.mas.subscriber.ejb.SubscriberService

the Name is =com.qmarkets.mas.object.ejb.ObjectService

the Name is =com.qmarkets.mas.permissions.ejb.PermissionService

the  ref object is
Call MLQListenerBean.ejbRemove()
MsgReceiverStartup.onMessage: RemoteException was thrown
com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back:
java.
lang.NoClassDefFoundError: com.qmarkets.mas.user.ejb.UserServiceHome
at
MLQListener_StatelessSessionBeanWrapper2.onMessage(MLQListener_Statel
essSessionBeanWrapper2.java:83)
at
com.qmarkets.ml.qlistener.client.QListenerClient.onMessage(QListenerC
lient.java:103)
at
progress.message.jclient.Session.ew_(progress/message/jclient/Session
.java:1313)
at
progress.message.jclient.QueueSession.run(progress/message/jclient/Qu
eueSession.java:623)
at
progress.message.jclient.sl.run(progress/message/jclient/Session$Sess
ionThread.java:1240)

Nested exception is:
java.lang.NoClassDefFoundError: com.qmarkets.mas.user.ejb.UserServiceHome
at
com.qmarkets.ml.qlistener.ejb.MLQListenerBean.class$(MLQListenerBean.
java:23)
at
com.qmarkets.ml.qlistener.ejb.MLQListenerBean.onMessage(MLQListenerBe
an.java:89)
at
MLQListener_StatelessSessionBeanWrapper2.onMessage(MLQListener_Statel
essSessionBeanWrapper2.java:53)
at
com.qmarkets.ml.qlistener.client.QListenerClient.onMessage(QListenerC
lient.java:103)
at
progress.message.jclient.Session.ew_(progress/message/jclient/Session
.java:1313)
at
progress.message.jclient.QueueSession.run(progress/message/jclient/Qu
eueSession.java:623)
at
progress.message.jclient.sl.run(progress/message/jclient/Session$Sess
ionThread.java:1240)

Thanks!

Rob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi
(Chile)
Sent: Friday, July 06, 2001 12:43 PM
To: Orion-Interest
Subject: RE: communication among ejbs in different applications


Robert, the parent attribute is only available in Orion AFAIK.

All you need is to setup wire protocols properly. Most are RMI based (like
JRMP), and also, each app server uses its own (ORMI, for instance).
Similary, IIOP may be available.

HTH

JP

 -Original Message-
 From: Robert Ren [mailto:[EMAIL PROTECTED]]
 Sent: Viernes, 06 de Julio de 2001 13:43
 To: [EMAIL PROTECTED]
 Subject: communication among ejbs in different applications


 Hi,
 Is there anybody had the experience to use EJB A in App 1 to
 call EJB B in App 2, as long as EJB C in App 2 to call EJB D
 in App 1. The half of the solution is to use the parent
 attribute in application tag ( one-way), but I also need
 another half to form a two-way communication.
 I tried to parent each other, but failed. I tried to use RMI,
 but it did not work either.
 Any suggestion will be highly appreciated!

 Have a nice weekend!

 Robert Ren

 ==
 =
 To unsubscribe, send email to [EMAIL PROTECTED] and
 include in the body
 of the message signoff EJB-INTEREST.  For general help,
 send email to
 [EMAIL PROTECTED] and include in the body of the message help.


 __
 __
 For your protection, this e-mail message has been scanned for Viruses.
 Visit us at http://www.neoris.com/







Slow RMI - returning 4000 empty wrapped Strings takes 9 seconds.

2001-07-09 Thread Henty Waker


Hi there

I've got a stateless session bean that returns an ArrayList of 4000 
objects to a servlet. If the objects are of type String it takes a few 
milliseconds to return all 4000. If they are of a custom class (i.e. One 
I coded) that only contains a String object it takes 9 seconds to return 
all 4000. The stings are all close to empty in all cases (typically 5 
characters).

Something doesn't seem right.

I'm running Orion from within Jbuilder for debugging purposes.
I know that Orion automatically creates the client stub classes for 
EJB's. If these classes are not in my classpath I imagine Orion might 
have to fetch the stubs from the RMI server. If it did this 4000 times it 
might explain the slow-down. 

If this is the case where does Orion store the stub classes that it 
generates ? I want to add it to my class path.

If this is not the case, does anyone have any idea what I might be doing 
incorrectly ?

Thanks
Henty 




Problem with DataSourceUserManager on orion 1.5.2

2001-07-09 Thread Eric Hodges



I just upgraded to Orion 1.5.2 and my 
DataSourceUserManager stopped working. It can find the User info, but when 
the getGroup() call is returning null for some reason. Has something 
changed that would break this?

(Also, I can't get to orionsupport.com or Orion's 
mailing list archive or I would have looked there first.)



RE: Cluster configuration

2001-07-09 Thread Gurinder Randhawa




Thanks elephatwalker :)





elephantwalker [EMAIL PROTECTED] on 07/07/2001 01:21:20 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  RE: Cluster configuration




another resend...didn't catch second time around...

-Original Message-
From: elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:41 PM
To: Orion-Interest
Subject: RE: Cluster configuration


resend...didn't catch the first time around...

-Original Message-
From: elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 8:43 PM
To: Orion-Interest
Subject: RE: Cluster configuration


Gurinder,

The clusters are setup just to lighten the multi-cast traffic. That is, if
every server was sharing its http sessions with every other server, you can
see how the power of e and factorial  are related. (sigma (1/n!)) == e. So
instead of the traffic being proporational e^s, where s is the number of
sessions, the traffic is proportional to s*n!, where n is the number of
servers in a cluster. If a cluster has three servers, this seems to be a
good comprimise between redundancy and multi-cast traffic.

The loadbalancing bit randomly picks servers ... not clusters. So if one
server goes down or is removed, another server in its same cluster takes
over. This is the fail-over policy.

regards,

the elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
Randhawa
Sent: Friday, July 06, 2001 5:14 PM
To: Orion-Interest
Subject: Re: Cluster configuration





Thanks for the response Jeff, what i wanted was first and foremost was
if one orion instance fails another one to kick in with session
replication.
This sounds like a cluster island. I guess thats all i want.

But isn't a cluster-island used only for fault tolerance that is if one
instance
fails another one on the island picks it up with session replication ?

Can you distribute (load balance) in one cluster-island  or do u need
multiple cluster islands? I want
fault tolerance and load balancing between instances (is this multiple
cluster islands ?).

What would be the best setup for this ? Sorry i think i might be just
confusing myself more.

If you could clear this up a little it would be great.

Thanks a bunch
Gurinder





Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 02:14:04 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  Re: Cluster configuration




A cluster-island is just a cluster, because session replication doesn't
happen between cluster-islands, just inside it. So yes, you need at least 2
instances per cluster-island, and yes you install 2 separate orion
instances
with the same cluster id in the web-site.xml. I didn't run any benchmarks
on
my cluster setup, it was more just a proof-of-concept. Is there a reason
you
want 2 cluster-islands? because they won't share session information with
eachother.

Jeff.

Gurinder Randhawa wrote:

 One other question i had was...when you setup a cluster-island
 do you install 2 seperate orion instances with same cluster id in
 web-site.xml ?

 We are setting up 2 cluster-islands witha load balancer running behind
 apache
 on same host (one physical sun box) for one web-application. So to add to
 my question above
 for 2 cluster-islands do we need to run 4 instances of orion or just 2 ?
 The documentation wasn't
 clear to me on this

 I have it working for a single instance of orion but need to do
clustering
 for scalability and
 fault tolerance issues.  How does this perform ?

 Thanks

 Gurinder Randhawa
 Travel Underwriters Group Of Companies
 IS Department, Senior programmer/analyst

 Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 07:31:33 AM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  Re: Cluster configuration

 There's a very nice how-to at:
 http://www.orionserver.com/docs/http-clustering.html

 Jeff.

 Alessandro Fustini wrote:

   Hi,
  I woul like configure a Orion cluster with 2 PC.
  Is it only necessary change orion/application-deloyments/
  default/defaultWebApp/orion-web.xml file with
  cluster-config / add ??
 
  Thanks a lot for all help
 
 
 
  Alessandro Fustini
  Java Developer
 
  e-mail: [EMAIL PROTECTED]

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com


























Re: Cluster configuration

2001-07-09 Thread Gurinder Randhawa




Another question in regards to Apache running in front of the load
balancer. How does apache send
requests via mod_proxy (ProxyPass...) to loadbalancer ? Is there any xtra
config required or do you just
specify loadbalancer port in httpd.conf file ?

Gurinder




Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 02:14:04 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  Re: Cluster configuration




A cluster-island is just a cluster, because session replication doesn't
happen between cluster-islands, just inside it. So yes, you need at least 2
instances per cluster-island, and yes you install 2 separate orion
instances
with the same cluster id in the web-site.xml. I didn't run any benchmarks
on
my cluster setup, it was more just a proof-of-concept. Is there a reason
you
want 2 cluster-islands? because they won't share session information with
eachother.

Jeff.

Gurinder Randhawa wrote:

 One other question i had was...when you setup a cluster-island
 do you install 2 seperate orion instances with same cluster id in
 web-site.xml ?

 We are setting up 2 cluster-islands witha load balancer running behind
 apache
 on same host (one physical sun box) for one web-application. So to add to
 my question above
 for 2 cluster-islands do we need to run 4 instances of orion or just 2 ?
 The documentation wasn't
 clear to me on this

 I have it working for a single instance of orion but need to do
clustering
 for scalability and
 fault tolerance issues.  How does this perform ?

 Thanks

 Gurinder Randhawa
 Travel Underwriters Group Of Companies
 IS Department, Senior programmer/analyst

 Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 07:31:33 AM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  Re: Cluster configuration

 There's a very nice how-to at:
 http://www.orionserver.com/docs/http-clustering.html

 Jeff.

 Alessandro Fustini wrote:

   Hi,
  I woul like configure a Orion cluster with 2 PC.
  Is it only necessary change orion/application-deloyments/
  default/defaultWebApp/orion-web.xml file with
  cluster-config / add ??
 
  Thanks a lot for all help
 
 
 
  Alessandro Fustini
  Java Developer
 
  e-mail: [EMAIL PROTECTED]

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com
















SV: LDAP and EJBs

2001-07-09 Thread Patrik Andersson
Title: SV: LDAP and EJBs





You would have one sessionbean being business delegate in front of the EntityBean manipulating the RDBMS and another managing the LDAP directory service. Then you would have a Facade in front of both these sessionbeans with one method that does the whole trick with transactional attributes set up to require a transaction before entering the method.

interface UpdatingFacade : SessionBean {
 void doTheUpdate() throws RemoteException;
}


interface LdapDelegate : SessionBean {
 void writeLdapEntry() throws RemoteException;
}


interface RdbmsDelegate : SessionBean or EntityBean {
 void writeRdbmsRow() throws RemoteException;
}


Then you want an error in the writeLdapEntry() aswell as the writeRdbmsRow() to throw an EJBException breaking the transaction begun by doTheUpdate() method. Both writeXxx methods must require that a transaction already exists before being called. The doTheUpdate() method can really have it either way, as long as there is an active transaction associated to the thread calling it.

regards,
Patrik Andersson


-Ursprungligt meddelande-
Från: Joni Suominen [mailto:[EMAIL PROTECTED]]
Skickat: den 6 juli 2001 08:32
Till: Orion-Interest
Ämne: LDAP and EJBs



Hi everyone!
I have a use case where I need to interface an LDAP directory and a
relational database within a same transaction. That is, to create a new
row to RDBMS from session bean using entity bean and to create an LDAP
entry from the same session bean using Sun's LDAP provider through JNDI.


1. Is this possible?


2. Can I use container managed transactions?


Thanks a lot! 


-- 
Joni
[EMAIL PROTECTED]





RE: 2 parameter finder finding wrong thing

2001-07-09 Thread Jeff Schnitzer

EJB-QL is not yet implemented in Orion.  Try this:

http://www.c2.com/cgi/wiki?OrionServerSpecSupport

Note that Orion will automatically create finders with a single
parameter that corresponds to the name of a cmp field.  Otherwise you
have to write them yourself.

Jeff Schnitzer
[EMAIL PROTECTED]

 -Original Message-
 From: Kit Cragin [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 08, 2001 10:30 AM
 To: Orion-Interest
 Subject: 2 parameter finder finding wrong thing
 
 I am using EJB 2.0 and have a finder method that takes 2 parameters
(e.g.
 the WHERE clause looks something like WHERE columnOne = ?1 AND
columnTwo
 =
 ?2).
 
 No matter what I do, it does not return the right entity. I have tried
 single-object return, Collection return, narrowing, not narrowing,
 checking
 parameters, etc.
 
 I am running Orion 1.4.7 on HypersonicSQL for my testbed. Any ideas?
 
 Kit Cragin
 VP of Product Development
 Mongoose Technology, Inc.
 www.mongoosetech.com
 





RE: communication among ejbs in different applications

2001-07-09 Thread Juan Lorandi (Chile)

first, let's get one thing out of the way:

'parent' attribute is a JNDI facility, no more, no less.

there still are separate containers for each app (this may not be useful
in all apps, specially since transactions may not function as expected)
it allows for JNDI properties to propagate BOTH ways (they always propagate
from father to son, default father being the default-app)

Now, this is where I was aiming to:

have apps A, B deployed; do not use parent attribute.

connect A  B apps using JNDI parameterized contexts (see connecting from
applet, application in www.orionsupport.com)

Pray for correct transaction enroling/2PC.

Juan Pablo

PS: Are you sure these errors you get are provoked by each App correctly
'seeing' the other?
the dump looks like a bug in orion's JMS implementation

 -Original Message-
 From: Robert Ren [mailto:[EMAIL PROTECTED]]
 Sent: Lunes, 09 de Julio de 2001 13:47
 To: Orion-Interest
 Subject: RE: communication among ejbs in different applications
 
 
 Hi,Juan:
 Thank you for your suggestion.
 Do you think this kind of calls will violate any J2EE specs? 
 I mean that one
 ejb in parent  application should have one container, and the 
 ejbs in child
 app should have thire own container. So, the question: does 
 this kind call
 violate any container specs?
 It's pretty interesting, in one ejb of the parent app, when a 
 new context
 initialized, I already saw the all ejbs in child app, but if I try to
 instance one of them, the ejb got removed, and the server 
 complained that
 the class is not defined, although, I put the .jar file 
 including all class
 in the classpath and import the ejb's remote and home 
 interface also.  The
 error is following:
 
 The lookup is=com.evermind.naming.MapNamingEnumeration@28c19b
 the Name is =com.qmarkets.mas.commerce.ejb.CommerceService
 
 the Name is =com.qmarkets.mas.attachments.ejb.AttachmentService
 
 the Name is =com.qmarkets.mas.product.ejb.ProductService
 
 the Name is =com.qmarkets.mas.user.ejb.UserService
 
 the Name is =com.qmarkets.mas.contact.ejb.ContactService
 
 the Name is =com.qmarkets.mas.deliveryorder.ejb.DeliveryOrderService
 
 the Name is =com.qmarkets.mas.mlcaller.ejb.MLCaller
 
 the Name is =java:comp
 
 the Name is =com.qmarkets.mas.subscriber.ejb.SubscriberService
 
 the Name is =com.qmarkets.mas.object.ejb.ObjectService
 
 the Name is =com.qmarkets.mas.permissions.ejb.PermissionService
 
 the  ref object is
 Call MLQListenerBean.ejbRemove()
 MsgReceiverStartup.onMessage: RemoteException was thrown
 com.evermind.server.rmi.OrionRemoteException: Transaction was 
 rolled back:
 java.
 lang.NoClassDefFoundError: com.qmarkets.mas.user.ejb.UserServiceHome
 at
 MLQListener_StatelessSessionBeanWrapper2.onMessage(MLQListener_Statel
 essSessionBeanWrapper2.java:83)
 at
 com.qmarkets.ml.qlistener.client.QListenerClient.onMessage(QListenerC
 lient.java:103)
 at
 progress.message.jclient.Session.ew_(progress/message/jclient/Session
 .java:1313)
 at
 progress.message.jclient.QueueSession.run(progress/message/jclient/Qu
 eueSession.java:623)
 at
 progress.message.jclient.sl.run(progress/message/jclient/Session$Sess
 ionThread.java:1240)
 
 Nested exception is:
 java.lang.NoClassDefFoundError: 
 com.qmarkets.mas.user.ejb.UserServiceHome
 at
 com.qmarkets.ml.qlistener.ejb.MLQListenerBean.class$(MLQListenerBean.
 java:23)
 at
 com.qmarkets.ml.qlistener.ejb.MLQListenerBean.onMessage(MLQListenerBe
 an.java:89)
 at
 MLQListener_StatelessSessionBeanWrapper2.onMessage(MLQListener_Statel
 essSessionBeanWrapper2.java:53)
 at
 com.qmarkets.ml.qlistener.client.QListenerClient.onMessage(QListenerC
 lient.java:103)
 at
 progress.message.jclient.Session.ew_(progress/message/jclient/Session
 .java:1313)
 at
 progress.message.jclient.QueueSession.run(progress/message/jclient/Qu
 eueSession.java:623)
 at
 progress.message.jclient.sl.run(progress/message/jclient/Session$Sess
 ionThread.java:1240)
 
 Thanks!
 
 Rob
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi
 (Chile)
 Sent: Friday, July 06, 2001 12:43 PM
 To: Orion-Interest
 Subject: RE: communication among ejbs in different applications
 
 
 Robert, the parent attribute is only available in Orion AFAIK.
 
 All you need is to setup wire protocols properly. Most are 
 RMI based (like
 JRMP), and also, each app server uses its own (ORMI, for instance).
 Similary, IIOP may be available.
 
 HTH
 
 JP
 
  -Original Message-
  From: Robert Ren [mailto:[EMAIL PROTECTED]]
  Sent: Viernes, 06 de Julio de 2001 13:43
  To: [EMAIL PROTECTED]
  Subject: communication among ejbs in different applications
 
 
  Hi,
  Is there anybody had the experience to use EJB A in App 1 to
  call EJB B in App 2, as long as EJB C in App 2 to call EJB D
  in App 1. The half of the solution is to use the parent
  attribute in application tag ( 

com.evermind.sql.OrionCMTConnection

2001-07-09 Thread Jin Tong



I have 
a simple client calling into EJB component which make connection to Oracle 
DB.
After 
sql operation fail(intentionally to test transaction roll back), it came back 
with following error:
Error 
deserializing session: java.io.WriteAbortedException: Writing aborted by 
exception; java.io.NotSerializableException: 
com.evermind.sql.OrionCMTConnection
Has 
anyone this kind of error before? Seems like that deserializing Connection 
failed.


Thanks

Jin


Re: Cluster configuration

2001-07-09 Thread Gurinder Randhawa




I have managed to setup a cluster-island with a loadbalancer. I have a
web-app that is shared.
I am running Apache in front of Orion. I can start everything fine except
for 2nd instance of orion in
cluster i get the error:

Error starting JMS-Server: Unable to bind socket: Address already in use
Error starting RMI-Server: IO Error: Address already in use
Warning: Error reading transaction-log file
(/oracle/app/oracle/product/oas9i/Apache/j2ee_2/home/persistence/transactio
n.state) for recovery: premature end of file

Where can i change the ports for these or how would i resolve this ? Also i
 have apache running on port 80 and
i would like to run loadbalancer on another port. Would i specify this port
 in the loadbalancer.xml file or
at startup command line for loadbalancer ? Is it recommended to run
loadbalancer on port 80 ?

Cheers

Thanks

Gurinder Randhawa
Travel Underwriters
IS department
Web Programmer/Analyst




Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 02:14:04 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  Re: Cluster configuration




A cluster-island is just a cluster, because session replication doesn't
happen between cluster-islands, just inside it. So yes, you need at least 2
instances per cluster-island, and yes you install 2 separate orion
instances
with the same cluster id in the web-site.xml. I didn't run any benchmarks
on
my cluster setup, it was more just a proof-of-concept. Is there a reason
you
want 2 cluster-islands? because they won't share session information with
eachother.

Jeff.

Gurinder Randhawa wrote:

 One other question i had was...when you setup a cluster-island
 do you install 2 seperate orion instances with same cluster id in
 web-site.xml ?

 We are setting up 2 cluster-islands witha load balancer running behind
 apache
 on same host (one physical sun box) for one web-application. So to add to
 my question above
 for 2 cluster-islands do we need to run 4 instances of orion or just 2 ?
 The documentation wasn't
 clear to me on this

 I have it working for a single instance of orion but need to do
clustering
 for scalability and
 fault tolerance issues.  How does this perform ?

 Thanks

 Gurinder Randhawa
 Travel Underwriters Group Of Companies
 IS Department, Senior programmer/analyst

 Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 07:31:33 AM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  Re: Cluster configuration

 There's a very nice how-to at:
 http://www.orionserver.com/docs/http-clustering.html

 Jeff.

 Alessandro Fustini wrote:

   Hi,
  I woul like configure a Orion cluster with 2 PC.
  Is it only necessary change orion/application-deloyments/
  default/defaultWebApp/orion-web.xml file with
  cluster-config / add ??
 
  Thanks a lot for all help
 
 
 
  Alessandro Fustini
  Java Developer
 
  e-mail: [EMAIL PROTECTED]

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com
















Re: Cluster configuration

2001-07-09 Thread Gurinder Randhawa




In regards to my last email i have changed RMI and JMS ports fine and i got
rid of Address
already in use message upon Orion instance startup.

However i still cannot shutdown the processes properly. I have also noticed
multiple Loadbalancer
processes running, I don't know how though ?

Any ideas or suggestions on starting and shutting down orion instances and
loadbalancer on same
physical host ?

Thanks

Gurinder




Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 02:14:04 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  Re: Cluster configuration




A cluster-island is just a cluster, because session replication doesn't
happen between cluster-islands, just inside it. So yes, you need at least 2
instances per cluster-island, and yes you install 2 separate orion
instances
with the same cluster id in the web-site.xml. I didn't run any benchmarks
on
my cluster setup, it was more just a proof-of-concept. Is there a reason
you
want 2 cluster-islands? because they won't share session information with
eachother.

Jeff.

Gurinder Randhawa wrote:

 One other question i had was...when you setup a cluster-island
 do you install 2 seperate orion instances with same cluster id in
 web-site.xml ?

 We are setting up 2 cluster-islands witha load balancer running behind
 apache
 on same host (one physical sun box) for one web-application. So to add to
 my question above
 for 2 cluster-islands do we need to run 4 instances of orion or just 2 ?
 The documentation wasn't
 clear to me on this

 I have it working for a single instance of orion but need to do
clustering
 for scalability and
 fault tolerance issues.  How does this perform ?

 Thanks

 Gurinder Randhawa
 Travel Underwriters Group Of Companies
 IS Department, Senior programmer/analyst

 Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 07:31:33 AM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  Re: Cluster configuration

 There's a very nice how-to at:
 http://www.orionserver.com/docs/http-clustering.html

 Jeff.

 Alessandro Fustini wrote:

   Hi,
  I woul like configure a Orion cluster with 2 PC.
  Is it only necessary change orion/application-deloyments/
  default/defaultWebApp/orion-web.xml file with
  cluster-config / add ??
 
  Thanks a lot for all help
 
 
 
  Alessandro Fustini
  Java Developer
 
  e-mail: [EMAIL PROTECTED]

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com
















RE: Cluster configuration

2001-07-09 Thread elephantwalker


a resend...

as far as stopping orion, the usual methods apply

java -jar admin.jar
ormi://localhost:the_rmi_port_number_for_the_instance_to_shutdown admin
somepassword -shutdown force

as for the loadbalancer, kill -s 9 pid seems to be the only thing that
works.


-Original Message-
From: elephantwalker [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 09, 2001 6:21 PM
To: Orion-Interest
Subject: RE: Cluster configuration


Its not the orion port, its the ormi, or rmi port that's complaining and the
jms port that's complaining. If you set up more than one instance of orion
on the same machine, you will need to change the jms and rmi port's in their
respective config files so that there is no conflict.

I think 23791 is the rmi port by default, and 9127 is the jms port by
default. You can change these by changing the config/rmi.xml and
config/jms.xml file settings. See these links for the docs:

http://www.orionserver.com/docs/jms.xml.html
http://www.orionserver.com/docs/rmi.xml.html

regards,

the elepantwalker





-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
Randhawa
Sent: Monday, July 09, 2001 4:36 PM
To: Orion-Interest
Subject: Re: Cluster configuration





I have managed to setup a cluster-island with a loadbalancer. I have a
web-app that is shared.
I am running Apache in front of Orion. I can start everything fine except
for 2nd instance of orion in
cluster i get the error:

Error starting JMS-Server: Unable to bind socket: Address already in use
Error starting RMI-Server: IO Error: Address already in use
Warning: Error reading transaction-log file
(/oracle/app/oracle/product/oas9i/Apache/j2ee_2/home/persistence/transactio
n.state) for recovery: premature end of file

Where can i change the ports for these or how would i resolve this ? Also i
 have apache running on port 80 and
i would like to run loadbalancer on another port. Would i specify this port
 in the loadbalancer.xml file or
at startup command line for loadbalancer ? Is it recommended to run
loadbalancer on port 80 ?

Cheers

Thanks

Gurinder Randhawa
Travel Underwriters
IS department
Web Programmer/Analyst




Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 02:14:04 PM

Please respond to Orion-Interest [EMAIL PROTECTED]

To:   Orion-Interest [EMAIL PROTECTED]
cc:(bcc: Gurinder Randhawa/Travel Underwriters)
Subject:  Re: Cluster configuration




A cluster-island is just a cluster, because session replication doesn't
happen between cluster-islands, just inside it. So yes, you need at least 2
instances per cluster-island, and yes you install 2 separate orion
instances
with the same cluster id in the web-site.xml. I didn't run any benchmarks
on
my cluster setup, it was more just a proof-of-concept. Is there a reason
you
want 2 cluster-islands? because they won't share session information with
eachother.

Jeff.

Gurinder Randhawa wrote:

 One other question i had was...when you setup a cluster-island
 do you install 2 seperate orion instances with same cluster id in
 web-site.xml ?

 We are setting up 2 cluster-islands witha load balancer running behind
 apache
 on same host (one physical sun box) for one web-application. So to add to
 my question above
 for 2 cluster-islands do we need to run 4 instances of orion or just 2 ?
 The documentation wasn't
 clear to me on this

 I have it working for a single instance of orion but need to do
clustering
 for scalability and
 fault tolerance issues.  How does this perform ?

 Thanks

 Gurinder Randhawa
 Travel Underwriters Group Of Companies
 IS Department, Senior programmer/analyst

 Jeff Hubbach [EMAIL PROTECTED] on 07/06/2001 07:31:33 AM

 Please respond to Orion-Interest [EMAIL PROTECTED]

 To:   Orion-Interest [EMAIL PROTECTED]
 cc:(bcc: Gurinder Randhawa/Travel Underwriters)
 Subject:  Re: Cluster configuration

 There's a very nice how-to at:
 http://www.orionserver.com/docs/http-clustering.html

 Jeff.

 Alessandro Fustini wrote:

   Hi,
  I woul like configure a Orion cluster with 2 PC.
  Is it only necessary change orion/application-deloyments/
  default/defaultWebApp/orion-web.xml file with
  cluster-config / add ??
 
  Thanks a lot for all help
 
 
 
  Alessandro Fustini
  Java Developer
 
  e-mail: [EMAIL PROTECTED]

 --
 Jeff Hubbach
 Internet Developer
 New Media Designs, Inc.
 www.nmd.com

--
Jeff Hubbach
Internet Developer
New Media Designs, Inc.
www.nmd.com


















Please help me

2001-07-09 Thread waheed rahman

Hi 
please help me. How i can setup servlet directory in
my  new application.Please let me know where i have to
save my servlets files if my new application directory
is like this ...

/orion/applications/shoppingmall/.


I will be thankfull in this regards.Expecting your
positive reply.Thanks in advance for your prompt
reply.
Regards
waheed

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/