Re: SV: LDAP and EJBs

2001-07-10 Thread Joni Suominen

Thanks Patrik!
There's one issue which still puzzles me. Do I have to write my own
rollback code for LDAP operations when a transaction rolls back? I
browsed the JNDI API and SPI and I couldn't figure out if JNDI somehow
supports transactions (like JDBC does with begin(), rollback() and
commit()).

If my code is following for instance:

UpdatingFacadeEJB implements SessionBean {
public void doTheUpdate() {
   ldapDelegate.writeLdapEntry();
   rdbmsDelegate.writeRdbmsRow();
}
}

Let's say that ldapDelegate.writeLdapEntry() succeeds but
rdbmsDelegate.writeRdbmsRow() fails by throwing an EJBException. In this
case can the container's transaction manager somehow rollback the LDAP
operations done earlier in ldapDelegate.writeLdapEntry() method?

-- 
Joni
[EMAIL PROTECTED]


 Patrik Andersson wrote:
 
 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]




Registering EJB's on the fly

2001-07-10 Thread Koster, K.J.

Dear All,

I'm wondering how I can register EJB's on the fly in Orion. Say I have a
bean that is registered and known. As the program runs I decide I also want
it registered under a different name in the JNDI registry.

thus, in pseudo code:
BeanBHome b = lookup(ejb/BeanB); // ok, fine
BeanBHome c = lookup(ejb/BeanC); // *agk!* fails
jndi.register(ejb/BeanC, BeanBHome);
BeanBHome c = lookup(ejb/BeanC); // ah, now it works!

Is this possible?

Kees Jan


 You are only young once,
   but you can stay immature all your life.





How to deploy Java Pet Store Admin module?

2001-07-10 Thread Ganasen Gounden

Hello

Has anyone managed to deploy the Petstore 1.1.2 Admin module on Orion 1.5.2? I require 
the steps for this deployment. We have the Petstore module working just fine as per 
the patched instructions from the Oracle oc4j site.

Thanks 




**
Any unauthorized use and interception of this e-mail is illegal.
If this e-mail is not intended for you, you may not copy, 
distribute or disclose the contents to anyone.  This e-mail 
does not give rise to any binding legal obligations upon the
City of Cape Town unless the City of Cape Town subsequently
confirms the content in writing non-electronically.  This e-mail
may be confidential, legally privileged or otherwise protected
by law.  Unauthorised disclosure or copying of any or all of it
may be unlawful. If you receive this e-mail in error please notify
the sender and delete the message

**




RE: Configuring Orion+IIS

2001-07-10 Thread Marcel Schutte

That is not yet possible, you'll have to wait for the AJP13 support that
orion announced with version 1.4.8. Currently this is disabled due to
'pending issues'.

Marcel

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Antonio
 Vazquez
 Sent: Tuesday, July 10, 2001 12:50 PM
 To: Orion-Interest
 Subject: RV: Configuring Orion+IIS
 Importance: High



 Hi all,
 I´m a newbie in Orion and I have a question.
 How can I configure Orion+IIS like Tomcat+IIS? That is possible.

 Best regards

 Antonio







HOT deployment ??

2001-07-10 Thread Eddie

I still don't understand when my changes are NOT picked up ??
During development I don't have a ear file, I just have a dir with all the
classes/xml files.
Untill now, when I change something in an EJB class, I have to stop orion,
delete the deployment dir en start again
Why like this ?? As if I do it the other ways, like:
+ using the admin.jar tool, something like: java -jar /opt/Orion/admin.jar
ormi://localhost admin pass -deploy -file
/opt/Orion/applications/sgs.ear -deploymentName sgs
+ touching the xml files in the META dir (the orion signals an update).
+ Removing the deployment dir during operation... it gives Java Exception:
Broken pipe errror...

If I do it like above it ofter occurs that it doesn't pick up my changes.
Also when I replace a class that is not part of the EJB's, which it loaded
during runtime, it still keeps on using the old class... what am I doing
wrong It can't believe that is can't be done more simple!!??

BTW: when I do a:
++ java -jar /opt/Orion/admin.jar ormi://localhost admin pass -restart, I do
get:
--
Recovery completed, 0 connections committed and 0 rolled back...
Orion/1.5.1 initialized

