RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda
]. The context is the same context that is used for correctly accessing other resources such as looking up EJBs. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com

Re: RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda
... -Original Message- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 19, 2002 8:19 AM To: Orion-Interest Subject: RMI client accessing JMS Topic Hello, Is it possible for a RMI client (com.evermind.server.rmi.RMIInitialContextFactory) to access a JMS

Re: RMI client accessing JMS Topic

2002-03-19 Thread Vidur Dhanda
along with jndi.properties it may help in further debugging. - -kesav kumar - - Original Message - From: Vidur Dhanda [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Tuesday, March 19, 2002 8:19 AM Subject: RMI client accessing JMS Topic Hello, Is it possible

Accessing Orion EJB from Weblogic JSP

2002-03-07 Thread Vidur Dhanda
, but that does not help. Thanks, Vidur -- Vidur Dhanda Epistemic Corporation tel: 617/566-1252 fax: 509/693-1248 cell: 617/821-7115 ICQ: 129193878 [EMAIL PROTECTED] www.epistemic.com

Re: Shitty ORMap implementation in 1.5.1

2001-05-28 Thread Vidur Dhanda
: The com.evermind.server.java.ORMap does NOT implement in the correct way the java.util.Map interface. So... One is UNABLE to get the KeySet, or ValueCollection. What the heck is that?? Sincerly dissolved: Lachezar :( -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active

Searching for a web host

2001-05-26 Thread Vidur Dhanda
Hi, Can anyone recommend a web hosting service in the US that would be suitable for running Orion. TIA, Vidur

retrieving specific version of Orion

2001-05-22 Thread Vidur Dhanda
Is it possible to retrieve a specific version of Orion with autoupdate or by any other means. I need 1.5.0 and the latest is 1.5.1. Thanks. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com

Re: orion 1.5.1 and Map-CMP

2001-05-22 Thread Vidur Dhanda
? Or is that an error in 1.5.1? Does anybody else experience this problem or is it just me? -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com

Re: HELP! 1.4.5 and JMS

2001-05-17 Thread Vidur Dhanda
(to start orion server) and if your message size is more than 64K, you will have similar problem. --venkat Vidur Dhanda vdhanda@active-solutions-To: Orion-Interest [EMAIL PROTECTED] inc.com cc

Solved: HELP! 1.4.5 and JMS

2001-05-17 Thread Vidur Dhanda
I think the problem in both 1.4.5 and 1.4.8 is that once a TopicConnection is started, calling createSubscriber() hangs. The simple workaround is to stop the connection, create the subscriber and start the connection again. I'm filing this as a bug. Vidur Vidur Dhanda wrote: Please help! I

HELP! 1.4.5 and JMS

2001-05-16 Thread Vidur Dhanda
to try and get 1.4.8 to work. TIA, Vidur PS. If possible, please also cc me directly. I'm really desperate. -- Vidur Dhanda Active Solutions tel: 617/566-1252 cell: 617/821-7115 [EMAIL PROTECTED] www.active-solutions-inc.com

Basic OR mapping question

2001-05-16 Thread Vidur Dhanda
If a CMP EntityBean has a Set member (or for that matter any other Collection member) at what point is the member initialized? I sit the programmer's responsibility to initialize it in ejbCreate? Or will it be automagically initialized. I'm restricted to EJB 1.1. Thanks, Vidur -- Vidur Dhanda

Re: HELP! 1.4.5 and JMS

2001-05-16 Thread Vidur Dhanda
. - Original Message - From: Vidur Dhanda To: Kesav Kumar Cc: 'Orion-Interest' Sent: Wednesday, May 16, 2001 7:16 PM Subject: Re: HELP! 1.4.5 and JMS Hi Kesav, Thanks for the tip. I tried that with both 1.4.5 and 1.4.8. After removing the connection factory line, in 1.4.5, the client hangs

Autostarted client hangs

2001-03-20 Thread Vidur Dhanda
Hello, With 1.4.5, I'm having some timing issues with autostarted application clients. Apparently, they get invoked before Orion has fully started and therefore hang when performing a JNDI lookup. Is there a workaround? I recall reading a similar message before but can't find it now. Thanks,

JMS regression in 1.4.7

2001-03-19 Thread Vidur Dhanda
Hello, Has anyone else noticed problems with using JMS in 1.4.7. In 1.4.5 I was successfully able to subscribe to topics from application clients. In 1.4.7, the onMessage handler does not get any messages. Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active

Creating subscribers in JMS

2001-03-19 Thread Vidur Dhanda
Hello, Is it legal to call topicSession.createSubscriber(Topic) on a TopicSession that was created via topicConnection.createTopicSession(...) after the topicConnection has been started? In 1.4.5 and 1.4.7 Orion hangs at the createSubscriber call. Thanks, Vidur -- Vidur Dhanda Active

EJBUtils.cloneObject tkes up 40% of the time

2001-03-12 Thread Vidur Dhanda
Hello, I had posted a similar message a while back but never got any response. Now, it has become critical. Hopefully, someone can help me understand this. While profiling my server, I'm noticing that the server is spending approximately 40% of the time in

Uploading class file from application client

2001-03-08 Thread Vidur Dhanda
Hello, This is not an Orion specific question, but since I'm using Orion 1.4.7 I thought I'd try here. Is it possible to upload a class file from an application client? I want users to be able to implement a serializable interface, say X, and upload it to the server. The server will manage

Re: Session EJB Accessibility

2001-01-30 Thread Vidur Dhanda
, and I wish someone would chime in with a comment or two in this respect. I'm about to decompile the counter.jar example in hope of finding some clues. Jeff -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

What's going on with Orion?

2001-01-04 Thread Vidur Dhanda
Hello, This list has become awfully quiet. What's going on with Orion? There haven't been any new releases or bug fixes. Does anyone have any information? Perhaps, someone on the Orion team can give us an update. Personally, I'm getting a little concerned. Vidur

RP/Please Help: Connecting to JMS from client application

2000-12-07 Thread Vidur Dhanda
Please help! Somebody must be using JMS from a client application running on a machine different than the server. How do I configure a client to use JMS. Say, the EJB Server runs on machine A. The client runs on machine B. How does the client on machine B know the location of JMS (which

Re: RP/Please Help: Connecting to JMS from client application

2000-12-07 Thread Vidur Dhanda
it? Vidur "Luong, Tony S322" wrote: try setting the hostname in jndi.properties on machine B. e.g. java.naming.provider.url=ormi://machineA -Original Message- From: Vidur Dhanda [SMTP:[EMAIL PROTECTED]] Sent: Thursday, December 07, 2000 9:42 AM To: Orio

Weird JMS behavior with InitialContext

2000-12-07 Thread Vidur Dhanda
I just ran into a rather interesting problem. For my application, I decided to write a Swing login panel. This panel is called at client application startup and calls new InitialContext(Hashtable). Once the InitialContext is created, the application saves it for future use. And the application

Configuring JMS connection from client

2000-12-06 Thread Vidur Dhanda
Hello, I can't figure out where to specify the JMS server name for a client application. In application-client.xml I provide the resource-ref entries and resource-ref-mapping entries in orion-application-client. But where do I provide the name of the JMS server? At runtime, I can provide the

Re: Configuring JMS connection from client

2000-12-06 Thread Vidur Dhanda
Thank you for the pointer. How do I package jms.xml with the client application? Can I just put it in the same directory as orion-application.xml? And then, how can the server name be changed at runtime? The client can connect to any EJB server by specifying the server name in the properties

Re: Error in ORList (Re: byte array OR mapping...)

2000-11-28 Thread Vidur Dhanda
ually returns a serialized version of that object (usually, not always). You should probably take your byte[] and place it in a class that implements java.io.Serializable. Most of the database mappings support placing that into a blob: type-mapping="java.io.Serializable" name

Help with OR mapping

2000-11-15 Thread Vidur Dhanda
Hello, I need some help with OR mapping a CMP EntityBean. I'm not even sure how to do this in BMP. The class is called SIDDefinitions. The primary key is a class called SID and there is only one other field called definitions -- it is a List of Definition. Definition is an interface and the

Correction: Help with OR mapping

2000-11-15 Thread Vidur Dhanda
Sorry, I forgot to describe that tables that I think will be required. SIDDefinitions sidID int primary key (database generated) definiitons blob SIDName sidID name primary key SIDValue sidID int fieldName String fieldValue

EJBUtils.cloneObject

2000-11-14 Thread Vidur Dhanda
, but maybe others have noticed this and have "tricks" they can share. Thanks, Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

Re: DeadlockException

2000-11-14 Thread Vidur Dhanda
I recall having run into similar problems previously. I think Orion merely checks a timeout value and then proclaims a deadlock. I can look this up, but there is a place in Orion's deployment descriptor where one can specify the timeout value. However, when I was solving such problems, that

RP: JMS messages to autostarted clients

2000-11-14 Thread Vidur Dhanda
Hello, I didn't hear from anyone on this and have posted this as a bug against 1.4.4. -- Bug 188. I'm really interested in hearing others' opinions on this subject. Vidur - Hello, I just installed 1.4.3. The good news is that my previous problems with JMS subscribers, when running as

OR Mapping of Primary Key

2000-11-12 Thread Vidur Dhanda
The saga continues! So I changed the primary key class to have a public member value and updated the orion-ejb-jar (basically replaced the properties tag with fields and changed the guid class to have a public member in addition to the get/setValue). Once again, the tables get created but

HELP! Confused about CMP and Primary Keys

2000-11-12 Thread Vidur Dhanda
of two days on this and need some clarification (and sleep). Thanks, Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

finder query -- invoking a bean method on argument

2000-11-12 Thread Vidur Dhanda
Hello, Is it possible to invoke a method on the argument to a finder method. For example, in the home there is a findByFoo (Foo f); in the CMP EntityBEan, there is a field Foo that is mapped in the database to Foo.bar via the properties tag. Now, I could easily have a findByBar (Bar b) but that

SQL insert statements for CMP beans

2000-11-09 Thread Vidur Dhanda
ref. How do I solve this? Thanks, Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

Auto-started clients, JMS and transactions

2000-11-08 Thread Vidur Dhanda
) at java.lang.reflect.Method.invoke(Native Method) at com.evermind.server.rmi.bf.do(JAX) at com.evermind.util.f.run(JAX) -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

1.4.4 OR Collection classes

2000-11-08 Thread Vidur Dhanda
Hello, Earlier today I had reported a problem with the Map class. There is also a problem with the List class. When the CMP entity is retrieved and the CMP List field is empty, it is returned to the client as null. Both the Map and the List work fine under 1.3.8. Vidur

EJB SLSB Question

2000-11-08 Thread Vidur Dhanda
be in a method call when the keep-alive thread decides to do a ping. DO I need to guard against that? Thanks, Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

Re: REPOST: Help with Finder query

2000-11-06 Thread Vidur Dhanda
done something similar? It seems like a fairly routine problem -- an entity bean has a ref to another entity bean and the enclosing entity bean's finder query needs to access the enclosed bean's field. Vidur Sven van 't Veer wrote: Vidur Dhanda wrote: finder-method query="$s

REPOST: Help with Finder query

2000-11-05 Thread Vidur Dhanda
ressing such a query possible in Orion? Thanks, Vidur -- Vidur Dhanda Active Solutions tel: 617/566-1252 [EMAIL PROTECTED] www.active-solutions-inc.com

Re: Using JMS with auto-started client

2000-10-30 Thread Vidur Dhanda
g I tried was exactly what you describe, with the same results. Eventually I went with a message-driven bean, even if that only avoided the problem. Arved Sandstrom -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Vidur Dhanda Sent: Saturday, October 28, 20

Re: JMS implementation, is it for real?

2000-10-29 Thread Vidur Dhanda
Could someone please post some tips on how to replace Orion's JMS with another one? I wouldn't event know where to start! Although, I have successfully used publish/subscribe on Orion's JMS I'm having problems getting an auto-started client application to receive messages. I would like to try

Help with Finder query

2000-10-28 Thread Vidur Dhanda
ing lib (No previous deployment found)... Error compiling file:/C:/dev/lib/: Unable to process query: source was not a property/field mapped field (invalid '.' use) at column 16 in query '?source.username = ?1' Is expressing such a query possible in Orion? Thanks, Vidur -- Vidur Dhanda Active Solutio

instantDB

2000-10-27 Thread Vidur Dhanda
Hello, Has anyone successfully used instantDB with orion? I've been trying to test the latest version of instantDB but can't get the schema.xml file right. For the datasources.xml, I pretty much used the HypersonicSQL entries and changed the URL and driver names. Vidur

How to recover from incorrect user password

2000-10-20 Thread Vidur Dhanda
Hello, I want to force the user to enter a username/password when using the application. When the application creates a new InitialContext, Orion prompts for a username/password. However, if the user enters an incorrect password, Orion correctly throws a Security exception. When the

RP: How to recover from incorrect user password

2000-10-20 Thread Vidur Dhanda
Sorry, I forgot to attach the stacktrace. Hello, I want to force the user to enter a username/password when using the application. When the application creates a new InitialContext, Orion prompts for a username/password. However, if the user enters an incorrect password, Orion correctly throws

J2EE user roles and privileges

2000-10-05 Thread Vidur Dhanda
Hello, Please bear with me while I try to explain my question. I don't understand the J2EE security mechanism as well as I should. Here's what I want to do. In the client application, I want to provide a user interface for invoking some methods on an EJB. Say, the client application renders

JavaMail wih Orion

2000-09-21 Thread Vidur Dhanda
Hello, I want to allow a SessionBean and an application client to send email. I guess all I really need to do is set up Orion to provide me a javax.mail.Session through JNDI and use that Session object instead of Session.getDefaultInstance(). Am I correct about this? Could someone give me

ORMap in CMP EntityBean

2000-08-24 Thread Vidur Dhanda
Hello, I think there is a bug in the ORMap used in a CMP EntityBean. The value returned by Map.keySet() is not Serializable. More disturbingly, returning the keySet to a client delivers a null to the client and does not throw any marshaling exception. I believe, if the keySet returned must be

Additional Information: ORMap in CMP EntityBean

2000-08-24 Thread Vidur Dhanda
is behaving properly but somehow the exception is not getting surfaced? Thanks, Vidur Vidur Dhanda wrote: Hello, I think there is a bug in the ORMap used in a CMP EntityBean. The value returned by Map.keySet() is not Serializable. More disturbingly, returning the keySet to a cl

Something changed in 1.2.4 for client-module auto-start

2000-08-24 Thread Vidur Dhanda
Hello, I just updated to 1.2.4 and noticed that a configuration that was working under 1.2.0 is not working under 1.2.4. I get the error: No manifest found. C:\orionjava -jar orion.jar Copying default deployment descriptor from archive at C:\dev/META-INF/orion-application.xml to deployment

TopicSession.createSubscriber

2000-08-09 Thread Vidur Dhanda
I think there is a bug in the JMS implementation. When I call TopicSession.createSubscriber when the session's connection has been started, the call hangs. However, if I stop the connection before making the call, the code functions as expected. Is this a bug or is it illegal to create a

EntityBean change notification

2000-08-09 Thread Vidur Dhanda
Hello, I need some help with issuing notifications when an EntityBean's state changes. Currently, I use JMS Topics to publish messages from an EntityBean when it changes. Within the bean, I keep a dirty flag and in ejbStore publish a message if the bean is dirty. I'm not sure this is the best

SFSB not releasing all resources

2000-08-05 Thread Vidur Dhanda
Hello, I think there is a bug in Orion 1.1.37 where all the resources that are used by a SFSB are not released at the end of a transaction. Here's the scenario. A SFSB in its ejbCreate () performs a findByPrimaryKey on the home of a CMP entity bean. It then invokes a method on the entity bean

call-timeout

2000-08-05 Thread Vidur Dhanda
Hello, I posted this a few days ago and never got a response. Could someone please confirm this as either a missing feature or my incorrect understanding of the call-timeout concept. Thanks, Vidur -- Hello, Does Orion use the call-timeout attribute specified in session/entity

URGENT: Can't understand this Deadlock Exception

2000-08-03 Thread Vidur Dhanda
Hello: I have been trying to understand the cause of this deadlock exception in my code, but haven't succeeded. How can I get more information on understanding the cause of this particular deadlock? I'm stuck. The only thing that strikes me as "different" in my code is as follows: Multiple

call-timeout

2000-07-31 Thread Vidur Dhanda
Hello, Does Orion use the call-timeout attribute specified in session/entity deployment section of orion-ejb-jar.xml? From the docs I understand that the value is specified as milliseconds in hex. I provide a value of call-timeout="493E0". However, when the beans are deployed, the resulting

Starting Orion server programatically

2000-07-31 Thread Vidur Dhanda
Hello, Could someone please point out what I'm doing wrong. I'm sure I'm missing something really simple here. I can't get an Orion server to run under program control and do some application specific initialization. I'm inlining some simplified code and output. Thanks, Vidur import

HELP: Transaction was rolled back: timed out

2000-07-30 Thread Vidur Dhanda
Hello, I need help in working around this exception. Here's the scenario. In a stateful session bean, a particular method takes several seconds (and maybe even a minute or so) to execute. While executing it _reads_ another entity bean. The session bean is marked "transaction required" and

OR MApping -- Set of List

2000-07-27 Thread Vidur Dhanda
Hello, Is it possible to use CMP on an EntityBean that has a Set of Lists as a member? What would the OR mapping in the orion-ejb-jar look like? Has anyone does this? I would appreciate any sample XML. TIA, Vidur

Re: How to programatically start orion ejb container

2000-07-24 Thread Vidur Dhanda
- From: Vidur Dhanda [mailto:[EMAIL PROTECTED]] Sent: Sunday, 23 July 2000 13:00 To: Orion-Interest Subject: How to programatically start orion ejb container Hello, How can I start an ejb container programmatically. I want to start the container and then do some initialization. I tried

Serializing EntityBean Handle

2000-07-24 Thread Vidur Dhanda
Hello, I'm having a unique problem that I would like to get help on. In my application, a CMP EntityBean, Category, creates an Object CategoryVariable and passes it its EJBObject(entityContext.getEJBObject()). CategoryVariable, implements Externalizable and in writeExternal() calls writeObject

Hypersonic SQL and autocreating tables

2000-07-10 Thread Vidur Dhanda
Hello, How do I create cached tables in Hypersonic SQL when Orion autocreates tables? I believe, issuing a "create table" in HSQL creates an in-memory table only. Thanks, Vidur

Writing custom Resource Manager

2000-07-08 Thread Vidur Dhanda
Hello, Is it possible to write a custom resource manager in EJB1.1 and Orion? Much like EJBs can use a DataSource, I would like to write an application specific resource manager. How can I do that? Thanks, Vidur PS. If possible, please cc me the replies.

Can't understand this exception -- Orion 1.1.9

2000-07-08 Thread Vidur Dhanda
Hello, Can someone help me understand this exception. It occasionally shows up on the client and there is no details in the application.log. Thanks, Vidur com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction: javax.transaction.xa.XAException: The

Help with OR mapping a Set

2000-07-08 Thread Vidur Dhanda
Hello, In my CMP entity bean, I have a Set whose values will always implement an interface (KMDefinitionFactory). When I try to deploy this, I get an error: Error compiling file:/C:/dev/lib/: Dependent OR class com.epistemic.km.KMDefinitionFactory cannot be abstract unless the ejb-jar.xml has

Remote interface thread-safety

2000-07-07 Thread Vidur Dhanda
Hello, I'm not clear about the thread-safety of a Remote interface. If a multi-threaded client has one Remote interface to an Entity bean, does the client need to synchronize access to the remote interface or can the multiple threads concurrently invoke methods on it? Thus far, I've assumed

Performance Orion 1.1.8

2000-07-04 Thread Vidur Dhanda
Hello, I'm trying to understand the performance of my beans. I notice that on every call to an Entity bean, com.evermind.server.ejb.EvermindEntityContext.cloneObject is called. The program spends nearly 20% of the time in this method. Within the method, the bulk o fthe time is spent in

orion-ejb-jar.xml

2000-07-03 Thread Vidur Dhanda
Is it possible to provide an orion-ejb-jar.xml file with the ejb-jar.xml file to Orion? When Orion deploys a new ejb-jar file, it creates the finder methods and one needs to manually edit them after deployment. I would like to provide at least a skeleton of the orion-ejb-jar file with the

Optimistic concurrentcy control

2000-07-02 Thread Vidur Dhanda
Hello, Is it possible to use optimistic locking in Orion? I have a case where EntityBeans with the same primary key must be used concurrently by multiple clients. The transactions are read only but take some (arbitrary, or really highly variable) time to complete. Currently, I keep on getting

CMP -- How to defer loading a dependent collection

2000-07-02 Thread Vidur Dhanda
Hello, Is it possible to lazily load a dependent collection of a CMP Entity Bean. My entity bean has a dependent collection of an interface. So I can't map it into a relation. However, I don't want to load the entire collection until it is required since deserializing/serializing could be

OR Mapping

2000-07-01 Thread Vidur Dhanda
Hello, I'm trying to experiment with the OR mapping features of Orion. I'm quite new to this topic and can't understand how to specify a mapping. Could someone post an example or hints to get me started. Thanks, Vidur PS. If possible, please also cc me.