RE: ejb.dfPackage ejb.dfPackage.wmf
They are files generated by Together, a A multi-platform UML modeler that supports round-trip engineering for Java and C++.. I think the URL for the company is http://www.togethersoft.com. They are just the model/diagram files. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of SAURUGGER,PETER (A-PaloAlto,ex2) Sent: Thursday, August 16, 2001 12:50 PM To: Orion-Interest Subject: ejb.dfPackage ejb.dfPackage.wmf Anybody knows the role these files play (they are in the ATM example, com/acme/atm/ejb in atm-ejb) - what are they for, where do I find info (e.g. about format), and how is the *.wmf file created? Cheers --peter
RE: JMS Problem
Well, I can get classes to start up when Orion starts: Edit your orion-application.xml file orion-application ... client-module path=start-this-jar.jar auto-start=true user=who-should-start-it arguments argument value=argumentValue1/ /arguments /client-module /orion-application Notice the auto-start and user tags. The jar you want to start up will also need an appropriate manifest (with the Main-Class property set correctly). That should do the trick for you. And be sure to read the documentation the mailing-archives, as this topic (like most) has been discussed resolved before. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Pouyer Sent: Friday, August 10, 2001 1:27 PM To: Orion-Interest Subject: Re: JMS Problem The start up class in weblogic is specific to that server. It is not part of the j2ee spec and there is no equivalent in orion. - Original Message - From: Vikas Malhotra To: Orion-Interest Sent: Friday, August 10, 2001 7:24 AM Subject: JMS Problem hi, can we specify any class as a startup class in Orion the same way we can do in Weblogic. Vikas * Disclaimer This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. * Visit us at http://www.mahindrabt.com
RE: clustering and key generation
Have you tried setting: ejb-module remote=true path=keygenerator / in your orion-application.xml on machines B,C, and D? The only place the KeyGenerator bean is really deployed is on A, so machine A's orion-application.xml will have remote=false. I am assuming you have already set up your rmi.xml, etc. correctly to support this kind of operation (as in the links I posted earlier). The only other thing I can think of right now is maybe try making a parent application which has the KeyGenerator bean and run children apps on the other machines. I haven't tried the parent/child app deployment, so you would have to check the archives to see if this is feasible. -jason
RE: clustering and key generation
These posts in the archive may help you (although they target Orion web server-Orion ejb server configuration instead of a cluster). http://www.mail-archive.com/orion-interest@orionserver.com/msg12704.html http://www.mail-archive.com/orion-interest@orionserver.com/msg11905.html -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Thursday, June 07, 2001 10:19 PM To: Orion-Interest Subject: clustering and key generation dear all, if there any way to get all machines in a cluster to lookup a stateless session bean (KeyGeneratorBean) on *one* of the machines in the cluster only. i've given it a try but can't seem to find a way to get machine B to use machine A's KeyGeneratorBean, even though machine B builds a new InitialContext with the 4 environment parameters, e.g. principal/credentials/url/factory when doing a lookup for KeyBean. thanks, greg.
RE: Generate and save a file
I thought about using RMI to call an external method. But then I would have to start rmiregistry on the server as well as Orion. Or could Orion act as RMI-server too? Sure, no problem. You could also just send a JMS message to a queue and have your server process listen for that. Depending on how intensive the call is, it might give you better performance than waiting for an RMI call to complete. -jason
RE: Counter gives naming exception
To look at the JNDI directory use the Orion Console tool: java -jar orionconsole.jar -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Koster, K.J. Sent: Monday, May 28, 2001 1:35 PM To: Orion-Interest Subject: Counter gives naming exception Dear All, I'm sure I must be doing something dumb, but I've banging my head into this stupid wall for two days now. I should have stayed in school and learned something, but nooo, I had to do Computer Science. *argh!* :-) I deployed the counter.jar (yes it's in the ear, it even autocreates the table it needs, but never uses). I have included the relevant bits into web.xml (from $ORION/applications/myapp/webthingy/WEB-INF/web.xml): ejb-ref ejb-ref-nameejb/Counter/ejb-ref-name ejb-ref-typeEntity/ejb-ref-type homecom.evermind.ejb.CounterHome/home remotecom.evermind.ejb.Counter/remote /ejb-ref Yet when I use that thing inside the ejbCreate of another bean I get a NameNotFound Exception. Replacing the Counterutils.getnextid() with (new Date()).getTime() works without generating the errors. How can I view the contents of the JNDI directory that Orion has? It would be sooo helpful in debugging. What is so obvious that I missed it? Kees Jan You are only young once, but you can stay immature all your life.
RE: Running a Class at Server Startup
In your orion-application.xml just add something like: client-module path=init/Initializer.jar auto-start=true user=bob arguments argument value=somedirectory/init-script.xml/ /arguments /client-module This will let cause Orion to autostart the jar. Note that you must have the jar contain the proper manifest information so it is runnable (you must specify the Main-Class: in the manifest). -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Randahl Fink Isaksen Sent: Thursday, May 17, 2001 8:01 AM To: Orion-Interest Subject: RE: Running a Class at Server Startup Well, Magnus, that is a constructive suggestion, but what if he wanted to do something which a servlet is restricted from doing? Is there a way to simply startup a regular java application allong with Orion? Randahl -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Rydin Sent: 17. maj 2001 11:07 To: Orion-Interest Subject: SV: Running a Class at Server Startup You could autostart a Servlet that kicks another class? -Ursprungligt meddelande- Från: S.Badrinarayanan [mailto:[EMAIL PROTECTED]] Skickat: den 17 maj 2001 00:59 Till: Orion-Interest Ämne: Running a Class at Server Startup Hi Is it possible to run a class when the orion server initially starts up? I am looking for something like the following using Weblogic: weblogic.system.startupClass.initialise=class-name weblogic.system.startupArgs.initialise=arguments thx sb Chequemail.com - a free web based e-mail service that also pays!!! http://www.chequemail.com
RE: Please Help on jms -urgent
Title: Please Help on jms -urgent Make sure you have edited your jms.xml file to specify your particular server, otherwise it will default to 127.0.0.1. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kesav KumarSent: Wednesday, May 02, 2001 6:35 PMTo: Orion-InterestSubject: Please Help on jms -urgent Hi Can any one please help me in retrieving messages stored in the orion server from out side orion. I am using orion 1.4.7 jdk1.3 on WinNT. I tried the sample application I am always getting NullPointerException. Its a little urgent for me. Thanks in advance. Kesav Kumar Software Engineer Voquette, Inc. 650 356 3740 mailto:[EMAIL PROTECTED] http://www.voquette.com Voquette...Delivering Sound Information
RE: Unknown Source (2nd attempt)
Look in the archives for my post from April 3, 2001, entitled: Orion(web) - Orion(ejb) communication rough mini how to You must make sure that your EJB machine (referenced from your Web machine's rmi.xml) contains at least the same applications as the Web machine (see my Warning note in original post). -jaon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eric Knight Sent: Wednesday, April 25, 2001 2:42 PM To: Orion-Interest Subject: Unknown Source (2nd attempt) We have our project happily working with the web component and the ejb components living on a single machine. We'd now like to separate them, each on separate Orion boxes. We tried following some of the explanations on the Orion mailing list archive, but the ejb machine complains loudly about a NullPointerException - at ObjectInputStream.InputClassDescription (Unknown Source) when we start up the web machine. So it seems the client machine is trying to connect to the ejb machine but it's failing for some reason... We made the following settings on the client machine: in the orion-application.xml file for the web deployment we add the following line: ejb-module remote=true path=EJBCOMP / (EJBCOMP is the name of the ejb component) and this to the rmi.xml file: server host=n.n.n.n username=admin password=123/ where n.n.n.n is the machine with the ejb component. the username and password seem to be the default admin info in the principals.xml file. What are we missing? Are we supposed to register the client with the ejb host somehow besides a username and password? Thanks very much! --- Eric Knight Ninth House Network [EMAIL PROTECTED]
RE: JMS from remote client
When I try to do a topicConnection.start(); I get the following error: .javax.jms.JMSException: Unable to connect to JMSServer (ATTILA/127.0.0.1:9127) The obvious problem is that the JMSServer isn't located at the specified address. Where do I have to change which properties to connect to the right server? You need to modify your orion/config/jms.xml file. You have to explicitly identify your server in this, i.e. jms-server host="myserver.mydomain.com" port="9127" This is defined in the documentation (look at jms.xml.html) by the following: jms-server host="hostname.domain.com|123.124.125.126|[ALL]" port="9127" This file contains the configuration for a JMS-server. host - The host/IP to listen for JMS-connections at. If [ALL] is specified then all the servers IP's are used. port - The port to listen for JMS-connections at. In addition, this has been addressed in the past on this mailing list, archives are located at http://www.mail-archive.com/orion-interest%40orionserver.com/ jason
Orion(web) - Orion(ejb) communication rough mini-how to
OK, I decided I would try to figure out how to get this working yesterday and here is what I came up with. We have two machines each running Orion: Machine A - contains the EJBs Machine B - contains the web stuff 1) Create an application on Machine A that contains the EJBs you want to be able to access from Machine B. 2) Create an application on Machine B that contains web elements that will access the EJBs on Machine A (This application must be named the same as the application on Machine A! Also See Warning below!) 3) Edit the rmi.xml file of Machine B to include a "server" element tag that points to Machine A. 4) The orion-application.xml for the application on Machine B must include a tag like: ejb-module remote="true" path="doesn't_seem_to_matter" / 5) I had to put the home remote interfaces of the ejb in the orion/lib directory on Machine B. It didn't seem to be able to find the class definitions otherwise, and I would eventually get this error: javax.naming.NamingException: Lookup error: java.io.IOException: Class Not Found : jason.HelloWorldHome; nested exception is: java.io.IOException: Class Not Found: jason.HelloWorldHome at com.evermind.server.rmi.RMIContext.lookup(JAX) at com.evermind.server.hm.f4(JAX) at com.evermind.server.hm.lookup(JAX) at javax.naming.InitialContext.lookup(Unknown Source) at __jspPage3_jtest_jsp._jspService(__jspPage3_jtest_jsp.java:39) at com.orionserver.http.OrionHttpJspPage.service(JAX) at com.evermind.server.http.HttpApplication.xj(JAX) at com.evermind.server.http.JSPServlet.service(JAX) at com.evermind.server.http.d3.sw(JAX) at com.evermind.server.http.d3.su(JAX) at com.evermind.server.http.ef.s1(JAX) at com.evermind.server.http.ef.do(JAX) at com.evermind.util.f.run(JAX) (I am very interested in the solution to this problem, and if anyone knows please post it to the Orion-Interest list.) 6) I didn't have to add any ejb-ref tags to my web.xml, I was able to access the remote EJB by doing the usual context lookup, narrowing, etc., from within a jsp. 7) Watch your web talk to the EJBs --- ! Warning ! --- Machine A must have at least the same applications that Machine B defines! If you don't then you will get a NullPointerException on Machine A that looks like: java.lang.NullPointerException at com.evermind.server.rmi.a7.gr(JAX) at com.evermind.server.rmi.a7.resolveClass(JAX) at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.inputObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at com.evermind.server.rmi.ba.hg(JAX) at com.evermind.server.rmi.ba.run(JAX) at com.evermind.util.f.run(JAX) I am speculating that this is because of the "shared" application namespace stuff that seems to be going on, but I could be way off base here. Note that you are allowed to have applications on Machine A that are not defined on Machine B. My biggest (or more frustrating) gotcha was making sure I could start both servers after I had placed the server tag in the rmi config for the web machine. The warning should explain what you need to do to avoid that. After that was the afore mentioned class location problem. Regardless, I hope this helps. -jason
RE: Does any one has a solution for the domain was null message???
Well, I agree that it would be nice if you could get access to servers outside of Orion using the "client" approach, I don't think it necessarily defined in the J2EE platform specs. I took a look around the J2EE 1.3 specification, and the section J2EE.2.8 "Flexibility of Product Requirements" states: "This specification doesn't require that J2EE product be implemented by a single program, a single server, or even a single machine. In general, this specification doesn't describe the partionining of services or functions between machines, servers, or processes. As long as the requirements in this specification are met, J2EE Product Providers can partition the functionality however they see fit. A J2EE product must be able to deploy application components that execute with the semantics described by this specification." In section J2EE.2.11.3 "Network Protocols" it says that "This specification defines the mapping of application components to industry-standard network protocols. The mapping allows client access to the application components that have not installed J2EE product technology". Finally, in J2EE.8.2.1 "Application Assembly" subpart 3ii says "Dependencies that are not linked to internal components must be handled by the Deployer as external dependencies that must be met by resources previously installed on the platform. External resources must be linked to the resources on the platform during deployment." From everything I have read, it seems that Orion isn't violating any specification rules, since they are allowed to partition functionality as they see fit. Orion does allows multiple servers to intercommunicate, but it is the responsibility of the application deployer to specify those links (and it is specific to Orion). Since the web container is bundled as part of the J2EE Server, I don't think the specification requires that it has access to anything outside that specific server environment. I would like to hear the thoughts of others about this, and any experiences they might have had with access with remote containers/servers. -jason
RE: SV: load-on-startup is not working
I ran into this same problem, what I ended up doing is writing a little utility which is auto-started by Orion. It just goes out and makes a connection to the servlet forcing the initialization at start up. -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel Lopez Sent: Friday, March 30, 2001 4:29 AM To: Orion-Interest Subject: Re: SV: load-on-startup is not working Hi Patrick, My problem is not that my servlet doesn't work. The servlet works but it is initialised when I perform the first request. It has to open database connections, parse a couple of xml files... at init time so I'd like to have it pre-loaded so the first request doesn't take too long. Orion doesn't have to compile my servlet as the servlet is already compiled and packed in a war file. Thanks anyway, Dan Patrik Andersson wrote: Check your error log for compile time errors. is development="true" in orion-web.xml so that Orion even tries to compile the servlet? regards, Patrik Andersson -Ursprungligt meddelande- Frn: Daniel Lopez [mailto:[EMAIL PROTECTED]] Skickat: den 30 mars 2001 10:54 Till: Orion-Interest mne: load-on-startup is not working Hi, I don't seem to find how to get the load-on-startup attribute to work. This is the web.xml snippet where I use it: ... servlet servlet-nameGuiaController/servlet-name servlet-classorg.leaf.LEAFManager/servlet-class load-on-startup1/load-on-startup /servlet ... I've also tried with load-on-startup/, but to no avail. This has been working for me with Resin and other containers but it doesn't work with Orion. What I am doing wrong? Notes: .- I'm pretty sure web.xml os being read as the application works fine after the first request, and if I add a typo to the web.xml file, I get an error message. The strange thing is that I don't get the error message through the logs or the standard output, but when I try to access for the first time. Any hints? TIA, Dan
RE: SV: load-on-startup is not working
Thanks Johan! I hadn't specified load-on-startup="true" in default-web-site.xml. After I put that in everything starts up fine. -jason
RE: Who's wrong?
There is another way to resolve problems like this: Look at the technical specification instead of blindly trusting 3rd parties! From the JSP 1.1 Specification, look at Chapter 2 "Standard Syntax and Semantics", or more specifically at Section 2.10.3 "Expressions". You will get a nice paragraph description and an example: %= (new java.util.Date()).toLocaleString() % as well as Syntax: %= expression % -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971 Sent: Wednesday, March 28, 2001 10:07 AM To: Orion-Interest Subject: RE: Who's wrong? There are three ways to resolve a dispute: 1. Subject matter experts from this list. 2. See what experts in the books say 3. Download another free JSP engine, like Tomcat (jakarta.apache.org), or LiteWebServer (http://www.gefionsoftware.com/), and see what you get. -Original Message- From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:19 AM To: Orion-Interest Subject: Who's wrong? Orion don't agree on this line of code in a jsp page: %=variable;% The semicolon is an error? But JRun accepts it! Who's wrong? Thanx...
RE: EJB encapsulation (data hiding) pattern... Is there such a thing?
If you have control over the deployment assembly maybe you can use the "run-as-specified-identity" security configuration for your Person, then only allow that role to invoke methods on Phone. I may be way off base here since I have never tried to do this, but I thought I would throw it out. -jason
RE: mime types for .js
look at orion/config/mime.types -jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker Sent: Sunday, March 11, 2001 3:33 PM To: Orion-Interest Subject: mime types for .js There seems to be a *feature* of NS browsers that requires a server mime-type for any javascript which is referenced in a web page. I have looked in the documentation, but can't seem to find the deployment xml file where I can add various mime types. Does anybody know how to add mime types to Orion? Regards, the Elephantwalker
RE: cannot connect JMS server on other machine
In your jms.xml you need to explicitly set the host IP, so you will have something like: jms-server host="192.168.1.100" port="9127 ... whatever /jms-server Otherwise the factory will return the default IP (localhost) as the location of the factory. jason -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of LuTai-Hsin (E-mail) Sent: Tuesday, February 13, 2001 5:46 AM To: Orion-Interest Subject: cannot connect JMS server on other machine I am trying to access a orion server on other machine. While I think supplied the correct information, the QueueConnections seems to still connecting on localhost. Here is my code: Hashtable htEnv = new Hashtable(); htEnv.put("java.naming.factory.initial", "com.evermind.server.ApplicationClientInitialContextFactory"); htEnv.put("java.naming.provider.url", "ormi://192.168.0.4"); htEnv.put("java.naming.security.principal", "admin"); htEnv.put("java.naming.security.credentials", "1234"); InitialContext objContext = new InitialContext(htEnv); QueueConnectionFactory objFactory = (QueueConnectionFactory)objContext.lookup("java:comp/env/jms/theQu eueConnectionFactory"); QueueConnection objConnection = objFactory.createQueueConnection(); Queue objQueue = (Queue)objContext.lookup("java:comp/env/jms/" + strQueueName); objConnection.start(); and here is the error message(which is triggered by objConnection.start()): javax.jms.JMSException: Unable to connect to JMSServer (127.0.0.1/127.0.0.1:9127) at com.evermind.server.jms.EvermindQueueConnection.start(JAX) at com.ufoasia.emidway.stub.Receiver.init(Receiver.java:36) at com.ufoasia.emidway.stub.Receiver.main(Receiver.java:100) Can any body tell me if this is a bug or I need to config elsewhere in order to connect to orion server on other machine. Thx so much for the information.
RE: ClassLoader.getResource not working in 1.4.5
From the JDK 1.3 Javadoc for ClassLoader.getResource(): This method will first search the parent class loader for the resource; if the parent is null the path of the class loader built-in to the virtual machine is searched. That failing, this method will call findResource to find the resource. From the Servlet 2.2 Javadoc for ServletContext.getResource(); This method allows the servlet container to make a resource available to servlets from any source. Resources can be located on a local or remote file system, in a database, or in a .war file. Maybe try using the ServletContext.getResource() instead of the ClassLoader? The ClassLoader.getResource* methods do not seem to work properly in 1.4.5. I have been trying to use these methods to load resources from my WEB-INF/classes directory, and they fail every time. After experimenting, I found out that these methods expect to load resources from orion/lib. This seems broken. I would expect that each webapp would have a custom class loader that loads resources from the webapp directories - if I need system resources I can always use the system class loader instead. This is the way other app servers behave. The methods work properly if used to access resources contained within the webapp's jars, but don't work to retrieve plain files. Is this a known problem in Orion? Roger Vaughn __ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
RE: JMS
Is that true that the only message queue servers in existence which support JMS are IBM's MQ Series and Forte's Java Message Queue? Any other vendors? Ummm Orion comes to mind first, since is a list for Orion interest. There is also work being done on an open source JMS impl. named OpenJMS. I just did a search on google for JMS Server and found some others like Fiorano, Weblogic, and SwiftMQ . I'm sure there are many more. -jason
RE: Kawa
Title: RE: Kawa Have you tried Visual SlickEdit? I haven't used the Unix/Linux version, but I am guessing that they are all the same. Itis by far my favoriteeditor. It has all of the features you mentioned except multi-tab, it uses a buffer system instead. I like it because I can do my java, jsp, html, c/c++, javascript, many more all in one environment. You can download a trial version from their website. http://www.slickedit.com jason What is anyone using on Linux for Java development? I would like to use ANT and a Java based text editor (syntax color hightlighting, multi-tab windows for quick access, and tree-view of project (or file structure). Infact, I use UltraEdit32 right now which does the job for me since I do server-side for web development. I would also possibly like an output window that displays errors so I can dbl-click on them and move to the file/line of the problem, as well as a method list when a class is selected, to jump to a specific method in a class.
RE: Globally available environment vars
How about having an initializer bind some property files into JNDI that can then be accessed by the web ejb modules.
RE: restarting orion-server
When invoking 'shutdown' and then 'restart' there is no response after the 'shutdown'. Do shutdown OR restart, not both. If shutdown is not bringing everything down I would hook up Orion to a remote debugger (like bugseeker) and see what thread is stalling it. I posted a bug (#220) about shutdown hooks not being started when Orion is given the shutdown command, so if you are doing any custom threading in a java client module you may have workers hanging around if you are waiting on termination to clean up.
RE: RP/Please Help: Connecting to JMS from client application
Well, I worked on this problem b/c it is something I eventually want to do, and I am finally able to connect to a remote JMS server. On the machine running JMS/Orion, you need to edit orion/config/jms.xml. You need to change the jms-server tag to contain the host that it is running on, don't just let it default to localhost (127.0.0.1). Anyways, your tag should look something like: jms-server host="xxx.xxx.xxx.xxx" port="9127" Then on the remote machine make sure that in your jndi.properties you are pointing to that machine as the service provider. jason
RE: Using JMS with Orion
I'm trying to get my own JMS queue running under orion and I'm unable to get it deployed. The queue I'm using currently is working under Weblogic Server. I'm unable to see how to get the queue running and access it using JNDI. If anyone has the jms.xml set file and the client-application.xml with JMS setup that would be helpful. First off it appears that your included class was not executing QueueConnection.start() soon enough for one thing (I think you have to start() before you create the queue). Another thing is that it looks like you are not implementing the Singleton pattern correctly unless you are doing some interesting run time instantiation/execution of this class elsewhere to make sure that 1) it runs in the same JVM and 2) Thread safety is provided elsewhere. You can find a good example of using Queues with Orion in orion/demo/jms/coffeemaker/. Anyhow, I was able to get your code to run by doing the following: 1) First off change your JMS_FACTORY to "jms/QueueConnectionFactory". 2) move qcon.start() before qsession.createQueue(); 3) Make your application-client.xml looks like: ?xml version="1.0"? !DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Application Client 1.2//EN" "http://java.sun.com/j2ee/dtds/application-client_1_2.dtd" application-client display-nameQueue Connection Factory/display-name resource-ref res-ref-namejms/QueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref /application-client 4) Create appropriate jndi.properties file Since you are creating your Queue dynamically, you don't have to mess with jms.xml by declaring the queue there. If you didn't want to have to run this class to create the queue you could edit jms.xml and just add the desired queue there so it would be "auto-created". To do this just add the following line to jms.xml: queue name="ACM Process Queue or whatever description you want" location="ACMProcessQueue" / -jason
RE: Configuring JMS connection from client
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 name of the EJB server via jndi.properties. Is there a similar mechanism for JMS? I know I'm missing something obvious! I don't know if this directly solves your problem, but check out the documentation for jms.xml (http://www.orionserver.com/docs/jms.xml.html), you can specify domain name/ip addresses for JMS servers. jason
RE: Properties
I am assuming you are talking about a java.util.Property file here. If the class that wants to access the property file is bundled within a jar, you should try using the Class.getResource(String name) method. Just remember if you put the properties in the root of the jar you need to specify the name you pass into getResource as "/whatever.properties". Sun has an article entitled "Accessing Resources in a Location-Independent Manner" you might want to check out. http://java.sun.com/j2se/1.3/docs/guide/resources/resources.html jason
RE: Lookup of Orion-based EJB from Tomcat-based servlet (java:comp/env namespace is only available from within the J2EE environment)
I have never tried to do what you are talking about, but you might want to try using com.evermind.server.rmi.RMIInitialContextFactory as your INITIAL_CONTEXT_FACTORY within your servlet. so.. Hashtable env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory"); env.put(Context.PROVIDER_URL, "ormi://yourserver.com/yourapp"); env.put(Context.SECURITY_PRINCIPAL, myUser); env.put(Context.SECURITY_CREDENTIALS, myPass); Context initCtx = new InitialContext(env); initCtx.lookup(...etc.,etc. -jason NOTE: This is a repost. The message now includes a subject (oops!) and more detail. A coworker and I are trying to create a servlet that will run on his computer under Tomcat. This servlet is attempting to lookup and use an EJB deployed on my computer under Orion. This servlet is using the com.evermind.server.ApplicationInitialContextFactory. When the servlet performs the context object's lookup method (using the String literal "java:com/env/fungi"), we get the following exception displayed on his computer: "Exception: javax.naming.NamingException: java:comp/env namespace is only available from within the J2EE environment ." A command-line client application run on the same coworker's computer IS able to successfully lookup the same EJB on my computer using the "java:com/env/fungi" String literal. This command-line client is using the com.evermind.server.ApplicationClientInitialContextFactory. We have been unable to find any documentation about the NamingException described above. Please, would someone explain reasons we might be getting this exception and/or the proper way to access an Orion EJB from a Tomcat servlet? We would appreciate any assistance that can be given. Thank you. Mark McLain Systems Developer Sybron Laboratory Products Corporation
RE: Looking for Fellow Programmers
Just look in the message header and you will see it. It looks to me like: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of J.T. Wenting Sent: Wednesday, September 13, 2000 11:22 AM To: Orion-Interest Subject: RE: Looking for Fellow Programmers would be nice, would it? Sadly he did not include an email address where people can send to :) Jeroen T Wenting [EMAIL PROTECTED] ICQ UIN #9191966 It's the end of the world as we know it and I feel fine (Michael Stipe) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: 13 September 2000 18:22 To: Orion-Interest Subject: Re: Looking for Fellow Programmers hey, I dont think the initial offer is a problem (what better place to meet J2EE programmers), but why dont you carry on your dealings via private email?
RE: Client app problem
I think your problem lies within your client jndi.properties setup, specifically your value for java.naming.provider.url. I believe you must specifiy this url as: java.naming.provider.url=url/application so you would probably need to replace what you currently have with: java.naming.provider.url=ormi://10.1.1.11/dummy jason A strange problem arises when trying to execute a client application (see below). Exactly the same error happened when executing the news-client sample, after having rebuilt and rejared it using an appropriate jndi.properties file at the jar-root level. The file dummy.jar contains the home and remote interfaces. The manifest classpath points to orion.jar. Also interesting is that a web application using the same EJB works just fine, using exactly the same ejb-ref notation in its descriptor. It may be a newbie or trivial error from my side, but maybe also a bug in Orion (I posted another message yesterday and it was solved 6 hours later when I made an autoupdate ;-) Any help in this matter would be greatly appreciated. jndi.properties (from client jar file) java.naming.factory.initial=com.evermind.server.ApplicationClientI nitialCont extFactory java.naming.provider.url=ormi://10.1.1.11 java.naming.security.principal=admin