Restarting...
Error starting JMS-Server: Unable to bind socket: Address already in use
Error starting RMI-Server: IO Error: Address already in use
-

++ The shutdown command does work however.

So please some advices on what I am doing wrong, and how I should do it (do
I needs to change some JVM settings ??).
I am running RedHat 7.0.

Eddie




FYI: XML parsing and orion server woes solved

2001-07-10 Thread Simon Harris



I have discovered a neat way to have my cake and 
eat it too.

The problem: Orion is configured (via an include in 
the jar file) to use crimson. Crimson doesn't support schema and adding xerces 
to the lib directory makes no difference at all. I didn't want to hack the 
orion.jar file as this will be wiped out the next time I upgrade.

The solution: Download the latest xerces.jar from 
http://xml.apache.organd replace it in 
the orion directory. Next replace the crimson.jar file in the orion directory 
with the one attached to this message.

Voila!

All I did was make a crimson.jar file that contains 
a manifest file with an include for xerces.jar and two JAXP config files that 
setup xerces as the default JAXP parser.

Really orionserver should probably just come 
configured to use the latest xerces anyway but until that time, here is a 
relatively elegant work-around.

Hope this helps.

Regards,

Simon.
 crimson.jar


rmi question

2001-07-10 Thread Wendell Nichols

I have found that instantiating a class with a static member to manage a
pool of application connections (to a proprietary host app) does not
work, because passivated beans, when activated do not get the static
member from the current running vm, but an empty one.  That's life in
EJB servers and I'm not confused about that.  (just using the static
class violates the EJB standard... ).

After reading a lot of email archives I gather that it is necessary to
create an RMI server to accomplish a single interface to this object fro
all the EJB's in the app (potentially clustered).  That's nice, but I
have to know how to do several things:
-package the rmi server component in the ear
-start the server when the app starts or start it from within the
first session bean.

Is this possible?  If I implement an RMI server will I now have a
nightmare of configuration requirements to get my app to work on a
variety of servers?

Thanks
Wendell Nichols





Startup script for HP-UX

2001-07-10 Thread Joni Suominen

Hi!
Does any of you have a proper Orion startup script for HP-UX? I found a
one from Orion support which works fine in Linux but not in HP-UX.

I also have problems to shutdown Orion in HP-UX. Nothing happens when I
issue:
/opt/java1.3/bin/java -jar admin.jar ormi://localhost admin passwd
-shutdown force

-- 
Joni
[EMAIL PROTECTED]




Re: Please help me

2001-07-10 Thread Jeff Hubbach

You need to put all your classes for your application (including
servlets) under the META-INF/classes directory. In your example, this
would be located at:

/orion/applications/shoppingmall/META-INF/classes

jeff.

waheed rahman wrote:

 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/

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







RE: xerces conflict (and a hack solution).

2001-07-10 Thread Simon Harris



I have discovered a neat way to have my cake and 
eat it too.

The problem: Orion is configured (via an include in 
the jar file) to use crimson. Crimson doesn't support schema and adding xerces 
to the lib directory makes no difference at all. I didn't want to hack the 
orion.jar file as this will be wiped out the next time I upgrade.

The solution: Download the latest xerces.jar from 
http://xml.apache.organd replace it in 
the orion directory. Next replace the crimson.jar file in the orion directory 
with the one attached to this message.

Voila!

All I did was make a crimson.jar file that contains 
a manifest file with an include for xerces.jar and two JAXP config files that 
setup xerces as the default JAXP parser.

Really orionserver should probably just come 
configured to use the latest xerces anyway but until that time, here is a 
relatively elegant work-around.

Hope this helps.

Regards,

Simon.
 crimson.jar


EJB2.0

2001-07-10 Thread Chris Roffler

Does anybody know when we can expect to see the EJB2.0
features like , ejbSelect, local interfaces etc in
Orion ?

Thanks
Chris 

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




Re: Please help me

2001-07-10 Thread Jeff Hubbach

Sorry, typo. it's WEB-INF, not META-INF.

Jeff.

