Re: clustering + ssl together
ew, using your example, i have tried the equivalent of https://localhost/mysecuresite/login which should have gone to port 443. in the effort to look under orion's covers. i've seen a -Djavax.net.debug=all flag mentioned in a previous post by tomas anderson (27.6.01), and gave it a try but no extra output appeared in orion. do you know what this is supposed to show? do you know if there is a way to see where the request is getting up to? can we do a netstat or something to see where the request is falling over or what processes are listening on what ports? greg. - Original Message - From: elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:58 PM Subject: RE: clustering + ssl together Greg, I just tried something which ALMOST worked. I tried the secure loadbalancer instance like this in the browser: http://localhost:443/mysecuresite/login. The secure loadbalancer showed a session id, and forwarded the request to the secure island! Of course the site didn't do anything, since it was looking for a handshake. It looks like the loadbalancer is just not doing its bit...it is refusing all connections which are secure. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Tuesday, June 26, 2001 3:00 PM To: Orion-Interest Subject: Re: clustering + ssl together ew, i was trying to run a single secure load balancer with it's own load-balancer.xml. loadbalancer did register the 2 orions i'd set up to appear in the cluster, but after being able to see them appear on the loadbalancer screen, i was still unable to access my web app. the browser just sat there with the little IE symbol spinning, but no joy. all orions and the loadbalancer had their own keystore setup using a test certificate generated from thawte.com loadbalancer = secure and on port 443 (on box1) orion1 = secure and on port 443 (on box2) orion2 = secure and on port 8080 (on box1) !! but only in some experiments. i also tried various other configurations of the loadbalancer and cluster machines having secure on/off, etc. and swapping the port numbers around, e.g. when loadbalancer and orion2 were both running, they were both secure=true but obviously only one can run on port 443 at one time, so i made orion2 run on port 8080 while secure=true was set. i also had a look at apache for how to setup SSL but it looks like you've got to compile the mod in yourself for win32 so i've given that a miss for the moment. greg. - Original Message - From: elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:48 AM Subject: RE: clustering + ssl together Here are the hickups in the plan so far...see below. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker Sent: Monday, June 25, 2001 1:29 AM To: Orion-Interest Subject: RE: clustering + ssl together Greg, I am doing this now, so I will get back to the list when I am finished. This is my working plan: 1. there are two loadbalancers instances, one for http and one for https. These can be on the same machine or seperate machines. hickup At one level this works, but you have to set the minimumIsland/maximumIsland so that each respective loadbalancer picks up either the https island or the http island. However, https connections do not work. It could be because of this blurb in the load-balancer.xml description: secure - Whether or not to use SSL. The default is false. SSL is only used when using session (not IP) based balancing and the backend and the site is using SSL. If you specify the balancer to use SSL then the backend servers will not (the balancer converts to HTTP, ie contains the SSL layer). Note that this puts the strain of decoding the SSL on the balancer. I'm sorry, but does this say that we have the option of NOT using SSL for the balancer, but using it for the backend? Or if we use SSL for the balancer, SSL isn't used on the backend (and thus we have to strip all of the SSL configuration from the backend)? /hickup 2. the ports for your web-sites can be different from your loadbalancer(s) port. This allows you to have the loadbalancer and an orion instance on the same machine, for example. Or the ports can be the same, in which case the loadbalancer(s) has to be on a different machine. hickup Since web-sites are load-balanced (not applications), its important that each *web-site.xml which you use have its own island. This is done by setting the cluster-island attribute in the web-site tag. See above for reference to min/max island ids for the loadbalancer. The port bit seems to work. That is, the http web-site had a port of 10180, and the http loadbalancer
Orion beginer's question
Hi all, I did lot of j2se programming, but a bit new in j2ee. I'm quite common with servlets, but tryed only a few ejb and jndi tasks but in j2ee-ri, where datasources are preconfigured to cloudscape. Please can enybody help me to connect cloudscape, which is quite friendly to me (at least has console and even GUI and lot of docs) or InterClilent to ORION. I have no reason not to work with hsql, but no links to that site works and so no documentation, did they shut down? So please what (may be some tutorial) can help me to connect dbms i at least a bit know???
Re: SV: Anyone using TogetherSoft TCC with Orion?
Just FYI got htis from Together supportmight concern some of you! Oisin --cut-- There are issues with Together and jdk1.3.1 running on RH7.1. To do this you will need to edit the java wrapper script and add the following lines to the top of the script: LD_ASSUME_KERNEL=2.2.5;export LD_ASSUME_KERNEL To edit the java wrapper on Unix, change directories into the JDK_HOME/bin directory and, $ vi .java_wrapper Also, if you are getting users with errors like: /usr/java/jdk1.3.0_02/bin/java: /usr/bin/cut User will need to create a symbolic link from /usr/cut to /usr/bin/cut. --end cut-- Tuesday 26 June 2001 16:57, you wrote: We use another product called CocoBase by Thought Inc. It handles all of our 1:* relationships. At this point you need to use an O/R mapping tool or write your own code to do it. Until EJB 2.2 or 2.3 is formalized. Jonathan Bricker Lilly Research Labs Java ATG Magnus Rydin [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/26/01 07:51 AM Please respond to Orion-Interest To: Orion-Interest [EMAIL PROTECTED] cc: Subject:SV: Anyone using TogetherSoft TCC with Orion? How do you model EJB 2.0 relations with Together? WR -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Skickat: den 26 juni 2001 05:31 Till: Orion-Interest Ämne: Re: Anyone using TogetherSoft TCC with Orion? We are using TogetherJ with Orion. I'm not sure I can help you but for hot deployment we just make an .ear file and move it to the applications directory. Orion does the rest. All done in a make file. From our makefile: ### begin: rules for creating application jar. DIST_DIR=$(APP_HOME)/dist EJB_TMP_DIR=$(APP_HOME)/ejb_tmp deploy: cp $(APP_NAME).ear $(ORION_HOME)/applications dist: pre_dist ejb_jar war @echo - @echo Creating $(APP_NAME) EAR ... @cd $(DIST_DIR); \ $(JAR) cf ../$(APP_NAME).ear *; @echo - rm -rf $(DIST_DIR); pre_dist:FORCE @echo - @echo Preparing EAR ... @mkdir -p $(DIST_DIR)/META-INF; @cp application.xml $(DIST_DIR)/META-INF; @echo - war:$(DIST_DIR) @echo - @echo Creating WEB Archive (WAR)... @rm -rf web/WEB-INF/classes/com; @cd web/WEB-INF/classes; \ cp -rf $(APP_HOME)/lib/* .; @cp -rf web web_tmp; @cd web_tmp; \ find . -name CVS -prune -exec rm -rf {} \; @cd web_tmp; \ $(JAR) cf $(DIST_DIR)/$(APP_NAME).war *; @rm -rf web_tmp; @echo - ejb_jar:$(DIST_DIR) ejb-jar.xml @echo - @echo Creating EJB JAR... @mkdir -p $(EJB_TMP_DIR); @cd $(EJB_TMP_DIR); \ cp -rf $(APP_HOME)/lib/* .; @mkdir -p $(EJB_TMP_DIR)/META-INF; @cp $(APP_HOME)/ejb-jar.xml $(EJB_TMP_DIR)/META-INF/; @cd $(EJB_TMP_DIR); \ $(JAR) cf $(DIST_DIR)/$(APP_NAME)Ejb.jar *; @rm -rf $(EJB_TMP_DIR); @echo - $(DIST_DIR): mkdir -p $(DIST_DIR); $(EJB_TMP_DIR): mkdir -p $(EJB_TMP_DIR); deploy_web: cd web; \ rm -f *~; \ cp -rf * $(ORION_HOME)/applications/$(APP_NAME)/$(APP_NAME) ### end: rules for creating application jar. Jonathan Bricker Lilly Research Labs Java ATG Ronald F. Lens [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 06/25/01 02:09 PM Please respond to Orion-Interest To:Orion-Interest [EMAIL PROTECTED] cc: Subject:Anyone using TogetherSoft TCC with Orion? Hi all, Does anyone have any experience using TogetherSoft TCC v5 (or 4.x) with orion? I'm still struggling to get the deployment tool to work with orion. I got pretty close using the EJB 2.0 generic version in TogetherSoft but it doesn't provide all the bells and whistles you'd like (like hot deployment). Any help would be greatly appreciated. Ronald Content-Type: text/html; charset=iso-8859-1; name=Attachment: 1 Content-Transfer-Encoding: quoted-printable Content-Description: -- +-+ _/_/_/_/_/ _/_/_/ __/_/_/_/ Oisin Kim _/ _/_/ _/ _/ Dept. Computer Science _/ _/_/ _/ Trinity College Dublin _/ _/_/ _/tel : (+353 86).841 9967 _/ _/_/ _/ _/ email: [EMAIL PROTECTED] _/ _/_/_/ __/_/_/_/ http://www.cs.tcd.ie/Oisin.Kim/ +-+
Re: Cookies larger than 20k
On Tue, 26 Jun 2001, Orion Developers wrote: We're having problems passing cookies greater then 20k in size. We get a http: 413 error, and the servlets seem to truncate over that limit. There's some seriously debatable value in using cookies over 20k in size. I'd really suggest you reconsider this. Really. And no, I have no worthwhile contribution other than a sense of Gee, do you REALLY want to hang yourself or your users like this? Also, is there a version/bug fix list available to the public? we are on 1.4.5 and I am wondering about 1.5.2, and what issues have been addressed. Check out changes.txt, as usual. Finally, has ANYONE had any success getting ahold of Cadrion, the alleged 'support partner' of Orion?? While I can't speak for Cadrion *or* Ironflare... I understand Cadrion had some issues a while back, unrelated to Orion. Check www.atlassian.com/support/ out; it looks like LITERALLY the same thing. _ Get your FREE download of MSN Explorer at http://explorer.msn.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: Orion beginer's question
hi first , hsql has been hand-changed and now source forge takes care of it.u better get it at sourceforge.net.it's good for all demos that come with orion. to get a feel for ejb, try running the petstore demo from java.sun.com on a j2ee server and u'd really appreciate it.and with cloudscape database, do let me know what ur exact problem is.i'll try correcting. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
Re: Prob in Deploying CMP EJB on to orion
State your abstract-schema-nameSomeAppropriateName/abstract-schema-name for your entity EJBscheck out the ejb 2.0 latest-latest spec --- struts orion [EMAIL PROTECTED] wrote: Hi we got the following error while deploying the CMP EJB with the name 'Test20Cmp' available at www.orionsupport.com. The error message at the console when the server is started is Error in application SampleEb20: Error loading package at file:/C:/Orion-test-apps/Test20Cmp/rel/Sample Eb20-ver001a/SampleEb20-ver001a-ejb.jar, abstract-schema-name not specified for entity 'Test20Cmp.eb.Sa mple20Eb', it must be specified for EJB 2.0 style CMP beans How can we rectify this prob? Thanks Praveen and Eda __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/ __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
url forbidden
I'm trying to deploy a simple web application to orion (made with sun's j2ee tool) It goes in fine and all the binding etcetc works, but then I get 403 url forbidden error ,when trying to look at that url. The web application is just made out of one servlet (simple helloworld thingy) is this A) Some sort of security issue B) Something wrong with my servlet mappings or..?
Urgent: SSL - BigIP - Apache - Orion : Page Not Found
The problem is that we receivean intermittent"Page Not Found" error on IE 5.5 and greater when using BigIP with SSL and Orion as the server. If we click the refresh button on the browser, the page actually renders correctly. The SSL is being done by the BigIP and not Orion. Has anyone ran into this problem? This problem occurs more often with IE 6.0. Thanks, Ozzie Gurkan Manheim Interactive 404-269-8776 P.S.: Apache does the redirecting of the "http://" redirects coming from Orion back to "https://" to the client browser.
RE: Orion beginer's question
data-source class="com.evermind.sql.DriverManagerDataSource" name="Cloudscape" location="jdbc/CloudscapeCoreDS" xa-location="jdbc/xa/CloudscapeXADS" ejb-location="jdbc/myNameDS" connection-driver="COM.cloudscape.core.JDBCDriver" username="" password="" url="jdbc:cloudscape:C:\\Cloudscape_3.6\\data\\myNameDB" inactivity-timeout="30" / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of uenko Ivan Sent: Wednesday, June 27, 2001 1:16 AM To: Orion-Interest Subject: Orion beginer's question Hi all, I did lot of j2se programming, but a bit new in j2ee. I'm quite common with servlets, but tryed only a few ejb and jndi tasks but in j2ee-ri, where datasources are preconfigured to cloudscape. Please can enybody help me to connect cloudscape, which is quite friendly to me (at least has console and even GUI and lot of docs) or InterClilent to ORION. I have no reason not to work with hsql, but no links to that site works and so no documentation, did they shut down? So please what (may be some tutorial) can help me to connect dbms i at least a bit know???
RE: Max-tx-retries...
You should search the mail archive and www.orionsupport.com first to look for answers. This has been cover. Orion will always generate a new orion-ejb-jar.xml what you need to do is make a copy in your source tree somewhere. Make your mods. Then add the file to your ejb jar. Orion will look for a copy in the jar file and use it as a base. One use to create an orion dir and place the file there. Now it goes into meta-inf dir in your ejb jar. I can't remember which version where this changed. After you deploy your new ear file, you need to shutdown and restart orion for it to pick up the new orion-ejb-jar.xml. Good Luck! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Alex Paransky Sent: Friday, June 22, 2001 2:51 PM To: Orion-Interest Subject: BUG: Max-tx-retries... Trying to set max-tx-retries=0 (I do not want any failed transactions to retry AT ALL) in orion-ejb-jar.xml REWRITES the orion-ejb-jar.xml and removes max-tx-retries specification all together. The next time orion-ejb-jar.xml is touched, Orion puts the max-tx-retries=3 back into the file. Is this a bug? -AP_
Re: Orion beginer's question
Hi Ivan, I connect to cloudscape using rmi-jdbc bridge. To get started you need to do the following: 1. Setup datasources.xml 2. Put RmiJdbc.jar to the %ORION-DIR%/lib folder 3. Use cloudscape connection by obtaining the javax.sql.DataSource from JNDI. 1. Put into the datasources.xml the following: data-source class="com.evermind.sql.DriverManagerDataSource" name="Cloudscape" location="jdbc/CloudscapeCoreDS" xa-location="jdbc/xa/CloudscapeXADS" ejb-location="jdbc/CloudscapeOgaDS" connection-driver="RmiJdbc.RJDriver" username="user_name" password="secret_password" url="jdbc:rmi://host:port/jdbc:cloudscape:dbName" inactivity-timeout="30" / 2. Seems to be self-expalnatory: RmiJdbc.jar must be in the orion's classpath, so put it to the %ORION-DIR%/lib folder. 3. to obtain the java.sql.Connection, do something like: import java.sql.*; import javax.sql.*; import javax.naming.*; ... DataSource dataSource = ( DataSource ) new nitialContext().lookup( "java:comp/env/jdbc/CloudscapeCoreDS" ); Connection connection = dataSource.getConnection(); ... HTH, Sergei. - Original Message - From: "uenko Ivan" [EMAIL PROTECTED] To: "Orion-Interest" [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 10:16 AM Subject: Orion beginer's question Hi all, I did lot of j2se programming, but a bit new in j2ee. I'm quite common with servlets, but tryed only a few ejb and jndi tasks but in j2ee-ri, where datasources are preconfigured to cloudscape. Please can enybody help me to connect cloudscape, which is quite friendly to me (at least has console and even GUI and lot of docs) or InterClilent to ORION. I have no reason not to work with hsql, but no links to that site works and so no documentation, did they shut down? So please what (may be some tutorial) can help me to connect dbms i at least a bit know???
RE: Orion beginer's question
RE: First, hsql has been hand-changed and now SourceForge is taking care of it... Link is http://hsqldb.sourceforge.net or http://www.hsqldb.org Now, the above observation by Mr. Kumar is not entirely true. The author of hsql/HypersonicSQL, Thomas Mueller, was maintaining his code at SourceForge for 6 months while he tried to get other developers interested. Now, the original hsql is a lapsed project (it's creator/maintainer transferred the code from http://sourceforge.net/projects/hsql to hsqldb under the same license) and hsqldb is maintaining the original codebase, while expanding on Thomas' extraordinary work. Ironflare and OrionServer's authors, however have included hsql in OrionServer, so you don't need to download it. The OrionServer creators have also included a guide to use hsql in the 'docs' directory of the Orionserver download, calling it 'hsql-howto.html' One correction to that doc: do your download from http://ftp1.sourceforge.net/hsqldb/hsql_143.zip . This is the latest (although not the last) version of hsql, v.1.43 It is a complete download, including documentation. If all you want is the .jar file, that will be available soon in our files section at: http://sourceforge.net/project/showfiles.php?group_id=23316 You're welcome to use hsqldb, but I would suggest holding off if you are a beginner, until you are more familiar with data sources and the Orion way of doing things. All others in the Orion community are welcome to contribute to the hsqldb/hsql community as they have time/inclination. Oh, and a VERY hearty 'Congratulations!' and 'Well done!' to the folks at IronFlare, for their victory in assisting the Oracle corporation in seeing the light! Michael J. Cannon PM/COO - hsqldb.org [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of g vasantha kumar Sent: Wednesday, June 27, 2001 8:17 AM To: Orion-Interest Subject: Re: Orion beginer's question hi first , hsql has been hand-changed and now source forge takes care of it.u better get it at sourceforge.net.it's good for all demos that come with orion. to get a feel for ejb, try running the petstore demo from java.sun.com on a j2ee server and u'd really appreciate it.and with cloudscape database, do let me know what ur exact problem is.i'll try correcting. __ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
HELP on MessageDrivenBeans
Could anybody please describe once and for all ALL the steps required in deploying an MDB under Orion ?! It's not normal, you write the code in 5 minutes and you styruggle one day or more to do the deployment :(( ! Here's what I have tried - with no success in having the bean to react : 1. Added resource-ref entries in the deployment descriptor ejb-jar.xml enterprise-beans message-driven descriptionListener message driven bean/description display-nameListener/display-name ejb-nameListenerBean/ejb-name ejb-classcom.davincitech.mCare.utils.logging.listener.ListenerBean/ejb-cl ass message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination transaction-typeContainer/transaction-type resource-ref descriptionThe log topic where log events are broadcasted.../description res-ref-namejms/theTopic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionThe Factory used to produce connections to the log topic.../description res-ref-namejms/theTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref /message-driven /enterprise-beans Orion will automatically add resource-ref-map entries in orion-ejb-jar.xml: message-driven-deployment name=com.davincitech.mCare.utils.logging.listener.ListenerBean destination-location=jms/theTopic resource-ref-mapping name=jms/theTopic / resource-ref-mapping name=jms/theTopicConnectionFactory / /message-driven-deployment Now my question : DO WE NEED TO USE destination-location AND connection-factory-location ATTRIBUTES FOR message-driven-deployment OR NOT ?! 2. I tried without those resource-ref entries in ejb-jar.xml and just setting destination-location and connection-factory-location and no success either. Now, I have a client that uses JMS to publish messages to the topic (actually is a Log4J JMS appender object) - it uses the following parameters : appender name=JMS class=org.apache.log4j.net.WL_JMSAppender param name=TopicConnectionFactoryBindingName value=java:comp/env/jms/theTopicConnectionFactory/ param name=TopicBindingName value=java:comp/env/jms/theTopic / param name=JNDIContextFactory value=com.evermind.server.ApplicationClientInitialContextFactory/ param name=URLContextFactory value=ormi://localhost/mCare / param name=User value=admin / param name=Passwd value=admin / /appender I've tested, it is sending a message to the topic - I changed Orion's jmschat example to receive any type o message and it does receive the messages sent by the client. Now, what do I need to put in jms.xml ?! I've only added the topic's declaration: topic name=jms/theTopic location=jms/theTopic descriptionA dummy topic/description /topic What am I missing ?!??? I'm tired ! :((( Thanks ! Eugen
RE: HELP on MessageDrivenBeans
Eugen, Take a look at the atm example. It uses a jms ejb. You will have to unpack the ear to get to the bean, but its there. Atm is in the demo directory. Regards, the elephantwalker .ps did you uncomment the jms-config tag in server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eugen Bulboaca Sent: Wednesday, June 27, 2001 9:57 AM To: Orion-Interest Subject: HELP on MessageDrivenBeans Could anybody please describe once and for all ALL the steps required in deploying an MDB under Orion ?! It's not normal, you write the code in 5 minutes and you styruggle one day or more to do the deployment :(( ! Here's what I have tried - with no success in having the bean to react : 1. Added resource-ref entries in the deployment descriptor ejb-jar.xml enterprise-beans message-driven descriptionListener message driven bean/description display-nameListener/display-name ejb-nameListenerBean/ejb-name ejb-classcom.davincitech.mCare.utils.logging.listener.ListenerBean/ejb-cl ass message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination transaction-typeContainer/transaction-type resource-ref descriptionThe log topic where log events are broadcasted.../description res-ref-namejms/theTopic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionThe Factory used to produce connections to the log topic.../description res-ref-namejms/theTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref /message-driven /enterprise-beans Orion will automatically add resource-ref-map entries in orion-ejb-jar.xml: message-driven-deployment name=com.davincitech.mCare.utils.logging.listener.ListenerBean destination-location=jms/theTopic resource-ref-mapping name=jms/theTopic / resource-ref-mapping name=jms/theTopicConnectionFactory / /message-driven-deployment Now my question : DO WE NEED TO USE destination-location AND connection-factory-location ATTRIBUTES FOR message-driven-deployment OR NOT ?! 2. I tried without those resource-ref entries in ejb-jar.xml and just setting destination-location and connection-factory-location and no success either. Now, I have a client that uses JMS to publish messages to the topic (actually is a Log4J JMS appender object) - it uses the following parameters : appender name=JMS class=org.apache.log4j.net.WL_JMSAppender param name=TopicConnectionFactoryBindingName value=java:comp/env/jms/theTopicConnectionFactory/ param name=TopicBindingName value=java:comp/env/jms/theTopic / param name=JNDIContextFactory value=com.evermind.server.ApplicationClientInitialContextFactory/ param name=URLContextFactory value=ormi://localhost/mCare / param name=User value=admin / param name=Passwd value=admin / /appender I've tested, it is sending a message to the topic - I changed Orion's jmschat example to receive any type o message and it does receive the messages sent by the client. Now, what do I need to put in jms.xml ?! I've only added the topic's declaration: topic name=jms/theTopic location=jms/theTopic descriptionA dummy topic/description /topic What am I missing ?!??? I'm tired ! :((( Thanks ! Eugen
MDB in orion 1.5.2
hey all, I have been trying to get mdb to work in orion1.5.2 I have sucessfully created and deployed my bean and have set up the orion specific orion-ejb-jar.xml file to look at my 'jms/IncomingTopic' topic and 'jms/PrimaryTCF' topicConnectionFactory from my jms.xml file. I put a couple of system.out.prinln() tags in my mdb to see when orion calls the setMessageDrivenContext and ejbCreate and it calls them sucessfully 5 times which is the value from my min-instances tag in the orion-ejb-jar.xml file so I know that it is reading it correctly. But when I set up an applicationClient to use orion's jms broker and publish to that same IncomingTopic my mdb does not output the system.out.println() tag that I placed in the onMessage() method. I have set up some test application clients to try to use those topicConnectionFactories and Topics and they work fine so I do not know what is wrong. If someone has ever set up an used a mdb in orion sucessfully could you please post your ejb-jar.xml, orion-ejb-jar.xml, and your jms.xml files so that I can figure out what I am doing wrong. thanks.
RE: test
Kevin, I have noticed this also. I have also noticed that email which is plain-text is more likely to be posted than html email. Regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of kevin1 Sent: Wednesday, June 27, 2001 11:09 AM To: Orion-Interest Subject: test I've been posting to the list, but not seeing anything...
RE: HELP on MessageDrivenBeans
I did look at the ATM example. That's the thing : in ATM the message driven bean does not declare ANY topic or connection factory. Only the publishing session bean declares them. Now, how do they make the connection between the MDB and the topic/topicConnectionFactory declared by the publisher ? Is this the ONLY way of doing it (I have just an MDB in one single jar file, the publisher is not an EJB) ? Does anybody has a simple and working example of MDB under Orion ?! All I want is to be told what needs to be in orion specific descriptors ... if anything needs to be there. I think I forgot to mention that I'm using Orion 1.4.5 And I already found out another JMS problem in this version : an auto-started client (droped the MDB :(((, too much effort to deploy it) enters in an infinite loop when receiving messages from a topic - acknowledgemnt doesn't work ?! I tried to update to 1.4.7 and it does not work AT ALL (no more messages). Thanks ! Eugen -Original Message- From: elephantwalker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 1:23 PM To: Orion-Interest Subject: RE: HELP on MessageDrivenBeans Eugen, Take a look at the atm example. It uses a jms ejb. You will have to unpack the ear to get to the bean, but its there. Atm is in the demo directory. Regards, the elephantwalker .ps did you uncomment the jms-config tag in server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Eugen Bulboaca Sent: Wednesday, June 27, 2001 9:57 AM To: Orion-Interest Subject: HELP on MessageDrivenBeans Could anybody please describe once and for all ALL the steps required in deploying an MDB under Orion ?! It's not normal, you write the code in 5 minutes and you styruggle one day or more to do the deployment :(( ! Here's what I have tried - with no success in having the bean to react : 1. Added resource-ref entries in the deployment descriptor ejb-jar.xml enterprise-beans message-driven descriptionListener message driven bean/description display-nameListener/display-name ejb-nameListenerBean/ejb-name ejb-classcom.davincitech.mCare.utils.logging.listener.Listen erBean/ejb-cl ass message-driven-destination destination-typejavax.jms.Topic/destination-type /message-driven-destination transaction-typeContainer/transaction-type resource-ref descriptionThe log topic where log events are broadcasted.../description res-ref-namejms/theTopic/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref resource-ref descriptionThe Factory used to produce connections to the log topic.../description res-ref-namejms/theTopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref /message-driven /enterprise-beans Orion will automatically add resource-ref-map entries in orion-ejb-jar.xml: message-driven-deployment name=com.davincitech.mCare.utils.logging.listener.ListenerBean destination-location=jms/theTopic resource-ref-mapping name=jms/theTopic / resource-ref-mapping name=jms/theTopicConnectionFactory / /message-driven-deployment Now my question : DO WE NEED TO USE destination-location AND connection-factory-location ATTRIBUTES FOR message-driven-deployment OR NOT ?! 2. I tried without those resource-ref entries in ejb-jar.xml and just setting destination-location and connection-factory-location and no success either. Now, I have a client that uses JMS to publish messages to the topic (actually is a Log4J JMS appender object) - it uses the following parameters : appender name=JMS class=org.apache.log4j.net.WL_JMSAppender param name=TopicConnectionFactoryBindingName value=java:comp/env/jms/theTopicConnectionFactory/ param name=TopicBindingName value=java:comp/env/jms/theTopic / param name=JNDIContextFactory value=com.evermind.server.ApplicationClientInitialContextFactory/ param name=URLContextFactory value=ormi://localhost/mCare / param name=User value=admin / param name=Passwd value=admin / /appender I've tested, it is sending a message to the topic - I changed Orion's jmschat example to receive any type o message and it does receive the messages sent by the client. Now, what do I need to put in jms.xml ?! I've only added the topic's declaration: topic name=jms/theTopic
-deploy -parent name not setting parent attribute on application element
I have noticed that when running java -jar admin.jar serverinfo -deploy -parent parentname -file ... does not set the parent attribute on the application element in the server.xml. This causes JNDI lookups to beans in the parent from the child to fail after the server has been restarted. Has anyone seen a fix to this?
RE: MDB in orion 1.5.2
Look at bug 512. Your orion-ejb-jar.xml is being overwritten by orion because of a double-deploy issue with some ejb's. Look at the orion-ejb-jar.xml in the deployment directory, make sure it is the one you put in the ejb.jar. This doesn't seem to be a problem with version 1.5.1 and earlier. There is no workaround except to use an earlier version. Regards, the elephantwalker. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim Pouyer Sent: Wednesday, June 27, 2001 11:15 AM To: Orion-Interest Subject: MDB in orion 1.5.2 hey all, I have been trying to get mdb to work in orion1.5.2 I have sucessfully created and deployed my bean and have set up the orion specific orion-ejb-jar.xml file to look at my 'jms/IncomingTopic' topic and 'jms/PrimaryTCF' topicConnectionFactory from my jms.xml file. I put a couple of system.out.prinln() tags in my mdb to see when orion calls the setMessageDrivenContext and ejbCreate and it calls them sucessfully 5 times which is the value from my min-instances tag in the orion-ejb-jar.xml file so I know that it is reading it correctly. But when I set up an applicationClient to use orion's jms broker and publish to that same IncomingTopic my mdb does not output the system.out.println() tag that I placed in the onMessage() method. I have set up some test application clients to try to use those topicConnectionFactories and Topics and they work fine so I do not know what is wrong. If someone has ever set up an used a mdb in orion sucessfully could you please post your ejb-jar.xml, orion-ejb-jar.xml, and your jms.xml files so that I can figure out what I am doing wrong. thanks.
Re: Cookies larger than 20k
This page from Netscape: http://home.netscape.com/newsref/std/cookie_spec.html states that you shouldn't expect clients or severs to deal with cookies over 4k in size. It even suggests that cookies longer than that should be truncated. Not sure if there is a relevant RFC that supercede this information. mark The Procter Gamble Co. [EMAIL PROTECTED] Internet Mail Message Received from host: Joseph B. Ottinger [EMAIL PROTECTED]To: Orion-Interest [EMAIL PROTECTED] Sent by:cc: (bcc: Mark Mascolino-MR/PGI) [EMAIL PROTECTED]Subject: Re: Cookies larger than 20k 06/27/01 07:08 AM Please respond to Orion-Interest On Tue, 26 Jun 2001, Orion Developers wrote: We're having problems passing cookies greater then 20k in size. We get a http: 413 error, and the servlets seem to truncate over that limit. There's some seriously debatable value in using cookies over 20k in size. I'd really suggest you reconsider this. Really. And no, I have no worthwhile contribution other than a sense of Gee, do you REALLY want to hang yourself or your users like this? Also, is there a version/bug fix list available to the public? we are on 1.4.5 and I am wondering about 1.5.2, and what issues have been addressed. Check out changes.txt, as usual. Finally, has ANYONE had any success getting ahold of Cadrion, the alleged 'support partner' of Orion?? While I can't speak for Cadrion *or* Ironflare... I understand Cadrion had some issues a while back, unrelated to Orion. Check www.atlassian.com/support/ out; it looks like LITERALLY the same thing. _ Get your FREE download of MSN Explorer at http://explorer.msn.com --- Joseph B. Ottinger [EMAIL PROTECTED] http://adjacency.org/ IT Consultant
Re: clustering + ssl together
nice one. since the purpose of the work we've both been doing is to get a clustered SSL setup going, would it be worth adding something to the bug report? i.e. which asks karl and magnus very nicely to see if they can create a clustered SSL setup? greg - Original Message - From: elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 3:57 PM Subject: RE: clustering + ssl together Greg, I just logged this as bug 525. The ssl loadbalancer just won't accept connections with https://, but will accept connections with http://. Basic problem with the code. Its not us. Karl and Magnus need to fix this. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker Sent: Tuesday, June 26, 2001 9:59 PM To: Orion-Interest Subject: RE: clustering + ssl together Greg, I just tried something which ALMOST worked. I tried the secure loadbalancer instance like this in the browser: http://localhost:443/mysecuresite/login. The secure loadbalancer showed a session id, and forwarded the request to the secure island! Of course the site didn't do anything, since it was looking for a handshake. It looks like the loadbalancer is just not doing its bit...it is refusing all connections which are secure. regards, the elephantwalker -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Greg Matthews Sent: Tuesday, June 26, 2001 3:00 PM To: Orion-Interest Subject: Re: clustering + ssl together ew, i was trying to run a single secure load balancer with it's own load-balancer.xml. loadbalancer did register the 2 orions i'd set up to appear in the cluster, but after being able to see them appear on the loadbalancer screen, i was still unable to access my web app. the browser just sat there with the little IE symbol spinning, but no joy. all orions and the loadbalancer had their own keystore setup using a test certificate generated from thawte.com loadbalancer = secure and on port 443 (on box1) orion1 = secure and on port 443 (on box2) orion2 = secure and on port 8080 (on box1) !! but only in some experiments. i also tried various other configurations of the loadbalancer and cluster machines having secure on/off, etc. and swapping the port numbers around, e.g. when loadbalancer and orion2 were both running, they were both secure=true but obviously only one can run on port 443 at one time, so i made orion2 run on port 8080 while secure=true was set. i also had a look at apache for how to setup SSL but it looks like you've got to compile the mod in yourself for win32 so i've given that a miss for the moment. greg. - Original Message - From: elephantwalker [EMAIL PROTECTED] To: Orion-Interest [EMAIL PROTECTED] Sent: Wednesday, June 27, 2001 2:48 AM Subject: RE: clustering + ssl together Here are the hickups in the plan so far...see below. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of elephantwalker Sent: Monday, June 25, 2001 1:29 AM To: Orion-Interest Subject: RE: clustering + ssl together Greg, I am doing this now, so I will get back to the list when I am finished. This is my working plan: 1. there are two loadbalancers instances, one for http and one for https. These can be on the same machine or seperate machines. hickup At one level this works, but you have to set the minimumIsland/maximumIsland so that each respective loadbalancer picks up either the https island or the http island. However, https connections do not work. It could be because of this blurb in the load-balancer.xml description: secure - Whether or not to use SSL. The default is false. SSL is only used when using session (not IP) based balancing and the backend and the site is using SSL. If you specify the balancer to use SSL then the backend servers will not (the balancer converts to HTTP, ie contains the SSL layer). Note that this puts the strain of decoding the SSL on the balancer. I'm sorry, but does this say that we have the option of NOT using SSL for the balancer, but using it for the backend? Or if we use SSL for the balancer, SSL isn't used on the backend (and thus we have to strip all of the SSL configuration from the backend)? /hickup 2. the ports for your web-sites can be different from your loadbalancer(s) port. This allows you to have the loadbalancer and an orion instance on the same machine, for example. Or the ports can be the same, in which case the loadbalancer(s) has to be on a different machine. hickup Since web-sites are load-balanced (not applications), its important that each *web-site.xml which you use have its own island. This is done by setting the cluster-island attribute in the web-site tag. See above for reference to min/max
Re: MDB in orion 1.5.2
ok, finaly got my mdb working, it took me ten minutes to write and a whole day to deploy. You gotta love j2ee. So here is my little tidbit of knowledge for all of you that are currently feeling what was my frustration about an hour ago. Steps to deploy message driven been in orion1.5.2 in your code for your mdb make sure that your class only implements MessageDrivenBean and does not implement MessageListener. This was a tough one to figure out but you have to remember that these guys built this container before the ejb2.0 spec was final. I still don't think that it is completely finialized. Now compile your code into a ejb-jar making sure to use the ejb.jar file from you orion directory and not the j2sdkee1.3 j2ee.jar file. Your ejb-jar.xml file should look like the xml snipit at the bottom of this posting. After you have deployed your mdb in orion browse to the application-deployments directory and choose the folder with the name of your application. Then browse to the folder with the name of your mdb bean. Open the orion-ejb-jar.xml file in that directory. most of the node orion has already generated for you but you will have to make some modifications in order to tell orion what connection factory to use and what topic or queue for it to look at. You will need to add a cache-timeout, connection-factory-location, destination-location, max-instances, min-instances, and name attributes to the message-driven-deployment node. I am not sure if order is important here or not but to be on the safe side and avoid a lot of agrivation I would follow the above order since it is the order given on the orion site. I have provided an example of my orion-ejb-jar.xml file at the bottom of this post. Finaly make sure that you have added the topicConnectionFactory's that you specify in your deployment descriptors to the jms.xml file located in the config directory of orion. the names sould be exact, that means that they are case sensitive so watch out for that mistake. And be sure to uncomment the jms-config node located in the sever.xml file in your orion config directory. I have also included my jms.xml file at the bottom of this post. I hope that this will clear some things up for some of you. Hopefully those of you getting ready to try this for the first time will make good use of this knowledge and not spend all day just trying to get the mdb's to work. As a quick test I would recomend modifing the jmschat example to connect to the topic your mdb is listening to using the connection factory you have created. And put a System.out.println("This is my onMessage() method"); tag into your onMessage(Message msg) method in your mdb then when you use the modified jmschat example to send a message you should see this output on your screen then you will know that your mdb is working properly. // = // // This is my jms.xml file // // = // jms-server host="10.1.100.3" port="9127" !-- = -- !-- Topic Connection Factory bindings, these will be used to obtain -- !-- JNDI names for administered objects -- !-- Quick note use an ip address for the topic-connection-factory host attribute when possible -- !-- if you will be using a remote client to connect to your orion jms server it will need to be set to -- !-- whatever your server's ip address is and not to 'localhost' or '127.0.0.1' otherwize it will not-- !-- allow you to connect -- !-- = -- topic-connection-factory host="xxx.xxx.xxx.xxx" location="jms/PrimaryTCF" password="exim00" port="9127" username="admin" / !-- = -- !-- Queue bindings, these queues will be bound to their respective -- !-- JNDI path for later retrieval -- !-- = -- queue name="Demo Queue" location="jms/demoQueue" descriptionA dummy queue/description /queue !-- = -- !-- Topic bindings, these topic will be bound to their respective -- !-- JNDI path for later retrieval -- !-- = -- topic name="Demo Topic" location="jms/demoTopic" descriptionA dummy topic/description /topic topic location="jms/IncomingTopic" name="IncomingTopic" descriptionTopic for incoming messages/description /topic !--
Configuring Orion to use CocoBase
Hi All, I hope this is not a really stupid question but has anyone used CocoBase with Orion as I am having some trouble configuring and using it. I know it is not one of the CocoBase supported servers but I have created the CocoDeploy.jar file (including license.properties) and added it to the Orion /lib directory. I have been attempting to add CocoBase as a data source through the data-sources.xml config file but without success; data-source class=com.evermind.sql.DriverManagerDataSource name=cocodriver location=jdbc/cocodriver xa-location=jdbc/xa/cocodriverXADS ejb-location=jdbc/cocodriverDS connection-driver=thought.CocoBase.CocoPowder username=sa password= url=jdbc:HypersonicSQL:./database/defaultdb inactivity-timeout=30 / I am sure this is wrong but am unsure what the correct values should be or how to obtain them so any help would be much appreciated Thanks in advance Evan
How to bind entityBean's cmp-field attribute with DataBase table' field?
Hi, I am transfer my application from weblogic to orion platform. I encounter some problem with entityBean. How can I bind entityBean's cmp-field attribute with DataBase table' field. my ejb_jar.xml is entityejb-namesequence.SequenceHome/ejb-namehomesequence.SequenceHome/homeremotesequence.Sequence/remoteejb-classsequence.SequenceBean/ejb-classpersistence-typeContainer/persistence-typeprim-key-classsequence.SequencePK/prim-key-classreentrantFalse/reentrantcmp-fieldfield-namesequenceId/field-name/cmp-fieldcmp-fieldfield-namelastNumber/field-name/cmp-fieldcmp-fieldfield-nameminNumber/field-name/cmp-field/entity -- my Question is how to tell entityBean to use which table? and how to combine cmp-field with database field? and althogh I have specified datasource at data-sources.xml, how to specify method to connect with database, ? any help thanks.
Test
Test -- Aaron Scott-Boddendijk +64 7 838 3371 VOICE +64 7 838 3372 FAX e-Mail: [EMAIL PROTECTED]
RE: MDB in orion 1.5.2
Tim, Do you mind if we take this document and put it up on OrionSupport.com ? We'll gladly attribute you / your company as the author. Cheers, Mike Mike Cannon-Brookes - Founder, Core DeveloperOpenSymphony - http://www.opensymphony.com"The Open Source J2EE Component Project" Latest News- Cache in on faster, more reliable JSPshttp://www.javaworld.com/javaworld/jw-05-2001/jw-0504-cache.html -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tim PouyerSent: Thursday, June 28, 2001 9:53 AMTo: Orion-InterestSubject: Re: MDB in orion 1.5.2 ok, finaly got my mdb working, it took me ten minutes to write and a whole day to deploy. You gotta love j2ee. So here is my little tidbit of knowledge for all of you that are currently feeling what was my frustration about an hour ago. Steps to deploy message driven been in orion1.5.2 in your code for your mdb make sure that your class only implements MessageDrivenBean and does not implement MessageListener. This was a tough one to figure out but you have to remember that these guys built this container before the ejb2.0 spec was final. I still don't think that it is completely finialized. Now compile your code into a ejb-jar making sure to use the ejb.jar file from you orion directory and not the j2sdkee1.3 j2ee.jar file. Your ejb-jar.xml file should look like the xml snipit at the bottom of this posting. After you have deployed your mdb in orion browse to the application-deployments directory and choose the folder with the name of your application. Then browse to the folder with the name of your mdb bean. Open the orion-ejb-jar.xml file in that directory. most of the node orion has already generated for you but you will have to make some modifications in order to tell orion what connection factory to use and what topic or queue for it to look at. You will need to add a cache-timeout, connection-factory-location, destination-location, max-instances, min-instances, and name attributes to the message-driven-deployment node. I am not sure if order is important here or not but to be on the safe side and avoid a lot of agrivation I would follow the above order since it is the order given on the orion site. I have provided an example of my orion-ejb-jar.xml file at the bottom of this post. Finaly make sure that you have added the topicConnectionFactory's that you specify in your deployment descriptors to the jms.xml file located in the config directory of orion. the names sould be exact, that means that they are case sensitive so watch out for that mistake. And be sure to uncomment the jms-config node located in the sever.xml file in your orion config directory. I have also included my jms.xml file at the bottom of this post. I hope that this will clear some things up for some of you. Hopefully those of you getting ready to try this for the first time will make good use of this knowledge and not spend all day just trying to get the mdb's to work. As a quick test I would recomend modifing the jmschat example to connect to the topic your mdb is listening to using the connection factory you have created. And put a System.out.println("This is my onMessage() method"); tag into your onMessage(Message msg) method in your mdb then when you use the modified jmschat example to send a message you should see this output on your screen then you will know that your mdb is working properly. // = // // This is my jms.xml file // // = // jms-server host="10.1.100.3" port="9127" !-- = -- !-- Topic Connection Factory bindings, these will be used to obtain -- !-- JNDI names for administered objects -- !-- Quick note use an ip address for the topic-connection-factory host attribute when possible -- !-- if you will be using a remote client to connect to your orion jms server it will need to be set to -- !-- whatever your server's ip address is and not to 'localhost' or '127.0.0.1' otherwize it will not-- !-- allow you to connect -- !-- = -- topic-connection-factory host="xxx.xxx.xxx.xxx" location="jms/PrimaryTCF" password="exim00" port="9127" username="admin" / !-- = -- !-- Queue bindings, these queues will be bound to their respective -- !-- JNDI path for later retrieval -- !--