UserTransaction
With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks
Re: how do I unsubscribe?
Unsubscribe requests should be sent to: [EMAIL PROTECTED]
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
RMI Clustering done. Now want more.
Hello. OK. I was able to (at last) run the RMI clustering. It now works. But... I have a question... Now I can put up a cluster, and when a bean does not exist on the server it is searched onthe cluster and used. However if it is deployed on more than one machine... It is not found on all of them, but rather on only one. For simplicity let's assume we have OrionA, OrionB, OrionC and OrionD. a) on all machines we have EnterpriseBean1 deployed. It accesses EnterpriseBean2 b) machine OrionA does not have EnterpriseBean2 deployed. c) machines OrionB, OrionC and OrionD have EnterpriseBean2 deployed. d) all machines have a RMI cluster set-up and working. (BTW) Because I needed quite some time to understand why the cluster was not working I am eager to help anyone, that needs help on the subject. If machine OrionA runs EnterpriseBean1 it will have to look-up EnterpriseBean2, which is used by EnterpriseBean1. There is no problem to find that bean (it exists on the cluster). However... Once EnterpriseBean2 is used on OrionC it keeps using that one. Why? Also. If we deploy EnterpriseBean2 on OrionA it is always found there and not on ANY other cluster machine. 1. How does Orion know on which machine to use the bean? The last one, that wakes up? 2. Is there a way to implement (at least) a round-robin technique to access the clustered bean on more than one server? I mean... When I look-up EnterpriseBean2... I would like to have a different server answering every time. Round-robin is sufficient, even though a loadbalancing technique would be better appropriate. Ok. Waiting forward to hearing from you all... P.S. Another question... CAN I TURN WEB-SERVICES OFF??? I tried removing the default-web-app tag in the server.xml, but it starts complaining about no default web-app :((( I want to have some Orion servers to act as EJB only servers. Lachezar
Re: debug jsp pages and where is the source
Hi Wendell, Take a look at http://bugzilla.orionserver.com/bugzilla/show_bug.cgi?id=497. Someone else recently posted about this too and so I filed a bug. Magnus already fixed it and it seems you should be able to use String and any other Class in the scope of the current jsp's imports. Marcel - Original Message - From: Wendell Nichols [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 14, 2001 6:05 PM Subject: Re: debug jsp pages and where is the source Oops, I got had by a deployment thing, (orion didn't recompile the jsp file when the TEI class changed...). The thing that actually fixed the jsp compile problem was changeing the tei class from new VariableInfo(eCTSResult, String, true, VariableInfo.NESTED), tonew VariableInfo(eCTSResult, java.lang.String, true, VariableInfo.NESTED), The import didn't have anything to do with it. :( I've also figured out how to get access to the jsp source files: In your config/global-web-application.xml file there is an orion-web-app node. Add the property: development=true there, and to any other web-xml files in your applicatio-deployments tree as necessary. This will cause orion to keep copies of the jsp.java files in your persistence directory tree, however it will name them wrong :( My debugger looks for a source file of the same name of the class where the jvm is breakstopped so it necessary to rename the source files so that they conform to the name of the class within so that the ide will find them, (in this case NetBeans). If you do that you can actually step through the code. All tHis being said, there is still one catch: Even with development mode turned on Orion is compiling the jsp.java files without the -g debugging switch so you don't have access to all the variable info. Outside of using an external compiler for jsp's I don't see how to switch debugging on... If I find out I'll post it here :=) WCN Wendell Nichols wrote: Well I made the jsp page work by explicitly importing java.lang.String, as opposed to java.lang.* as I had done for other servers. Because this shouldn't bother other servers I'm ok with it. I still need to have access to the jsp.java files for debugging purposes before Orion will be an acceptable server for me... Wendell Nichols Amdahl Software Ltd. Fujitsu Appserv. Wendell Nichols wrote: When I access a jsp page which uses a tag library I get an error: 500 Internal Server Error Error parsing JSP page /ectsdemo/TagLibDemos/booklist.jsp line 15 Bean type 'String' not found I suspect that this is a problem creating the java file from the jsp page related to the tag extra info class... At any rate I can't find the source or class files that Orion generates from jsp pages so it's impossible to proceed. Does anyone know how to make Orion place java and class files for jsp pages somewhere where they can be viewed and debugged? I see jsp cache files which are probably some sort of java archive internal to Orion, but these don't help me as I can't open them... Incidentally the jsp line that produced the above error looks like: ects:eCTSTaglet name=BOOKLIST The taglib entry for eCTSTaglet: tag nameeCTSTaglet/name tagclasscom.Amdahl.eCTS20.ects2taglet/tagclass teiclasscom.Amdahl.eCTS20.ects2tagletTEI/teiclass bodycontentJSP/bodycontent info Run a named taglet. /info attribute namename/name requiredtrue/required /attribute attribute nameresultString/name requiredfalse/required /attribute attribute nameuserdata/name requiredfalse/required /attribute /tag Its TEI class : public VariableInfo[] getVariableInfo(TagData data) { return new VariableInfo [] { new VariableInfo(eCTSResult, String, true, VariableInfo.AT_BEGIN), new VariableInfo(EndMsg, String, true, VariableInfo.AT_BEGIN), new VariableInfo(ReturnMsg, String, true, VariableInfo.AT_BEGIN) }; } Any help would be appreciated.. Wendell Nichols Amdahl Software Ltd. and Fujitsu Apserv.
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Cookie, IE4 and Orion
Hi! We have a problem with cookies and early versions of IE 4. This is what MS says about it. If a Web site uses a cookie with a 2-digit year of 00, Internet Explorer recognizes the cookie as expired. As a result, Internet Explorer behaves as if cookies have been disabled when visiting the web site. Orion uses a 2-digit year : Set-Cookie: spam=test; Domain=.altcom.se; Expires=Thu, 14-Jun-01 14:23:18 GMT; Is there a solution to this problem on the Orion side? We cannot upgrade all the clients to a newer IE. /Markus
Classpath and library path ERROR ???
OK, I want to include a jar file in my application, so I put it in $APPLICATION_ROOT/lib and in the orion-application.jar I put (I first let Orion generate the orion-application.xml file): - library path="./lib" / library path="./lib/log4j-core.jar" / library path="./lib/log4j.jar" /--- However My application can't find the jar files: "NoClassDefFoundError". Can someone please tell me how to solve this ??? I notice that Orion is reading the tags, as it complains when the names of the directory or jar fileis incorrect. BTW: my application needs his own jar file (so putting it in the orion lib dir is no alternative). I have been struggling with this problem in the past as well and didn't solve it. I now have Orion 1.5.1 with redHat 7.0 and still have the same problem. I searched the mailinglist and tried a lot of possible solutions, but had bad luck. I like to hear how people solved this running on Linux, without having there application in an EAR, as I noticed that the people that have it working are running Windowz or/and an EAR file. I am getting frustrated by this problem, so please come up with a solution?? What I tried, among others: 1- let orion deploy the application in the application directory (in the server.xml). 2 - put the lib files in the deployment dir. 3 - including the jar files as absolute paths and other forms.. 4 - the persmission are correct of the files. GRhhh, Eddie
Re: groups and usermanager
You need two records for the multiple groups; they're not comma-delimited. On Thu, 14 Jun 2001, Lawrence Fry wrote: Has anybody used more than one group outside of the defaultGroups for a usermanager? I have found that if you use EJBUserManager, and use more than one group in the EJBUser_groups table.. username='somename' value='my-admins,my-users' Only the first group in the list is used (my-admins), the second (my-users) group can't be used for authentication. Is there a workaround for this? regards, the elephantwalker --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Orion can't find Cloudscape database
Try putting the cloudscape.jar into the orion\lib directory...it will be able to find it there... --- Lou Farho [EMAIL PROTECTED] wrote: How do I tell Orion where to find my Cloudscape database? Here is what I have for the data source: data-source class=com.evermind.sql.DriverManagerDataSource name=Cloudscape location=jdbc/CloudscapeCoreDS xa-location=jdbc/xa/CloudscapeXADS ejb-location=jdbc/myDS connection-driver=COM.cloudscape.core.JDBCDriver username= password= url=jdbc:cloudscape:myDB inactivity-timeout=30 / Lou Farho Certes Solutions, Inc. 2485 W MAIN ST SUITE 205 Littleton, CO 80120 303.798.8079 BEGIN:VCARD VERSION:2.1 N:Farho;Louis FN:Louis Farho ORG:Certes Solutions TITLE:Consultant ADR;WORK;ENCODING=QUOTED-PRINTABLE:;303.798.8079;2485 W Main St.=0D=0ASuite 205;Littleton;CO;80120 LABEL;WORK;ENCODING=QUOTED-PRINTABLE:303.798.8079=0D=0A2485 W Main St.=0D=0ASuite 205=0D=0ALittleton, CO 80120 URL: URL:http://certes-solutions.com EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20010611T170823Z END:VCARD __ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Slow Session Replication in cluster
Hello, We have a cluster with 6 servers in production, 100MB network traffic low, nothing is stored into the session object, nor into any of the variables (pageContext, etc.). However sessions last 10s in being replicated. Any clue ? Thanks Yves Bossel L. Programmer www.neoris.com - Business Technology Partners Edificio Birmann 24, Sanchez Fontecilla 310, piso 7 (esq. Callao) Las Condes, Santiago; CHILE oficina: (56-2) 426-1260 email: [EMAIL PROTECTED]
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: UserTransaction
Check www.orionserver.com, under the FAQ link: How do I get a reference to the TransactionManager? import javax.naming.*; import javax.transaction.*; ... TransactionManager manager = (TransactionManager)new InitialContext().lookup(java:comp/UserTransaction); Jeff Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com
Re: Problems with bidirectional CMR
Harris, That extra table IS necessary. That is the way that ALL relationships are managed by the ejb container. myParent -- myParentPK myParentData1 myParentData2 myChild -- myChildPK myChildData1 Relationship: Parent has Children Containment (1 - N Bi-directional) myParent_myChild myParentPK myChildPK This allows trivial bi-directionality in a 1 - N, even if it's uni-directional, the same construct can be used. In the case of bi-directional 1 - N the table is in fact necessary as there's no way, except perhaps to use a Collection of myChildPK's attribute in myParent, to back reference the myChild relationships from the myParent object. - Scot Harris Simon wrote: I am trying to get a bi-directional container managed relationship working in Orion 1.5.2 but it keeps creating an intermediate table. Is there anyway to stop this? There is no need for the extra table. Here is my example: Change[1]-[*]Objection create table change ( change_id integer primary key ) create table objection ( objection_id integer primary key, change_id integer ) ejb-relation ejb-relation-nameChange-Objection/ejb-relation-name ejb-relationship-role ejb-relationship-role-namechange-has-objections/ejb-relationship-role-nam e multiplicityOne/multiplicity role-source ejb-nameChange/ejb-name /role-source cmr-field cmr-field-nameobjections/cmr-field-name cmr-field-typejava.util.Set/cmr-field-type /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-nameobjection-belongsto-change/ejb-relationship-rol e-name multiplicityMany/multiplicity cascade-delete/ role-source ejb-nameObjection/ejb-name /role-source cmr-field cmr-field-namechange/cmr-field-name /cmr-field /ejb-relationship-role /ejb-relation ** This e-mail is confidential and for the sole use of the intended recipient(s). If you are not the intended recipient, you are not authorised to disclose, use, distribute or in any other way make use of the information contained in it, and such activities are prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail, delete the document and destroy all copies of the original message. ** -- scot weber - [EMAIL PROTECTED] - Given a choice between a folly and a sacrament, one should always choose the folly -- because we know a sacrament will not bring us closer to God and there's always a chance that a folly will. - Erasmus The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt.
What is the correct format of loadbalancer.xml?
I'm trying out the loadbalancer.jar stuff, but found there wasn't an example load-balancer.xml file. Below is what I've come up with, and that dtd does seem to exist on the orionserver website. Does it look sane? Side note: I pulled this up in IE to do the format checking, and without the port=443 bit it tells me my port is 80, even when I have secure=true. Odd. Documentation error: load-balancer.xml.html, port section: says it's 439 for SSL sites, and it's really 443. Thanks, -- Andrew Diederich [EMAIL PROTECTED] ?xml version=1.0? !DOCTYPE load-balancer PUBLIC Orion Load Balancer Config http://www.orionserver.com/dtds/load-balancer.dtd; load-balancer host=my.box secure=true port=443 use-session-id=false minimum-island=1000 island id=2000 / ssl-config keystore=C:\keystores/keystore keystore-password=123456 / /load-balancer
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Collection or list as return ??
Hellu there,Some time ago someone made a remark that it make no sense putting a "ORDERBY" in the where clause in the orion-ejb-jar.xml, as the finder methods ofthe home interface do return a Collection, which are not sorted bydefinition.Hmmm makes sence, but if I play around with it and put a "ORDER BY id ASC"or "ORDER BY id DESC" in the where clause in the orion-ejb-jar.xml, to finetune some queries, it does return sorted collections Howcome ?? Does the finder methods return a sorted List as a J2EE feature,that is a subClass of a Collection, or is this just Orion. ??The thing is that I like to optimize my queries, but if this feature isn'tJ2EE for example I will have a problem with the following upgrades if it'sleft out for some reason !!BTW: in the J2EE spec, in section 10.5.6 they only talk about the Collectiondata type.!!Some advise please ??Eddie
RE: RMI Clustering done. Now want more.
Yes, I would be very glad if you could give me some hints on how to set this up. I have two orion servers behind a Foundry Server Irion load balancer/switch. I tried setting up the clustering, but was only able to get the HTTP clustering to work. Since I could not get my EJBs to be clustered, I configure the ejbs with exclusive-write-access=false, so the data is consistent. I also cannot use HTTP clustering because we use statefull session beans. How do I setup ejb clustering? thanks -Original Message- From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 1:18 AM To: Orion-Interest Subject: RMI Clustering done. Now want more. Hello. OK. I was able to (at last) run the RMI clustering. It now works. But... I have a question... Now I can put up a cluster, and when a bean does not exist on the server it is searched onthe cluster and used. However if it is deployed on more than one machine... It is not found on all of them, but rather on only one. For simplicity let's assume we have OrionA, OrionB, OrionC and OrionD. a) on all machines we have EnterpriseBean1 deployed. It accesses EnterpriseBean2 b) machine OrionA does not have EnterpriseBean2 deployed. c) machines OrionB, OrionC and OrionD have EnterpriseBean2 deployed. d) all machines have a RMI cluster set-up and working. (BTW) Because I needed quite some time to understand why the cluster was not working I am eager to help anyone, that needs help on the subject. If machine OrionA runs EnterpriseBean1 it will have to look-up EnterpriseBean2, which is used by EnterpriseBean1. There is no problem to find that bean (it exists on the cluster). However... Once EnterpriseBean2 is used on OrionC it keeps using that one. Why? Also. If we deploy EnterpriseBean2 on OrionA it is always found there and not on ANY other cluster machine. 1. How does Orion know on which machine to use the bean? The last one, that wakes up? 2. Is there a way to implement (at least) a round-robin technique to access the clustered bean on more than one server? I mean... When I look-up EnterpriseBean2... I would like to have a different server answering every time. Round-robin is sufficient, even though a loadbalancing technique would be better appropriate. Ok. Waiting forward to hearing from you all... P.S. Another question... CAN I TURN WEB-SERVICES OFF??? I tried removing the default-web-app tag in the server.xml, but it starts complaining about no default web-app :((( I want to have some Orion servers to act as EJB only servers. Lachezar
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: Collection or list as return ??
Eddie, java.util.Collection is an interface, so chances are the real container is a java.util.ArrayList, which is linearly sequential. I don't know this to be a fact, but it's just a thought . . . - Scot Eddie wrote: Hellu there, Some time ago someone made a remark that it make no sense putting a ORDER BY in the where clause in the orion-ejb-jar.xml, as the finder methods of the home interface do return a Collection, which are not sorted by definition. Hmmm makes sence, but if I play around with it and put a ORDER BY id ASC or ORDER BY id DESC in the where clause in the orion-ejb-jar.xml, to fine tune some queries, it does return sorted collections Howcome ?? Does the finder methods return a sorted List as a J2EE feature, that is a subClass of a Collection, or is this just Orion. ?? The thing is that I like to optimize my queries, but if this feature isn't J2EE for example I will have a problem with the following upgrades if it's left out for some reason !! BTW: in the J2EE spec, in section 10.5.6 they only talk about the Collection data type.!! Some advise please ?? Eddie -- scot weber - [EMAIL PROTECTED] - Given a choice between a folly and a sacrament, one should always choose the folly -- because we know a sacrament will not bring us closer to God and there's always a chance that a folly will. - Erasmus The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt.
Re: Collection or list as return ??
Eddie, I just tested it . . . MyTestHome.java __ public interface MyTestHome { public Collection findAll () ... } mytest.jsp__ %= myTestHome.findall ().getClass () % output_ java.util.ArrayList peace - scot Eddie wrote: Hellu there, Some time ago someone made a remark that it make no sense putting a ORDER BY in the where clause in the orion-ejb-jar.xml, as the finder methods of the home interface do return a Collection, which are not sorted by definition. Hmmm makes sence, but if I play around with it and put a ORDER BY id ASC or ORDER BY id DESC in the where clause in the orion-ejb-jar.xml, to fine tune some queries, it does return sorted collections Howcome ?? Does the finder methods return a sorted List as a J2EE feature, that is a subClass of a Collection, or is this just Orion. ?? The thing is that I like to optimize my queries, but if this feature isn't J2EE for example I will have a problem with the following upgrades if it's left out for some reason !! BTW: in the J2EE spec, in section 10.5.6 they only talk about the Collection data type.!! Some advise please ?? Eddie -- scot weber - [EMAIL PROTECTED] - Given a choice between a folly and a sacrament, one should always choose the folly -- because we know a sacrament will not bring us closer to God and there's always a chance that a folly will. - Erasmus The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt.
tunneling ORMI through SSL?
Ok... a little background... I dont have TONS of ejb programming background however I understand the concepts... and am more than willing to read =) My problem... I wanna create an applicationserver (running orion of course) that is more or less a transaction server... and have clients (entirely seperate machines) connecting to the orion server to perform transactions. What I need is a secure method of clients communicating with orion. Somone proposed the idea of ORMI tunneled through ssl, which he didnt know if it was possible for sure. I would be interested to see the methods other people have used to solve similar problems. Wes
Auto-reply: RE: RMI Clustering done. Now want more.
Hi, I will be on vacation until the 9th July 2001. I will NOT have access to voice or email. My manager has my contact details in case of an emergency. Regards Doug Yes, I would be very glad if you could give me some hints on how to set this up. I have two orion servers behind a Foundry Server Irion load balancer/switch. I tried setting up the clustering, but was only able to get the HTTP clustering to work. Since I could not get my EJBs to be clustered, I configure the ejbs with exclusive-write-access=false, so the data is consistent. I also cannot use HTTP clustering because we use statefull session beans. How do I setup ejb clustering? thanks -Original Message- From: Lachezar Dobrev [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 1:18 AM To: Orion-Interest Subject: RMI Clustering done. Now want more. Hello. OK. I was able to (at last) run the RMI clustering. It now works. But... I have a question... Now I can put up a cluster, and when a bean does not exist on the server it is searched onthe cluster and used. However if it is deployed on more than one machine... It is not found on all of them, but rather on only one. For simplicity let's assume we have OrionA, OrionB, OrionC and OrionD. a) on all machines we have EnterpriseBean1 deployed. It accesses EnterpriseBean2 b) machine OrionA does not have EnterpriseBean2 deployed. c) machines OrionB, OrionC and OrionD have EnterpriseBean2 deployed. d) all machines have a RMI cluster set-up and working. (BTW) Because I needed quite some time to understand why the cluster was not working I am eager to help anyone, that needs help on the subject. If machine OrionA runs EnterpriseBean1 it will have to look-up EnterpriseBean2, which is used by EnterpriseBean1. There is no problem to find that bean (it exists on the cluster). However... Once EnterpriseBean2 is used on OrionC it keeps using that one. Why? Also. If we deploy EnterpriseBean2 on OrionA it is always found there and not on ANY other cluster machine. 1. How does Orion know on which machine to use the bean? The last one, that wakes up? 2. Is there a way to implement (at least) a round-robin technique to access the clustered bean on more than one server? I mean... When I look-up EnterpriseBean2... I would like to have a different server answering every time. Round-robin is sufficient, even though a loadbalancing technique would be better appropriate. Ok. Waiting forward to hearing from you all... P.S. Another question... CAN I TURN WEB-SERVICES OFF??? I tried removing the default-web-app tag in the server.xml, but it starts complaining about no default web-app :((( I want to have some Orion servers to act as EJB only servers. Lachezar
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
BMP perfomance question
Hi people, Does anyone use Orion's BMPs? I have just created a BMP and tried findAll() - incredibly slow! Any thoughts very much appreciated. Sergei.
Orion w/ Oracle 9ias
I am trying toexecute an EJB on Oracle 9ias 1.0.2.2 app server (just released). It appears that Oracle's app server uses the Orion container (not sure what version it is using). The container is running (java -jar orion.jar) and the EJB has been deployed via (java -jar admin.jar ). The ear file was created with earassembler. Is there a tool that I can use to build the client.jar file that contains the stubs? Also, can anyone provide me withsome exampleclient code that shows you how to referencethe home interfaceusing Orion's JNDI naming service? Also, how do I set up theOracle 9ias Context? I am using JBuilder 4 to build the EJBs. JBuilder also generates a client.jar file but it does not seem to be compatible with Orion. Has anyone been successful with using a client.jar that gets generated thru JBuilder? John
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: UserTransaction
Yeah, but can I do that from a stand-alone APP running in separate VM? Anh - Original Message - From: Jeff Hubbach [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Friday, June 15, 2001 6:05 AM Subject: Re: UserTransaction Check www.orionserver.com, under the FAQ link: How do I get a reference to the TransactionManager? import javax.naming.*; import javax.transaction.*; ... TransactionManager manager = (TransactionManager)new InitialContext().lookup(java:comp/UserTransaction); Jeff Hubbach Phan Anh Tran wrote: With orion, Is it possible to look up a user transaction outside an EJB (a stand-alone app for example)? Thanks -- Jeff Hubbach Internet Developer New Media Designs, Inc. www.nmd.com _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: Orion can't find Cloudscape database
Iuse Rmi-Jdbc framework to connect to cloudscape. I have RmiJdbc.jar, cloudscape.jar and client.jar in orion/lib directory. my datasource.xml looks like: data-sourceclass="com.evermind.sql.DriverManagerDataSource"name="Cloudscape"location="jdbc/CloudscapeCoreDS"xa-location="jdbc/xa/CloudscapeXADS"ejb-location="jdbc/myDS"connection-driver="COM.cloudscape.core.JDBCDriver"username=""password=""url="jdbc:rmi:jdbc:cloudscape:myDB"inactivity-timeout="30"/ Sergei - Original Message - From: Lou Farho To: Orion-Interest Sent: Thursday, June 14, 2001 7:48 PM Subject: Orion can't find Cloudscape database How do I tell Orion where to find my Cloudscape database? Here is what I have for the data source: data-sourceclass="com.evermind.sql.DriverManagerDataSource"name="Cloudscape"location="jdbc/CloudscapeCoreDS"xa-location="jdbc/xa/CloudscapeXADS"ejb-location="jdbc/myDS"connection-driver="COM.cloudscape.core.JDBCDriver"username=""password=""url="jdbc:cloudscape:myDB"inactivity-timeout="30"/ Lou Farho Certes Solutions, Inc. 2485 W MAIN ST SUITE 205 Littleton, CO 80120 303.798.8079
Re: Collection or list as return ??
Thanks Scott, Thanks for the test (stupid that I didn't thought about that ;) ). So, yes the returned Collection (read: ArrayList) is a sorted one. But how general is this, as I can't find anything in the J2EE spec about this and is it possible that Orion will change this such that it isn't sorted anymore ? What do you think ? Let the DB do the order by or just let the sort method of Collections do the trick ? I have noticed that the sort method is very fast. Eddie From: Scot Weber [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Collection or list as return ?? Date: Fri, 15 Jun 2001 12:15:46 -0700 Eddie, I just tested it . . . MyTestHome.java __ public interface MyTestHome { public Collection findAll () ... } mytest.jsp__ %= myTestHome.findall ().getClass () % output_ java.util.ArrayList peace - scot Eddie wrote: Hellu there, Some time ago someone made a remark that it make no sense putting a ORDER BY in the where clause in the orion-ejb-jar.xml, as the finder methods of the home interface do return a Collection, which are not sorted by definition. Hmmm makes sence, but if I play around with it and put a ORDER BY id ASC or ORDER BY id DESC in the where clause in the orion-ejb-jar.xml, to fine tune some queries, it does return sorted collections Howcome ?? Does the finder methods return a sorted List as a J2EE feature, that is a subClass of a Collection, or is this just Orion. ?? The thing is that I like to optimize my queries, but if this feature isn't J2EE for example I will have a problem with the following upgrades if it's left out for some reason !! BTW: in the J2EE spec, in section 10.5.6 they only talk about the Collection data type.!! Some advise please ?? Eddie -- scot weber - [EMAIL PROTECTED] - Given a choice between a folly and a sacrament, one should always choose the folly -- because we know a sacrament will not bring us closer to God and there's always a chance that a folly will. - Erasmus The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
RE: Collection or list as return ??
You're right, there is no guarantee from the spec that other app servers will return data in order or even allow you to specify the ORDER BY clause in the finder sql. For that matter, there is no guarantee that the database has a sql interface. It gets even worse. The current spec for EJB-QL has no support for ordering. The *only* way to write a 100% spec-compliant app which does ordering is to implement the sorting yourself, in application code, in Java. It's pretty obvious to me at least that the people developing the EJB specification have never actually used their ideas to develop a real world application. Fortunately for us, container vendors are less insulated from the eventual customers; it's a pretty safe bet that most servers will let you configure the ordering in the database query somehow. I wouldn't worry about it, but no, it's not standard. Jeff Schnitzer -Original Message- From: Eddie Post [mailto:[EMAIL PROTECTED]] Sent: Friday, June 15, 2001 3:48 PM To: Orion-Interest Subject: Re: Collection or list as return ?? Thanks Scott, Thanks for the test (stupid that I didn't thought about that ;) ). So, yes the returned Collection (read: ArrayList) is a sorted one. But how general is this, as I can't find anything in the J2EE spec about this and is it possible that Orion will change this such that it isn't sorted anymore ? What do you think ? Let the DB do the order by or just let the sort method of Collections do the trick ? I have noticed that the sort method is very fast. Eddie From: Scot Weber [EMAIL PROTECTED] Reply-To: Orion-Interest [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Subject: Re: Collection or list as return ?? Date: Fri, 15 Jun 2001 12:15:46 -0700 Eddie, I just tested it . . . MyTestHome.java __ public interface MyTestHome { public Collection findAll () ... } mytest.jsp__ %= myTestHome.findall ().getClass () % output_ java.util.ArrayList peace - scot Eddie wrote: Hellu there, Some time ago someone made a remark that it make no sense putting a ORDER BY in the where clause in the orion-ejb-jar.xml, as the finder methods of the home interface do return a Collection, which are not sorted by definition. Hmmm makes sence, but if I play around with it and put a ORDER BY id ASC or ORDER BY id DESC in the where clause in the orion-ejb-jar.xml, to fine tune some queries, it does return sorted collections Howcome ?? Does the finder methods return a sorted List as a J2EE feature, that is a subClass of a Collection, or is this just Orion. ?? The thing is that I like to optimize my queries, but if this feature isn't J2EE for example I will have a problem with the following upgrades if it's left out for some reason !! BTW: in the J2EE spec, in section 10.5.6 they only talk about the Collection data type.!! Some advise please ?? Eddie -- scot weber - [EMAIL PROTECTED] - Given a choice between a folly and a sacrament, one should always choose the folly -- because we know a sacrament will not bring us closer to God and there's always a chance that a folly will. - Erasmus The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt. __ ___ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Undeliverable:
Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: Undeliverable:
List-managers could you please drop all messages from MAILER-DAEMON@* ? This spam is unacceptable! On Sat, 16 Jun 2001, Mail Delivery Subsystem wrote: Important information! This e-mail has not been delivered to [EMAIL PROTECTED] The receiver's mailbox is full. When the mailbox has been emptied you will be able to resend this e-mail. Best regards Telia Internet
Re: UserTransaction
hi guys, i m new to ejb and want to develop them using the orion server...could someone explain where do i put up my ejbs and my jsps..i mean what im looking for is a directory pattern...I tried alot of combos but...does not seem to work... thanks in advance David