Jeff Hubbach wrote:

 You need to put all your classes for your application (including
 servlets) under the META-INF/classes directory. In your example, this
 would be located at:

 /orion/applications/shoppingmall/META-INF/classes

 jeff.

 waheed rahman wrote:

  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/

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

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







help...Error deserializing session

2001-07-10 Thread John Miller



Hi,

I have written an 
EJB which does a pretty simple Oracle select and am getting this error, when the bean is instantiated for the first 
time:

Error deserializing session: 
java.io.WriteAbortedException: Writing aborted by exception; 
java.io.NotSerializableException: com.evermind.sql.ak

I have no idea what 
might be causing this, so any suggestions or ideas you might have would be a 
great help.

Thanks,

Johnny


http://www.iii.co.uk 

Interactive Investor International is a leading UK Internet personal 

finance service that provides individuals with the capability to identify, 

compare, monitor and buy online a number of financial products and services. 

Interactive Investor Trading Limited, a subsidiary of Interactive Investor 

International plc, is regulated by the SFA.


RE: communication among ejbs in different applications

2001-07-10 Thread Robert Ren

Hi, Juan:
Thank for your help.
In fact, recently, we tested several combinations of App a and App b.
( Becasue the parent attribute is only for Orion, we gave it up.) And, also
we tested the context solution by using JNDI.
The results are :
Senario 1:
If we put the appA.jar in the classPath of appB, and put the appB.jar in the
classpath of appA, we can pass the compiling sucessfully, but got Class not
defined error when we tried to initialize a context in one EJB in App A to
look up the EJB in App B;
If we forced the App A to jar with App B, so the appA-ejb.jar file contains
both App A classes and App B classes. In this way, we did see the all ejbs
in App B via context, but when we cast it, we got CastException error
message.
Still the old question, can we make this kind call?

Thanks!

Rob


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


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
 

MDB and Durable Subscription

2001-07-10 Thread Trujillo, Kris


Is it possible with Orion to setup a MDB that has a durable subscription?
If yes, where are the configuration settings to specify the userid of the
subscriber?




RE: does orion cache or store property resources anywheres

2001-07-10 Thread steve . d . meacham

I continue to receive this message over and over and over.  Is anyone 
else having the same problem?
 
Steven

-Original Message-
From: angshumand [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 2:29 AM
To: orion-interest
Cc: angshumand
Subject: RE: does orion cache or store property resources anywheres




I've had this problem numerous times with Orion as well as Apache/Jserv 
- you need to make sure you're not going through a proxy-cache... and 
you gotta delete the contents of your browser cache. 

-Original Message-
From: G.L. Grobe [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 5:17 AM
To: Orion-Interest
Subject: does orion cache or store property resources anywheres


Below is a response I got for a problem (posted below that) in which 
I believe Orion may be doing something weird w/ my properties files in 
the WEB-INF/classes dir. If I delete the property file, Orion is still 
finding it (thought it's not there). I've triple checked everywheres 
and don't have any of these files within the classpath or anywheres 
else that it would be getting confused with.
 
Any help much appreciated.
 
-- this is the response to my original post 

 
 I got exactly the same error in VAJ-Tomcat environment when I first 
time
load my own project after running the struts-examples successfully.

It turned out that Tomcat mixed up the property files that are loaded
into its environment and could not figure out who is who.

Fix:

Leave only the project you are working with in Tomcat's classpath
and projectpaths.

For me in VAJ, I have to also delete the JSP compiled servlet project
to clean it up.

 this was my original post 
-

I've dug into the struts code and am posting this problem again w/ a 
little 
more info. I'm using Orion 1.4.7.

500 Internal Server
Error javax.servlet.jsp.JspException: Missing message for key 
main.title at
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java,
Compiled Code) at /index.jsp._jspService(/index.jsp.java, Compiled 
Code) at 
...

According to the above error and this snippit of code taken from the 
4-20 
tar.gz source, the properties file that my web-app is looking for is 
being 
found and all seems to be setup/configured correctly, else the error 
would 
be about messageTag.resources (not finding the property file). I've 
also 
included my properties (cais.properties) file below with this key 
included 
in it.

The only thing else I think that can be wrong is the value of the args 
array 
just before the Exception is thrown and I was wondering if anyone could 
tell 
me what those might be.

The line with 'String message = resources.getMessage(locale, key, 
args);' 
must be returning null and so this is giving me the above error, but 
I'm not 
sure what's being stuffed into it or where it comes from.

Any help much appreciated.

- MessageTag.java 

   public int doStartTag() throws JspException 

    // Acquire the resources object containing our messages
    MessageResources resources = (MessageResources)
    pageContext.getAttribute(bundle, PageContext.APPLICATION_SCOPE);
    if (resources == null)
    throw new JspException
   (messages.getMessage(messageTag.resources, bundle));

    // Calculate the Locale we will be using
    Locale locale = null;
    try 
    locale = (Locale)
   pageContext.getAttribute(localeKey, PageContext.SESSION_SCOPE);
    catch (IllegalStateException e) // Invalidated session
    locale = null;
    
    if (locale == null)
    locale = defaultLocale;

    // Construct the optional arguments array we will be using
    Object args[] = new Object[5];
    args[0] = arg0;
    args[1] = arg1;
    args[2] = arg2;
    args[3] = arg3;
    args[4] = arg4;

    // Retrieve the message string we are looking for
    String message = resources.getMessage(locale, key, args);
    if (message == null)
    throw new JspException
   (messages.getMessage(messageTag.message, key));


-- ~WEB-INF/web.xml 
servlet
   servlet-nameaction/servlet-name
   
servlet-classorg.apache.struts.action.ActionServlet/servlet-class
   init-param
  param-nameapplication/param-name
  param-valuecais/param-value
   /init-param
    ...

-- ~/index.jsp 
%@ page language=java %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %

html:html
head
title
    bean:message key=main.title /
/title

-- ~WEB-INF/classes/cais.properties 
# C.A.I.S. Resource Bundle
main.title=CAIS
main.master=Master View
main.detail=Detailed View









Troubles with https....

2001-07-10 Thread Geoff Marshall

Can anyone explain the principles or theory of operation of https within
Orion?

I have a site running on one machine under Orion that uses https.  No
problem, everything works fine.

I tarballed the whole shebang and expanded it onto machine two. Machine two
has 4 Network Interfaces, thus 4 IP addresses.  I'm running Orion on the
second of 4 IP addresses.  The entire site works, but I can't hit it via
https.  

I don't think it's an Orion configuration issue (since the same config files
work on machine 1) , but in any event, I'm doing exactly what's described on
the orionsupport pages.

Can anyone give me some insight?  I've run out of ideas.

BTW, yes, the versions are the same on the two machines.

Thanks!





RE: communication among ejbs in different applications

2001-07-10 Thread Juan Lorandi (Chile)

this is what I have in mind

yourapp.ear
|
+yourejb1.jar
+yourejb2.jar


If ejb-link's are defined correctly, everything should work (works for me)

 -Original Message-
 From: Robert Ren [mailto:[EMAIL PROTECTED]]
 Sent: Martes, 10 de Julio de 2001 18:05
 To: Orion-Interest
 Subject: RE: communication among ejbs in different applications
 
 
 Hi, Juan:
 Thank for your help.
 In fact, recently, we tested several combinations of App a and App b.
 ( Becasue the parent attribute is only for Orion, we gave it 
 up.) And, also
 we tested the context solution by using JNDI.
 The results are :
 Senario 1:
 If we put the appA.jar in the classPath of appB, and put the 
 appB.jar in the
 classpath of appA, we can pass the compiling sucessfully, but 
 got Class not
 defined error when we tried to initialize a context in one 
 EJB in App A to
 look up the EJB in App B;
 If we forced the App A to jar with App B, so the appA-ejb.jar 
 file contains
 both App A classes and App B classes. In this way, we did see 
 the all ejbs
 in App B via context, but when we cast it, we got CastException error
 message.
 Still the old question, can we make this kind call?
 
 Thanks!
 
 Rob
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Juan Lorandi
 (Chile)
 Sent: Monday, July 09, 2001 2:20 PM
 To: Orion-Interest
 Subject: RE: communication among ejbs in different applications
 
 
 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
  
 

RE: help...Error deserializing session

2001-07-10 Thread Jin Tong



 I am currently getting 
same error while connecting to Oracle. Looks like they all happened when 
connecting to Oracle.


  -Original Message-From: John Miller 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 10, 2001 1:41 
  PMTo: Orion-InterestSubject: help...Error deserializing 
  session
  Hi,
  
  I have written an 
  EJB which does a pretty simple Oracle select and am getting this error, when the bean is instantiated for the first 
  time:
  
  Error deserializing session: 
  java.io.WriteAbortedException: Writing aborted by exception; 
  java.io.NotSerializableException: com.evermind.sql.ak
  
  I have no idea 
  what might be causing this, so any suggestions or ideas you might have would 
  be a great help.
  
  Thanks,
  
  Johnny
  http://www.iii.co.uk 
  Interactive Investor International is a leading UK 
  Internet personal 
  finance service that provides individuals with the 
  capability to identify, 
  compare, monitor and buy online a number of 
  financial products and services. 
  Interactive Investor Trading Limited, a subsidiary 
  of Interactive Investor 
  International plc, is regulated by the 
  SFA.


connection pool question

2001-07-10 Thread Simon Evans

i have a connection pool defined and its works fine. i was wondering if
there was any setting for the pool size, or max size or things like that.

is there any way to query the pool, like see how many connections there are?

my driver is not a pooled driver, so does orion create a pool? what if i use
a pooling driver that has connection pooling build in?

thanks
simon






RE: help...Error deserializing session

2001-07-10 Thread Andre Vanha

Sounds like you have a stateful session bean that has a member variable
which is of a non-serializable type, from the looks of it, some sort of JDBC
object, such as Connection or Statement.  When your bean is activated or
passivated, it's trying to serialize or deserialize that member variable
causing the error.  Declare the offending variable as transient, and ensure
that you initialize the variable before you use it in your code.
 
Andre
 
 
 -Original Message-
From: John Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 11:41 AM
To: Orion-Interest
Subject: help...Error deserializing session


Hi,
 
I have written an EJB which does a pretty simple Oracle select and am
getting this error, when the bean is instantiated for the first time:
 
Error deserializing session: java.io.WriteAbortedException: Writing aborted
by exception; java.io.NotSerializableException: com.evermind.sql.ak
 
I have no idea what might be causing this, so any suggestions or ideas you
might have would be a great help.
 
Thanks,
 
Johnny


http://www.iii.co.uk 

Interactive Investor International is a leading UK Internet personal 

finance service that provides individuals with the capability to identify, 

compare, monitor and buy online a number of financial products and services.


Interactive Investor Trading Limited, a subsidiary of Interactive Investor 

International plc, is regulated by the SFA.





Apache and Orion

2001-07-10 Thread Gurinder Randhawa





Is anyone using Apache as a front end to Orion. I find that using mod_proxy
  to forward web application requests

is quite slow compared to using tomcat. Does anyone know if there is
  something else i can use beside mod_proxy

for Apache to serve static pages and orion to serve my web applications ?



I do need to use Apache as a front end server.

I am also using a loadbalancer and a cluster for my orion setup behind
  apache.



Any help would be much appreciated



Gurinder






RE: Apache and Orion

2001-07-10 Thread elephantwalker

Have you tried using the tunnelServlet to pass all static requests to
Apache? Its a little bass-ackwards, but orion could be faster than apache
in this respect.

Also, are you running orion, the loadbalancer,  and apache on the same
machine? This could be just a load issue.

Lastly, orion is generally faster than apache at serving up static content.
There are very good reasons for using apache for static content, though,
that have nothing to do with speed. (For example, you have one ssl cert for
apache, and you don't want to pay for another one for orion.).

regards,

the elephantwalker

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Gurinder
Randhawa
Sent: Tuesday, July 10, 2001 7:36 PM
To: Orion-Interest
Subject: Apache and Orion






Is anyone using Apache as a front end to Orion. I find that using mod_proxy
  to forward web application requests

is quite slow compared to using tomcat. Does anyone know if there is
  something else i can use beside mod_proxy

for Apache to serve static pages and orion to serve my web applications ?



I do need to use Apache as a front end server.

I am also using a loadbalancer and a cluster for my orion setup behind
  apache.



Any help would be much appreciated



Gurinder