[JBoss-user] Re: [JBoss-dev] Hong Kong training
You should really have a Thailand training too... =] --jason On Wednesday, November 27, 2002, at 09:05 AM, marc fleury wrote: Guys, the training in January 14-17th in Hong Kong. We lowered the price to $2000 for early registration and it is the only training I am personally doing in Q12003. Can't get better than that. The early bird price is until Dec 15th so start early. see you in HK marcf xx Marc Fleury, Ph.D. President, Founder JBoss Group, LLC xx --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [JBoss-dev] JBoss Training @ Geneva
This is resolved. --jason On Monday, November 4, 2002, at 11:26 AM, Alex Loubyansky wrote: Hello Sacha, clicking on Read More on the site I get HTTP ERROR: 404 /services/training Not Found alex Monday, November 04, 2002, 7:12:31 PM, you wrote: SL Hello, SL It seems that no e-mail address was available on JBoss.org web site to SL subscribe to the Geneva training. SL If you want to register for the JBoss Advanced Training taking place in SL Geneva at the end of the month (25-28 November 2002), please use this e-mail SL address: SL mailto:sales;jboss.org?subject=Geneva SL It's gonna be a great training! (well, like all JBoss trainings ;) ) SL Cheers, SL Sacha -- Best regards, Alex Loubyansky --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development --- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [JBoss-dev] tomcat4 log dir in jboss3-rc1
Is there a way to access properties from the tomcat config? If so it should set the log dir in ${jboss.server.home.dir}/log --jason Quoting David Ward [EMAIL PROTECTED]: I don't know the ins-and-outs of creating a change request, but was wondering if for the next rc of jboss3-tomcat4 the tomcat4-service.xml file could be changed in this way: From this: Valve className = org.apache.catalina.valves.AccessLogValve prefix = localhost_access suffix = .log pattern = common directory = ../jboss/log / To this: Valve className = org.apache.catalina.valves.AccessLogValve prefix = localhost_access suffix = .log pattern = common directory = ../server/default/log / Currently it assumes the old JBoss-2.4.x-Tomcat-x.x.x dir structure where jboss and tomcat/catalina were next to eachother as subdirs, which isn't the case anymore. Thanks, David As an aside, I like how the Ajp13 connector example is included in the XML, but personally I think it would be cool to (leave it in there) but comment it out by default. Maybe also include (but leave commented out) Warp - and maybe the new Coyote (http://cvs.apache.org/viewcvs/jakarta-tomcat-connectors/coyote/)? - Connector lines. Thanks again. ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development - This mail sent through IMP: http://horde.org/imp/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-dev] Re: [JBoss-user] New EJB-QL compiler (ORDER BY and DynamicQL)
The developers list is NOT the place for questions like this. Please use the user forums: http://main.jboss.org --jason vijaya wrote: Hi guys We want to deploy CMP ejbs on JBoss with the MS SQL Server 2000 as the database server.The question is Are there any freely downloadable MS SQL jdbc thin drivers available? If yes could you plz give details about that products and its configuration details. Thanks in advance Best regards Aswarth - Original Message - From: Dain Sundstrom [EMAIL PROTECTED] To: JBoss-dev [EMAIL PROTECTED]; JBoss-user [EMAIL PROTECTED] Sent: Wednesday, February 27, 2002 8:39 AM Subject: [JBoss-user] New EJB-QL compiler (ORDER BY and DynamicQL) The new EJB-QL compiler is finished and checked in tip. The new compiler is a complete rewrite in JavaCC, and is much faster, easier to maintain, and has error messages. I was surprised by the number of errors I found in the old parser. You guys haven't been pushing the engine enough, so to give you incentive to test the new engine I've added several new features. Error messages: This is not really a feature but as we didn't have them before it feels like a feature. JBossQL: I actually wrote two compilers a spec compliant EJB-QL compiler and JBossQL compiler. JBossQL is a superset of EJB-QL which adds support for ORDER BY. To use JBossQL you override ejb-ql declaration in your jbosscmp-jdbc.xml file with a jboss-ql element (i.e. just copy the query element from your ejb-jar.xml file, change ejb-ql to jboss-ql and add the order by clause. The BNF for order by follows: JBossQL := select_clause from_clause [where_clause] [order_by_clause] order_by_clause := ORDER BY order_by_path_expression ( , order_by_path_expression)* order_by_path_expression := ( numeric_valued_path | string_valued_path | datetime_valued_path ) [ASC | DESC] dynamic-ql: The new compiler is eye-blink fast, so I added a new query type dynamic-ql. With dynamic-ql you can generate a JBossQL query and pass it along with the parameters to the engine to be compiled and execute at runtime. To use this query you add an ejbSelect method to your bean with the following signature: return-type ejbSelectsome-name(String jbossQL, Object[] args) You must declare the query type in your ejb-jar.xml (required by the spec; just leave the ejb-ql element empty) and in your jbosscmp-jdbc.xml file override the impl with an empty dynamic-ql/ element. For more info specifying the queries, see the jbosscmp-jdbc_3_0.dtd Please, post follow-ups in the online forum at http://main.jboss.org/thread.jsp?forum=46thread=9743 -dain ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Re: [JBoss-dev] Tshirts at JavaOne FREE TRAINING
It's kinda late... but what about stickers? I would put one on my car and motorcycle... I would guess that others would too... --jason marc fleury wrote: OK we have a winner, well actually we have two. JBoss: All your J2EE are belong to us JBoss: May the source be with you Thanks for all the great proposals. We chose based on we won and went with classic stuff. So we put an order for 1000 of them, which is going to cost us AN ARM AND A LEG and take a bulky 21 boxes space that we need a truck to move. You guys better show up and buy them. WE WILL TIE IN A RAFFLE: BUY A T-SHIRT, AND GET A FREE SPOT AT A JBOSS GROUP TRAINING. Buy a t-shirt, give us your b-card, and we will pick a winner on wednesday night, you get a free training with the gurus ($3500 cost). For those that can't come to JBoss One, if you give us a bulk order of 10 + shipping ($230) then we will put you in the raffle but the order needs to reach us before the end of the JB1 conference when we will pick a winner, so you basically have a month to put the order. We will put the information online but basically write to a href=mailto:[EMAIL PROTECTED]?subject=10 tshirts pleasesales/a and when we get your paypal payment we will send it. You will join the raffle. We will put this online. BTW for the raffle it is ONE card PER tshirt. So if you buy 10 t-shirts you multiply your chances by 10. Is this as good as it gets? take care see you there, marcf ___ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss website down
As some of you may know, we are having some trouble with the JBoss website (www.jboss.org). We apologize for any inconvenience this may have caused you. We are looking into the problem now. Marc has been parachuted into Denver to investigate the problem in person and to help ensure a rapid recovery. We plan to have the system back online for usage on Monday. Again, sorry for the inconvenience. We will let you know when www.jboss.org is online again. --jason
[JBoss-user] Re: jetty integration with apache
I was avoiding posting to jetty-discuss right away, as I didn't really do that much research (short of a few websearches) on the matter. Let me clarify though. I was hoping to make use of apache's facilities for these advanced configurations and simply proxy other requests over to JBoss. The trick would be to make sure that the url mappings look consistent from the Apache standpoint. So if there was a virtual host foo.mydomain.com, and jboss was running on mydomain.com:8080, then apache could proxy requests to a j2ee app deployed, but appear to be foo.mydomain.com. The webuser would never know about mydomain.com:8080. I know that some of this is possible with mod_proxy, but I am not so sure about the rest. I don't think that Jetty should try to incorporate all of the features and functionality of Apache. Instead, allow for JBoss/Jetty to be hooked up to Apache seemlessly and get the best of both worlds. --jason On Mon, 10 Dec 2001, Julian Gosnell wrote: Jason, As far as i know - YES You should post on [EMAIL PROTECTED] where i am sure Greg will be able to point you to the relevant doc and summarise various pros and cons. Jetty supports virtual hosts, but this has not been integrated with JBoss as AFAIK, the Deployer does not yet support this (since J2EE doesn't???). Ask Greg re URL rewriting. Please let the list know of any other 'advanced features' that you feel Jetty (or JBoss/J2EE) is lacking, so they can be considered. I'm crossposting you to jetty-discuss, and jboss-user, as the points this thread raises may be of value to other participants. Jules Jason Dillon wrote: Hey, do you know if any integration support between jetty and apache? Like tomcat does with mod_webapp? I think it would be a good idea if it was easy to integrate jboss with apache as easily as possible. This would allow users to make use of the advanced web support it provides (virtual hosts, url re-writing...). snip... Anyways, I don't really care if it is jetty or tomcat that is shipped default with JBoss, just that which ever it is can be easily plugged into apache. Perhaps jetty can support mod_webapp, if not perhaps there is another alternative which could be used for tighter integration. Just want to see if you might have more information on the subject. :) --jason _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] TopLink for CMP
You might have better luck asking this in the online forums: http://jboss.org/forums/ --jason On 7 Dec 2001, Christopher Blunck wrote: Hello- I'm a java developer using WLS5.1 + TopLink 2.5.1. We're migrating to WLS6.1 + TopLink 3.6. I'm trying to convince the higher ups to go to JBoss2.4.3. However, our app depends heavily upon TopLink for CMP. I've done some searching on if TopLink CMP is supported by JBoss but can't find any definitive answers. Has anyone tried this and gotten it to work? -c ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: NNTP gateway? Re: [JBoss-user] jboss-user shutdown
We are still trying to work out some kinks with the NNTP mirror, once that has been handled we will. --jason On Tue, 4 Dec 2001, Reynir Hübner wrote: great!!! promote this and most people will be happy.. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jboss-user shutdown
This was imported from the news group. If this is meant to be user read-only then we should change its group from jboss.user.faq to jboss.faq, since we currently only allow users to post to stuff under jboss.user.* --jason On Tue, 4 Dec 2001, marc fleury wrote: |Hopefully the new policy that only a few people can post on the FAQ |forum will help that. I did set it up that way but saw a random post in there from a user, can I ask one of you guys to try and post directly and see if it does post to faq or not? I don't know that the security configuration was picked up correctly BTW, let me know if you want to be added to the moderator faq group, I will add you guys marcf | | |-danch | | |___ |JBoss-user mailing list |[EMAIL PROTECTED] |https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] where is CMP2.0 documentation?
The docs are online for free. An opensource project needs to make some money to sustains itself too. --jason On Mon, 3 Dec 2001, Hicks, James wrote: Why is the JBoss Group charging for documentation? An opensource project should have freely available documentation. How can a project survive if nobody knows how to set it up? James Hicks -Original Message- From: Herve Tchepannou [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 8:39 AM To: jboss Subject: [JBoss-user] where is CMP2.0 documentation? Im looking for the 2.0 documentation, but I can't find it. anyone has the link? Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-dev] RE: [JBoss-user] where is CMP2.0 documentation?
Nevermind my previous comment... =| --jason On Mon, 3 Dec 2001, marc fleury wrote: where is CMP2.0 documentation?then go ahead an give us that free documentation, the developer of the feature dain, has opted for the for-pay documentation for this advanced feature, if you are too cheap to pay dain $5 bucks for the advanced feature you can read the code regards marcf -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hicks, James Sent: Monday, December 03, 2001 7:57 PM To: jboss; [EMAIL PROTECTED] Subject: [JBoss-dev] RE: [JBoss-user] where is CMP2.0 documentation? Why is the JBoss Group charging for documentation? An opensource project should have freely available documentation. How can a project survive if nobody knows how to set it up? James Hicks -Original Message- From: Herve Tchepannou [mailto:[EMAIL PROTECTED]] Sent: Monday, December 03, 2001 8:39 AM To: jboss Subject: [JBoss-user] where is CMP2.0 documentation? Im looking for the 2.0 documentation, but I can't find it. anyone has the link? Herve Tchepannou Software Engineer Objexis Coorporation Phone: (514) 932 3295 Ext. 231 mailto:[EMAIL PROTECTED] Objexis Coorporation http://www.objexis.com 1635 Sherbrooke West, Suite #405 Montreal, Qc H3H 1E2 Tel: 514.932.3295 Fax: 514.932.4639 http://www.objexis.com Important - This message may contain privileged and confidential information. It is intended only for the use of the individual(s) named above. If the reader of this message is not the intended recipient you are hereby notified that any use, dissemination, distribution or reproduction of this message is prohibited. If you have received this message in error please notify Objexis Corporation immediately and promptly delete this message and any copies thereof. Any views expressed in this message are those of the individual sender and may not necessarily reflect the views of Objexis Corporation. ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss3.0 Alpha , Ant, buildMagic.
What on earth are you talking about? What is 'mail' in reference to a build.xml file under the admin directory? --jason On Wed, 28 Nov 2001, joel cordonnier wrote: hi ! I just download the daily snapshot of JBoss3.0. Where is the 'mail' build.xml file ?? in admin directory ?? Thanks /Joel ___ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Courrier : http://courrier.yahoo.fr ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] [ANN] JBoss 3.0 alpha is out
Are we going to release the .tgz too? --jason On Wed, 21 Nov 2001, marc fleury wrote: This is it! http://prdownloads.sourceforge.net/jboss/jboss-3.0.0alpha.zip we will have the link on www.jboss.org shortly so go gentlemen, you know what is in there, clustering, EJB 2.0, sar, cl microkernel, the future. Can you hear those gun shots in the distance? that is us slugging it with the big boys, that is us beating the crap out them, we believe, we believe in it, we believe in it more than they do. Come help us, we need you. We need you to download the stuff, we need you to buy the documentation from Dain on EJB 2.0 CMP, we need you to test and debug, we need you to strech it we need you to push it in your own vincinity, this is how we play the game. Play your part, help us establish JBoss as the Open Monopoly for web-app server infrastructure. we need you to code, pick up your keyboards and join our legions. We need you dude. And remember we love you too, PLgC marcf Marc Fleury President JBoss Group, LLC ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] does JBoss2.4 support SOAP
ZOAP is no longer active. If you're after SOAP support have a look at Apache SOAP. cheers dim On Wed, 12 Sep 2001, Devraj Mukherjee wrote: I know that it does, ZOAP i think is that product listed on the Jboss web site At 10:43 12/09/2001 +0530, you wrote: Hi all, Can anyone clarify my doubt is whether JBoss2.4 support SOAP or not. If so, please give me details how can i implement SOAP on JBoss. Thanks in advance, Krishna * 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 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] SonicMQ and JBoss
I have been working on integrating SonicMQ for the past few days... so far with out luck. It looks like there JNDI storing fluff will not bind resources from there broker to the JBoss naming service unless there is something already bound there. I hear that they are fixing that, but I am not sure when that will happen. To get around that I have played with there jclient api, to create and bind references myself (since they do not provide a configuration file to define queues/topcis/connectionFactories I needed to do that anyways). Now I am unable to get past an EUserAlreadyConnection exception that is thrown for user/pass / (which should be anonymous). This will only happen after a few connects. I am also unable to get Connection.close() to actually close, such that I could open another connection (for undeploy/deploy of an MDB). To top things off I get odd errors about a connection consumer and a session needing to be created from the same connection. That sounds fine, but wait... there is only one connect that is created, which is used to create the consumer, which is then used to construct the server session pool. So I can only see one connection. Given that there JNDI store does not work... and only provides a rather dumb error of X not bound (where X is the destination name), I am not surprised really at some of the other dumb messages that I have seen. I am surprised however that this is actually a product and that people pay money for it. --jason On Mon, 16 Jul 2001, Crothers.Dean wrote: Hi, I would be interested to hear if anybody has integrated SonicMQ with JBoss - so that SonicMQ is the MOM provider for message driven beans? thanks, Dean ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EOFException using MDB with standalone JMS clientand XAException - XAER_NOTA
I'm trying to use MDBs to enable async operations between different EJBs. The situation I have atm is an entity, a session, a MDB and a stand alone client. In short, I get the following exception on the server: java.io.EOFException at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1907) at org.jbossmq.distributed.server.DistributedJMSServerOIL.run(DistributedJMSServerOIL.java:79) at java.lang.Thread.run(Thread.java:484) You might try to UIL or the RMI IL, though you might run into a socket hang during heavy load, due to a race condition... which I still can't find, but it is there. You might also try getting the CVS version of JBossMQ and trying that. I am running into the same problems. I went through all of the IL (short of the INVM IL) and still could not get it to work reliably. I believe that OIL will eventually hang like the other IL's, but it is particularly annoying and keeps dumping those exceptions. I still need to try the CVS version to see if is behaves any better. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] queue deployment
That all depends on what version of JBoss you are using. f you are using a version that has a JMS resource adapter then you will want to setup your beans to use it (unless you don't care about transactions, then you can just use the JMS api as normal (just map a reference name to a jndi url). If you want to use the resource adapter (2.4+) then define the resource in the ejb-jar.xml: resource-ref res-ref-namejms/QueueConnectionFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref res-ref-namejms/MyQueue/res-ref-name res-typejavax.jms.Queue/res-type res-authContainer/res-auth /resource-ref the hookup the mappings in your jboss.xml: resource-managers resource-manager res-nameQueueConnectionFactory/res-name res-jndi-namejava:/JmsXA/res-jndi-name /resource-manager resource-manager res-nameMyQueue/res-name res-jndi-namequeue/MyQueue/res-jndi-name /resource-manager /resource-managers enterprise-beans session !-- ... -- resource-ref res-ref-namejms/QueueConnectionFactory/res-ref-name resource-nameQueueConnectionFactory/resource-name /resource-ref resource-ref res-ref-namejms/MyQueue/res-ref-name resource-nameMyQueue/resource-name /resource-ref /session /enterprise-beans * * * --jason On Sun, 15 Jul 2001, G.L. Grobe wrote: Heh, pretty much what is said. The problem is I have no idea of how to write up the descriptors for jboss. The docs discuss the config w/ MDB's and I'm not using them. Thnxs - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, July 15, 2001 2:37 AM Subject: Re: [JBoss-user] queue deployment Lets start with the problem. So what _is_ the problem? --jason On Sun, 15 Jul 2001, G.L. Grobe wrote: Date Posted: Jul 14, 2001 11:11 PM » Reply I'm sending a message to a queue w/ the following lookup in my session bean. I havn't configured anything for the descriptors nor know what needs to be done. Any help much appreciated. --- MySessionBean.java --- try { queueConnectionFactory = (QueueConnectionFactory) ctx.lookup(java:comp/env/jms/managerQueueConnectionFactory); queue = (Queue) ctx.lookup(java:comp/env/jms/managerQueue); } ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB RDBMS Issue
Perhaps I did dig a bit too deep into this one. --jason On Sun, 15 Jul 2001, Burkhard Vogel wrote: Hi, just hold your horses, there are loads of legacy apps out there, which have to share the DB with the app-server. Thats why there is the commit option C which danch already mentioned. Burkhard - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 14, 2001 12:00 PM Subject: Re: [JBoss-user] EJB RDBMS Issue The ideal way is to do all such database modifications thru the ejb interface only, but, unfortunately, that is not the case for me. Any inputs on problems i might face? How about, why on earth would you do something like that? What external thingy is going to delete records and leave your application in a state of confusion. Are you trying to write a Microsoft application? I don't think there is part of the EJB spec that says what will happen when some other application deletes a record, drops a table or reboots the database. If it does, let me know... I am in for a good chuckle. On a positive note, you might want to reconsider the usage of entity beans if the case truly is that you can not avoid the situation you described above. Perhaps you want a session facade to a table or perhaps you don't really want an EJB at all. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to send message to MDB
It is just like sending to any other JMS queue (or topic for that matter). Lookup the connection factory, lookup the destination (a queue), create a connection, create a session, create a producer (sender in this case) and send. If you are in a tx session, then commit, else close everything and get on with your life. If you used JNDI to lookup your resources, you should close the context too. --jason On Sat, 14 Jul 2001, Rajesh Vilasrao Bhujbal wrote: Hi, I developed a MDB called TestMDB. This MDB uses queue. I want to send message to this MDB through java client running on different machine. how to do it? I have already seen example in jboss manual, but it doesn't give code/method for accessing MDB through client. my question is how to get context to message queue and queueconnection factory? Regards rajesh ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] jboss on start up
Just wait 'till the 6.1 kernel comes out; it's gonna be sweet! =P --jason On Fri, 13 Jul 2001, Richard Bottoms wrote: In short, there is no Linux 6.1. There is a RedHat Linux distribution that has a 6.1 version That's what the RH refers to: I'm running RH Linux 6.1. Thanks, r.b. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB RDBMS Issue
The ideal way is to do all such database modifications thru the ejb interface only, but, unfortunately, that is not the case for me. Any inputs on problems i might face? How about, why on earth would you do something like that? What external thingy is going to delete records and leave your application in a state of confusion. Are you trying to write a Microsoft application? I don't think there is part of the EJB spec that says what will happen when some other application deletes a record, drops a table or reboots the database. If it does, let me know... I am in for a good chuckle. On a positive note, you might want to reconsider the usage of entity beans if the case truly is that you can not avoid the situation you described above. Perhaps you want a session facade to a table or perhaps you don't really want an EJB at all. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] More than one TopicConnectionFactory??
Where are you expecting that it will be bound too? Where is the topic factory connection that you wish DurableTopicConnFactory to be bound to? Perhaps you should specify the jndi-name? --jason On Fri, 13 Jul 2001, Scott Bermon wrote: Can I create more than one TopicConnectionFactory? I would like to use one for Durable Subscribers and the other for non-durable. But when I try to access the DurableTopicConnFactory it says it's not bound. In JNDIView there is only one entry for TopicConnectionFactory. HELP! jboss.xml -- resource-ref res-ref-namejms/DurableTopicConnFactory/res-ref-name resource-namejms/DurableTopicConnFactory/resource-name /resource-ref resource-ref res-ref-namejms/TopicConnectionFactory/res-ref-name resource-namejms/TopicConnectionFactory/resource-name /resource-ref . ejb-jar.xml --- resource-ref descriptionSupports Durable Subscriber for AFS-ATS/description res-ref-namejms/DurableTopicConnFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref resource-ref description/description res-ref-namejms/TopicConnectionFactory/res-ref-name res-typejavax.jms.TopicConnectionFactory/res-type res-authContainer/res-auth /resource-ref ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] BLOB
It looks like JAWS can persist objects via BLOB... but that is just a simple guess by looking at the standardjaws.xml, it has some lines that look like this: mapping java-typejava.lang.Object/java-type jdbc-typeJAVA_OBJECT/jdbc-type sql-typeBLOB(2000)/sql-type /mapping Which would lead me to believe that you could get JAWS to persist to a record with a BLOB column. I would try it. --jason On Fri, 13 Jul 2001, Ivan Novick wrote: So to create an Entity Bean for that stores a blob, would you have to use BMP? Ivan - Original Message - From: david [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 13, 2001 12:20 PM Subject: Re: [JBoss-user] BLOB Hi, Well, I wonder if it can work, I could find no way in the jdbc spec to create a new blob! So maybe you could read the picture but I don't know how JAWS could insert a new row. I hope I'm wrong, please tell me how. Thanks David Jencks On 2001.07.12 04:31:21 -0400 Burkhard Vogel wrote: Hi, If your DB driver supports blobs, why not (oracle has problems, AFAIK) Burkhard - Original Message - From: Ivan Novick [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 12, 2001 9:16 AM Subject: [JBoss-user] BLOB Can an entity bean contain a BLOB type attribute that represents a picture in a database? Ivan ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] isModified Method
The method name 'getIsModified' is redundant, at least in JavaBean terms, where the prefix 'is' refers the the getter/accessor of a boolean property. Why not just use isModified()? The above would result in a property named 'isModified', not 'modified', which basically means the same thing, one is just a bit more passive than the other. If you must, like Burkhard mentioned... define both, preferably having getIsModifed() call isModified() so the JBoss version runs it faster =) --jason On Fri, 13 Jul 2001, Syed wrote: Is there anyway to configure the name of the method isModified. Currently we are using weblogic and weblogic has a tag to indicate the name of this method. So our method name is getIsModified and if we want to use our ejbs in JBoss, we would have to modify our source code to change the method name to isModified. Thanks Best Regards, Mustaffa Syed Meerkasim. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to send message to MDB
Get your InitialContext, and TopicConnectionFactory factory = (TopicConnectionFactory)context.lookup(TopicConnectionFactory); topicConnection = factory.createTopicConnection(); topicConnection.start(); These names are defined in jbossmq.xml (at the bottom, each is an InvocationLayer). To see all of the JNDI names that are currently bound in your server instance, check out the JNDIView service (from the JMX Html Adapter; it defaults to port 8082, if you have not taken a look I certainly would). --jason On Sat, 14 Jul 2001, Wei-ju Wu wrote: But how does one retrieve the connection factory ? I didn't find any documentation to setting up the client. In Bea Weblogic you can do this: TopicConnectionFactory factory = (TopicConnectionFactory) context.lookup(weblogic.jms.ConnectionFactory); topicConnection = factory.createTopicConnection(); topicConnection.start(); What would be the equivalent in JBoss ? - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, July 14, 2001 11:40 AM Subject: Re: [JBoss-user] How to send message to MDB It is just like sending to any other JMS queue (or topic for that matter). Lookup the connection factory, lookup the destination (a queue), create a connection, create a session, create a producer (sender in this case) and send. If you are in a tx session, then commit, else close everything and get on with your life. If you used JNDI to lookup your resources, you should close the context too. --jason On Sat, 14 Jul 2001, Rajesh Vilasrao Bhujbal wrote: Hi, I developed a MDB called TestMDB. This MDB uses queue. I want to send message to this MDB through java client running on different machine. how to do it? I have already seen example in jboss manual, but it doesn't give code/method for accessing MDB through client. my question is how to get context to message queue and queueconnection factory? Regards rajesh ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Re: BLOB
I've used CMP and BLOBs with JBoss in the past. Declare the bean member variable that will hold your BLOB data as a byte[]. This will get mapped to the jdbc-type of JAVA_OBJECT. Then check (standard)jaws.xml to see that the mapping for this exists. It looks like the mapping below - BLOB(2000) - was taken from the DB2 section of standardjaws.xml. DB2 does not seem to have an arbitrary-sized BLOB type, you have to declare a maximum size for a BLOB in advance. You might want to keep this in mind when choosing a database. Postgres has a BLOB type of unlimited size. I just grep'd for a BLOB, then pasted it. I have never even used DB2, so I don't know why I picked that one =| My experience doing BLOB inserts with Postgres and DB2 and with JBoss is that it's horribly slow. I believe the database is the problem - DB2 was maybe 25% faster than Postgres but neither was fast enough for high-volume inserts, and this was with fairly small BLOBs - 10k-20k. It's possible that the overall problem was not caused by the databases but by JAWS and/or RMI overhead. Perhaps you could fix that. One thing I'd like to figure out is how to do these BLOB operations while minimizing memory use at both the client and the server. To make BLOBs work with CMP I've had to buffer the blob in memory as a byte[] member variable, both at the client and in the bean instance. Is there a more efficient way to achieve the same thing? It would be wonderful if you could declare an InputStream member and have the RMI serialization code read from this at the client w/o a lot of in-memory buffering. I know that some JDBC drivers can handle InputStream parameters on PreparedStatements, but JAWS doesn't seem to support this. As far as I know there is no way to remote an InputStream (or OutputStreams). As far as JAWS supporting InputStream params, I would say again, perhaps you could fix that. If it does exist, perhaps you could document it. Necessity is the mother of invention. If you need it, then give it life. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] 2 WEEKS EVICTION NOTICE
Ouch. --jason On Thu, 12 Jul 2001 [EMAIL PROTECTED] wrote: On Thu, Jul 12, 2001 at 03:41:12AM +0200, Peter Fagerlund wrote: Ahhh ... pushing forward is hard ... change ... the pain of growing ... cognisance dissonance - from having to change a GUI ... ;-) ... I to feel uncomfortable but recognise it is me - having to adapt really ... Just have hourly/daily/monthly *text* tome's downloadable for those who like to read and grep offline ... could be one simple solution ... Actually, when it comes to user interfaces, moving to an exclusively web based solution is a significant step backwards. With mail, the content and the presentation are very firmly separate. As a user, I am only bound by the content and I can use whatever presentation I like. I have used my mail reader for years and have become very comfortable with it. This is true for many others. If I become unhappy with the way my mail is presented, I can get _any_ other mail reader that supports the content format (SMTP) and use that in stead. The exclusively web based solution integrates both content and presentation into one. I have to be satisfied with the way the web solution chooses to present the content to me and there is no way I can change this to fit myself. Not to mention that I have to be happy with the excessively crappy web forms text editor when composing messages. It represents a step backwards in terms of usability, apparantly in order to pave the way for a step forwards in implementation (i.e., use web/jboss/whatnot). I don't like it when the usability of a service is sacrificed in favour of some behind-the-scenes implementation details that I couldn't care less about (as a user). But that's just me - a picky end user. As a developer, I find the jboss/jetty/web forum thing very interesting. But I was very disappointed to learn that it won't support SMTP as this limitation makes it largely useless for anything halfway serious. In my opinion. Cheers Bent D ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SwiftMQ and JBOSS
It is possible to configure JBoss to work with a SwiftMQ provider, but NOT for MDB. You can install a SwiftMQJMSProvider, which can return the SwiftMQ defined queue/topic/connection references, but since they do not support XA or ASF you will have a world of pain trying to get MDB working with it. You could use the SwiftMQ bridge swiftlet to bridge a SwiftMQ router (or a set of routers) to a JBossMQ provider running on each JBoss node (or on just one if you like). I ran into some problems doing this when a message listener failed to process a message on the target JBossMQ queue. If this happened then the message would persist on the local queue, leaving my other message consumers (which are attached to other non-local JBossMQ providers) unable to attempt to handle those messages. --jason On Tue, 26 Jun 2001, Rajkumar Seth wrote: We tried this but the jBOSS seems to look for Queues in it own place. I know that Swift has a JMS 1.0.2 bridge so you could bridge it to jBossMQ? Seth. -Original Message- From: Tejaswi Redkar [mailto:[EMAIL PROTECTED]] Sent: 2001 June 21 00:35 To: '[EMAIL PROTECTED]' Subject: [JBoss-user] SwiftMQ and JBOSS Does anybody have any details on making these two work together for Message Driven Beans ? Thanks Tejaswi ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user The contents of this message and any attachments are confidential and are intended solely for the attention and use of the addressee only. Information contained in this message may be subject to legal, professional or other privilege or may otherwise be protected by other legal rules. This message should not be copied or forwarded to any other person without the express permission of the sender. If you are not the intended recipient you are not authorised to disclose, copy, distribute or retain this message or any part of it. If you have received this message in error, please notify the sender by telephone (+44-20-7002-4000) and destroy the original message. We reserve the right to monitor all e-mail messages passing through our network. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Using remote ejb inside of a webapp w/Jetty
Can someone explain the exact steps (files to configure and so on) that are requried to use a remote ejb inside of a .war file running inside of Jetty. I am assuming that I need an ejb-ref in the web.xml, but how do I map a reference to a ref-jndi-name ? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Composite Primary Key and CMP.
in your ejb-jar, entity tag use something like: prim-key-classsome.package.SomeBeanPK/prim-key-class If you look at the DTD there are descriptions for all of the possible tags, you might want to have a look =) --jason On Sat, 23 Jun 2001, Devraj Mukherjee wrote: Hi all, I am trying to create a CMP Entity Bean where I need to define a combination of more than one field as the primary key for the table, I was wanting to know how do we define this in the deployment descriptors. Thank you. Regards, Devraj ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss XML Composite Primary Key and CMP.
Oh ya, just incase you were not clear on my last mail, you need to define a class that encapsulates your keys and then use that classname in your descriptor. In the 1.1 spec there is no way other way to use a compound primary key, I can not say for 2.0+. --jason On Sat, 23 Jun 2001, Devraj Mukherjee wrote: Hi all, I am trying to create a CMP Entity Bean where I need to define a combination of more than one field as the primary key for the table, I was wanting to know how do we define this in the deployment descriptors. I am a JBOSS 2.2.2 user with the default installation with Tomcat. Sorry I didn't mention this in my last email. Thank you. Regards, Devraj ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Distributed MDB JMS resouces inside of beans
1. If you get a XAxxxConnectionFactory and you do not have any process that actuallt starts the transaction, then you are in trouble. I can not seem to get any XA classes from the JMS RA, so I am not quite sure what you mean here. I was modeling the usage of JMS inside of a bean from some example from sun, could be the blue prints or the description of the dtd, not sure. 2. I have gotten the same type of exception, and as far as I can remember the solution is to put jbossmq-client.jar in your classpath, ie for server to server communication, put it in lib/ext (but I have not tested this for a while). I can try this, but it seems odd that this would fix the problem. I will look into it more. An overly simplified view of the system looks like this, showing three seperate pyshical machines: web server, manager node and router. The current architecture assumes a hub-spoke model for using JMS resources, so that all machines that actually make use of the JMS resources are remote, there are not MDB's running on the router. You mean the MDB:s are running on the nodes (subscribing to destinations in the router) and the session beans are also on the nodes, sending to destinations in the router? Correct. RMI [ web server ] +---+ [ manager node ] | | (SessionBean) (MDB) | | JMS Queue Resource | \/ \/ [ router ] || (real queues) I installed the resource adapter, which seems to like to be deployed rather than having a mbean entry added in jboss.jcml, which I basically copied from the main branch conf/default files. Hm, the ra must be both in jboss.jcml AND be deployed. It is confiured in jboss.jcml and bound to the correct JNDI, and then the *.ra file must be deployed (which is done be default in cvs version and 2.4). I think I was mistaken, I did have a configuration as well as a deployment. What does the deployed ra actually provide? Is it important that it be deployed prior to the configuration? My guess is not, but I want to make sure. The manager has a JMSProviderLoader installed which is using a remote hostname:port url to the router, and has the default session pool stuff. I think that the MDB bits work fine. I do not *think* that I had to change anything to get that to work, the problem I am running into is with JMS resources. Do you have a customized JMSProviderLoader, of type: mbean code=org.jboss.jms.jndi.JMSProviderLoader name=:service=JMSProviderLoader,name=MyRemoteLoader attribute name=ProviderNameMyRemoteProvider/attribute attribute name=ProviderUrlrouter:1099/attribute attribute name=ProviderAdapterClassorg.jboss.jms.jndi.JBossMQProvider/attribute /mbean My JMS provide is still called DefaultJMSProvider and I did specify for the factory loader that JNDI name was: JmsProviderAdapterJNDI=java:/DefaultJMSProvider Should I omit the java:/ ? What is ra.xml? A while back someone (could be you) said that using res-url was a hack around the lack of support for JMS resources, is that still true? For jboss 2.2.2 that is still true. In the developmen version it is not, if the ra is used. I have to admit there is still a problem with destination. To get the connection from the correct JNDI you configure a ProviderLoader, but the way both JMS and J2EE connector specifation is done I have found no way of abstracting access to the destinations out from the normal JNDI access. If jnp://router:5001/queue/WorkRequestQueue does not work, you will have to use Scot Starks solution to integrate another JNDI space into the local JNDI, but I do not think this is your problem. This seems to work. I am able to lookup destinations and get most of the way done processing until I get a TX related exception. If not what is the correct way to reference a remote connection and destination inside of the descriptor? As far as I can see it you have done perfectly right, but remote subscriptions with TX support has not been that much tested. Pleas try the jbossmq-client.jar trick and see if it works. So I should use res-jndi-name for the factory and res-url for the destination? Or isn't there some other tag that I am supposed to use for destinations. Sorry, I am still not clear on that... though I suppose it does not really matter much as long as the lookup succeeds. I am sorry to say this, but I am going on a pretty long vaication from today. I will try to check my mail of and on, the there may be long periods of silence. How long is pretty long? Days, weeks, months, years? I hope you have a good time. I do hope you get it going.
Re: [JBoss-user] Distributed MDB JMS resouces inside of beans
/resource-ref resource-ref descriptionA Topic /description res-ref-namejms/TopicName/res-ref-name res-typejavax.jms.Topic/res-type res-authContainer/res-auth /resource-ref /session /enterprise-beans assembly-descriptor/ /ejb-jar And the bean: package org.jboss.docs.jms.ra.bean; import java.rmi.RemoteException; import java.util.*; import javax.ejb.SessionBean; import javax.ejb.SessionContext; import javax.ejb.EJBException; import javax.naming.*; import javax.jms.*; import org.jboss.docs.jms.ra.interfaces.*; public class TopicHelloBean implements SessionBean { private static final String CONNECTION_JNDI = java:comp/env/jms/MyTopicConnection; private static final String TOPIC_JNDI = java:comp/env/jms/TopicName; private SessionContext ctx = null; private Topic topic = null; private TopicConnection topicConnection = null; public TopicHelloBean() { } public void setSessionContext(SessionContext ctx) { this.ctx = ctx; } public void ejbCreate() { try { Context context = new InitialContext(); topic = (Topic)context.lookup(TOPIC_JNDI); TopicConnectionFactory factory = (TopicConnectionFactory)context.lookup(CONNECTION_JNDI); topicConnection = factory.createTopicConnection(); } catch (Exception ex) { // JMSException or NamingException could be thrown ex.printStackTrace(); throw new EJBException(ex.toString()); } } /** * Send a message with a message nr in property MESSAGE_NR */ public void hello(String msg) { sendMessage(msg); } public void ejbRemove() throws RemoteException { if(topicConnection != null) { try { topicConnection.close(); } catch (Exception e) { e.printStackTrace(); } } } public void ejbActivate() {} public void ejbPassivate() {} private void sendMessage(String msg) { TopicSession topicSession = null; try { TopicPublisher topicPublisher = null; TextMessagemessage = null; topicSession = topicConnection.createTopicSession(true, Session.AUTO_ACKNOWLEDGE); topicPublisher = topicSession.createPublisher(topic); message = topicSession.createTextMessage(); message.setText(msg); topicPublisher.publish(message); } catch (JMSException ex) { ex.printStackTrace(); ctx.setRollbackOnly(); throw new EJBException(ex.toString()); } finally { if (topicSession != null) { try { topicSession.close(); } catch (Exception e) { e.printStackTrace(); } } } } } This was done with a resonable new checkout from cvs (node) and 2.2.2 as a router (to follow your setup). Hope you will hace success with this setup. //Peter On 20 Jun, Jason Dillon wrote: Hey, I have been trying to figure this out for a few days now and I keep running into walls. I have a distributed system that uses JMS for communication, using a centralized router (all running on JBoss with JBossMQ). I was able to get everything working using an ExternalContext, to map in the namespace of the remote router, but that is less than perfect. I started to change over to the JmsXA adapter, but I am running into some odd problems. An overly simplified view of the system looks like this, showing three seperate pyshical machines: web server, manager node and router. The current architecture assumes a hub-spoke model for using JMS resources, so that all machines that actually make use of the JMS resources are remote, there are not MDB's running on the router. RMI [ web server ] +---+ [ manager node ] | | (SessionBean) (MDB) | | JMS Queue Resource | \/ \/ [ router ] || (real queues) I installed the resource adapter, which seems to like to be deployed rather than having a mbean entry added in jboss.jcml, which I basically copied from the main branch conf/default files. The manager has a JMSProviderLoader installed which is using a remote hostname:port url to the router, and has the default session pool stuff. I think that the MDB bits work fine. I do not *think* that I had to change anything to get that to work
[JBoss-user] Distributed MDB JMS resouces inside of beans
Hey, I have been trying to figure this out for a few days now and I keep running into walls. I have a distributed system that uses JMS for communication, using a centralized router (all running on JBoss with JBossMQ). I was able to get everything working using an ExternalContext, to map in the namespace of the remote router, but that is less than perfect. I started to change over to the JmsXA adapter, but I am running into some odd problems. An overly simplified view of the system looks like this, showing three seperate pyshical machines: web server, manager node and router. The current architecture assumes a hub-spoke model for using JMS resources, so that all machines that actually make use of the JMS resources are remote, there are not MDB's running on the router. RMI [ web server ] +---+ [ manager node ] | | (SessionBean) (MDB) | | JMS Queue Resource | \/ \/ [ router ] || (real queues) I installed the resource adapter, which seems to like to be deployed rather than having a mbean entry added in jboss.jcml, which I basically copied from the main branch conf/default files. The manager has a JMSProviderLoader installed which is using a remote hostname:port url to the router, and has the default session pool stuff. I think that the MDB bits work fine. I do not *think* that I had to change anything to get that to work, the problem I am running into is with JMS resources. Per your change note, I changed the res-jndi-name to from the external context path to java:JmsXA. But I also had to use url's to get the destinations to work. So I ended up with something like this: resource-managers resource-manager res-nameQueueConnectionFactory/res-name res-jndi-namejava:/JmsXA/res-jndi-name /resource-manager resource-manager res-nameWorkRequestQueue/res-name res-urljnp://router:5001/queue/WorkRequestQueue/res-url /resource-manager resource-manager res-nameWorkResponseQueue/res-name res-urljnp://router:5001/queue/WorkResponseQueue/res-url /resource-manager /resource-managers I started up the application again, and got: snip javax.jms.JMSException: Invalid transaction id. at org.jbossmq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:80) at org.jbossmq.SpySession.sendMessage(SpySession.java:381) at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:103) at org.jbossmq.SpyQueueSender.send(SpyQueueSender.java:62) at com.boldfish.does.job.workflow.internal.RequestSpoolerEJB.send(RequestSpoolerEJB.java:217) at com.boldfish.does.job.workflow.internal.RequestSpoolerEJB.sendNextRequest(RequestSpoolerEJB.java:249) at com.boldfish.does.job.workflow.internal.RequestSpoolerEJB.spool(RequestSpoolerEJB.java:273) at java.lang.reflect.Method.invoke(Native Method) at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:650) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127) at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:209) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:159) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:280) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:107) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195) at org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionContainer.java:341) at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:480) at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:339) at org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.invoke(StatefulSessionProxy.java:136) at $Proxy25.spool(Unknown Source) at com.boldfish.does.job.service.JobController$Runner.run(JobController.java:216) at java.lang.Thread.run(Thread.java:484) /snip So I thought that I should try a distributed TX manager, since that is what i really want. I changed over to Tyrex on all nodes and I still got the same results. I then tried to use a jnp:// url for the res-jndi-name, which looks like it got a little further, but throw a different TX related excepetion laiter. I have session beans that use JMS resources and I have MDB, all of which work off of a remote provider. What is the supported deployment descriptor syntax for JMS resources (both factories and desitations) and what needs to be done
RE: [JBoss-user] Distributed MDB JMS resouces inside of beans
my my my you're hot... I can't even finish the mail and I blow a fuse :( I am not really sure what that means... perhaps the ':(' that the end throws me off a bit too far. Let us know if you find a bug, I certainly will, thought I do not really know what the officially correctly syntax is for the resource definition. There are also a number of variables (TM, RA, JMS), which make it that much more difficult. I am hopping to talk with Peter abit about the RA first. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JAAS JBossSX vs Application Security
Ok, then does it make sense to rely on JAAS for all of the security aspects of a system, or is the technology not mature enough yet? Specifically can it be used to limit access to methods or individual resources (such as a file or a database record marked with some identifier) based on a single user login point? Or will the application have to maintain some extra login state to achieve this level of security? --jason On Wed, 23 May 2001, Scott M Stark wrote: Reliance on static files is not a requirement; its simply the default mode. In the JBossSX codebase is an example custom javax.security.auth.Policy implementation that obtains permission info from a IAppPolicyStore which could be a database, ldap server, etc. The prototype uses an xml file. JNDI cannot be secured via JAAS currently simply because it does not make any permission checks. A future version of jnp will support secured access via subject based permissions. - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 6:13 PM Subject: [JBoss-user] JAAS JBossSX vs Application Security Hello, I am trying to figure out what the *best* approach is for adding robust security to a highly distributed JMX/EJB/JMS application. I have just looked over the docs about JAAS as well as the JBossSX guide and I still do not have a good feel for what is the correct approach for what I am trying to do. JAAS looks like it follows the basic Java 2 security model, which relies on a static file to list who has access to what, which seems a little odd since in most cases the 'who' is probably listed somewhere in a database, so I am a little confused by there examples. Currently we perform the authentication ourselves, via an ejb call that returns a session bean that represents what that user can do. This has some obvious issues, like if the user just tried to lookup an object which they are not supposed to directly instead of going through the gateway. It looks like JAAS/JBossSX might solve, this forcing the user to login first, but it is unclear how that would solve all of the access problems that might occur. Say User A created a file user_a_private_stuff via the FileManager bean, how would I prevent User B from logging in, creating a FM bean then reading that file? Can the security framework be used to replace most (if not all) other aspects of security, such as forcing users through a gateway access manager bean? Can it be used to grant/limit access to fine grained resources based on principal or credentials retrieved from a database lookup (via an entity bean)? Is there any way to limit access via JNDI by this method? Does anyone know of any detailed documentation/examples of non-trivial security implementations (like users with a set of permissions, application code that can check for a given permission or set of permissions as well as the identity of a user before executing an action, and storing all of that information in a database). Or perhaps there is a way to use session beans similar to a servlet session to store this data... I just don't know. =( Any help would be appreciated. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JAAS JBossSX vs Application Security
Hello, I am trying to figure out what the *best* approach is for adding robust security to a highly distributed JMX/EJB/JMS application. I have just looked over the docs about JAAS as well as the JBossSX guide and I still do not have a good feel for what is the correct approach for what I am trying to do. JAAS looks like it follows the basic Java 2 security model, which relies on a static file to list who has access to what, which seems a little odd since in most cases the 'who' is probably listed somewhere in a database, so I am a little confused by there examples. Currently we perform the authentication ourselves, via an ejb call that returns a session bean that represents what that user can do. This has some obvious issues, like if the user just tried to lookup an object which they are not supposed to directly instead of going through the gateway. It looks like JAAS/JBossSX might solve, this forcing the user to login first, but it is unclear how that would solve all of the access problems that might occur. Say User A created a file user_a_private_stuff via the FileManager bean, how would I prevent User B from logging in, creating a FM bean then reading that file? Can the security framework be used to replace most (if not all) other aspects of security, such as forcing users through a gateway access manager bean? Can it be used to grant/limit access to fine grained resources based on principal or credentials retrieved from a database lookup (via an entity bean)? Is there any way to limit access via JNDI by this method? Does anyone know of any detailed documentation/examples of non-trivial security implementations (like users with a set of permissions, application code that can check for a given permission or set of permissions as well as the identity of a user before executing an action, and storing all of that information in a database). Or perhaps there is a way to use session beans similar to a servlet session to store this data... I just don't know. =( Any help would be appreciated. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
Ok, I double checked (with the latest CVS JBoss), with the following: snip language=jython from java.lang import *; from java.util import *; from javax.naming import *; env = Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); env.put(Context.PROVIDER_URL, jnp://reason.boldfish.com:1099); env.put(Context.URL_PKG_PREFIXES, org.jboss.naming:org.jnp.interfaces); print env; ctx = InitialContext(env); print ctx print ctx.lookup(java:/Mail); ctx.close(); /snip Using a classpath with the following: jython.jar activation.jar mail.jar jndi.jar jboss-client.jar jbosssx-client.jar jbossmq-client.jar jnp-client.jar Will produce this output: snip {java.naming.provider.url=jnp://reason.boldfish.com:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} javax.naming.InitialContext@30fc1f Traceback (innermost last): File /home/jason/tmp/test.py, line 14, in ? javax.naming.ServiceUnavailableException: jnp. Root exception is java.net.UnknownHostException: jnp at java.net.InetAddress.getAllByName0(InetAddress.java:571) at java.net.InetAddress.getAllByName0(InetAddress.java:540) at java.net.InetAddress.getByName(InetAddress.java:449) at java.net.Socket.init(Socket.java:100) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:102) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:763) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) at java.lang.reflect.Method.invoke(Native Method) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:158) at org.python.core.PyMethod.__call__(PyMethod.java:83) at org.python.core.PyObject.__call__(PyObject.java:272) at org.python.core.PyInstance.invoke(PyInstance.java:275) at org.python.pycode._pyx0.f$0(/home/jason/tmp/test.py) at org.python.pycode._pyx0.call_function(/home/jason/tmp/test.py) at org.python.core.PyTableCode.call(PyTableCode.java:155) at org.python.core.Py.runCode(Py.java:1055) at org.python.core.__builtin__.execfile(__builtin__.java:288) at org.python.core.__builtin__.execfile(__builtin__.java:292) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155) at org.python.util.jython.main(jython.java:159) javax.naming.ServiceUnavailableException: javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp] /snip So I can create an InitialContext, but as soon as I try to lookup anything I will get an exception. --jason On Sun, 6 May 2001, Jason Dillon wrote: I will check again. I do belive that this will work, but I think that there might be a problem when it comes to using lookup() on the InitialContext. I will try this again and let you know... I might be doing something wrong =) --jason On Sat, 5 May 2001, Scott M Stark wrote: Its been about a week. Here is a simple test that works against the current cvs: jboss 722cat tstNS.java import java.util.Properties; import javax.naming.*; class tstNS { public static void main(String[] args) throws NamingException { Properties env = new Properties(); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); env.setProperty(Context.PROVIDER_URL, jnp://localhost:1099); env.setProperty(Context.URL_PKG_PREFIXES , org.jboss.naming:org.jnp.interfaces); InitialContext ctx = new InitialContext(env); System.out.println(Connected to JNDI); } } jboss 723java -classpath /tmp/cvs/jboss/dist/client/jnp-client.jar;. tstNS Connected to JNDI jboss 724 Most likely your using a jndi.properties that does not include the org.jnp.interfaces package in the URL_PKG_PREFIXES if this does not work for you. - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 9:50 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... How recently was this added? I am just curious, because the EJB handle impl that I added (for container remembrance) would not work if I set the url to jnp://host:port, I had to set it to host:port. --jason On Fri, 4 May 2001, Scott M Stark wrote: This is an issue seperate from References of type URL, but the jnp InitialContextFactory does now accept jnp urls passed in via the provider url property. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists
Re: [JBoss-user] Oracle Sequences PK in Session bean
I wrote a SequenceManager SSB, which takes plug-able (Sequence DAO objects) to access to underlying database. It could definitely use some improvements, like better value caching and such. I would be willing to share it, but I am not really sure where the appropriate place would be. Perhaps a contrib module? Though that seems a little overkill for one SSB. --jason On Mon, 7 May 2001, Sacha Labourey wrote: Hello, Does someone already has developped a session bean for JBoss which sole purpose is to get an Oracle Sequence value from an underlying Oracle database? If it is the case and you accept to share it, I take it with joice! Just not to develop it twice... ;) Thank you. Cheers, Sacha ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
I will check again. I do belive that this will work, but I think that there might be a problem when it comes to using lookup() on the InitialContext. I will try this again and let you know... I might be doing something wrong =) --jason On Sat, 5 May 2001, Scott M Stark wrote: Its been about a week. Here is a simple test that works against the current cvs: jboss 722cat tstNS.java import java.util.Properties; import javax.naming.*; class tstNS { public static void main(String[] args) throws NamingException { Properties env = new Properties(); env.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jnp.interfaces.NamingContextFactory); env.setProperty(Context.PROVIDER_URL, jnp://localhost:1099); env.setProperty(Context.URL_PKG_PREFIXES , org.jboss.naming:org.jnp.interfaces); InitialContext ctx = new InitialContext(env); System.out.println(Connected to JNDI); } } jboss 723java -classpath /tmp/cvs/jboss/dist/client/jnp-client.jar;. tstNS Connected to JNDI jboss 724 Most likely your using a jndi.properties that does not include the org.jnp.interfaces package in the URL_PKG_PREFIXES if this does not work for you. - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 9:50 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... How recently was this added? I am just curious, because the EJB handle impl that I added (for container remembrance) would not work if I set the url to jnp://host:port, I had to set it to host:port. --jason On Fri, 4 May 2001, Scott M Stark wrote: This is an issue seperate from References of type URL, but the jnp InitialContextFactory does now accept jnp urls passed in via the provider url property. ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
Does this mean that jnp should accept more URL-like strings for Context.PROVIDER_URL inside the environment properties for an InitialContext: jnp://localhost:1099 I do not believe that it does. --jason On Thu, 3 May 2001, Scott M Stark wrote: Yes, jnp properly resovles references of type URL. - Original Message - From: Sam Yan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 1:24 PM Subject: RE: [JBoss-user] Anyone know how to federate across multiple jnp ... I looked for the example and must have missed something. Also, I believe that I need to be more exact in my language, because it is easy to say something subtlety different than what I really meant. Please forgive me for my inaccuracy and any help from a knowledgeable person is greatly appreciated. I realize that you can use absolute url paths (i.e. use jnp://machine:port/somewhere) if one keeps around the url for all instances or JNDI, or in this case jnp. What I was hoping for and am still uncertain as to whether jnp supports is the ability to bind a javax.naming.Reference, which contains a javax.naming.StringRefAddr that specifies a URL federated to another name space. JNDI supports this as URLs as References for Federation. This saves complexity in the code by not having to keep urls around. Then urls can be obtained on the fly (within JNDI) and not explicitly specified. This allows for in context lookups which unites name space context with federation of name spaces. We have a very complicated problem where our name space will continue to grow and grow. It would be great to be able to stitch together name spaces using this technique. Then we have separated a configuration problem from a programing problem. Thanks again! Sam -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 6:02 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... I provided an example of this just yesterday. - Original Message - From: Sam [EMAIL PROTECTED] To: JBOSS [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 6:04 PM Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... Has anyone tried creating a URL reference to bind in jnp such that it references another jnp on another instances of JBoss? I get confused when looking for a URL scheme name on a name space based on jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while using jnp don't require a scheme name. Does anyone know if jnp supports url references? Any help is appreciated! Sam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
How recently was this added? I am just curious, because the EJB handle impl that I added (for container remembrance) would not work if I set the url to jnp://host:port, I had to set it to host:port. --jason On Fri, 4 May 2001, Scott M Stark wrote: This is an issue seperate from References of type URL, but the jnp InitialContextFactory does now accept jnp urls passed in via the provider url property. - Original Message - From: Jason Dillon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 04, 2001 7:25 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... Does this mean that jnp should accept more URL-like strings for Context.PROVIDER_URL inside the environment properties for an InitialContext: jnp://localhost:1099 I do not believe that it does. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Does anyone know what this error means?
Have you gotten it to work yet? If not what version of JBoss are you using? Did you look at the online manual (specifically chapter 3: http://jboss.org/documentation/HTML/ch03.html)? This gives a fairly straight forward description of what you need to get a JDBC datasource running in JBoss. Things you need to make sure of: o You have classes12.zip in the lib/ext directory, or you have setup a ClassPathExtention MLET to include this archive. o Make sure you list oracle.jdbc.driver.OracleDriver as one of the Drivers for the JdbcProvider. I have JBoss working with Oracle (v2.0 and up) and I did not have todo anything magical to get it working. Perhaps a little patience... --jason On Tue, 1 May 2001, Micky I. Mimo wrote: I am just trying to connect Jboss to oracle. Michael Mimo Systems Specialist Voice: 781-457-1317 [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Dillon Sent: Monday, April 30, 2001 10:36 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Does anyone know what this error means? Why are you trying to setup an XADataSource with the classpath extender? --jason I put classes12.zip in the ../lib/ext directory and added this entry to the jboss.conf file: MLET CODE = org.jboss.util.ClassPathExtension ARCHIVE=jboss.jar,classes12.zip,minerva-1_0b3.jar CODEBASE=../../lib/ext/ ARG TYPE=java.lang.String VALUE=thinPool ARG TYPE=java.lang.String VALUE=org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl /MLET ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Slowing down the AutoDeployer
Yes, edit the code and insert a delay. I would suggest instead that you build the jat file somewhere else and copy (or better yet, move) it into place when it is done. I would suggest the latter... adding a delay would be the wrong thing to do IMHO. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JMQ question
I do not know if there is any official documentation on this, but if you look at conf/default/jbossmq.xml, you can define new queues by adding some xml like this: QueueNameMyNewQueue/Name/Queue --jason On Wed, 25 Apr 2001, Malia Zaheer wrote: I need some help on getting start with using JBossMQ. I don't know how to create destinations using JBoss server. I want to create a point-to-point queue, and I didn't see any documentation on how to do that. Any help would be appreciated. Thanks, Malia ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Production Systems running on JBOSS
Boldfish.com ExpressNetwork (which is a back-end service) currently runs all component virtual machines (except the oracle database) inside of JBoss. I can't really say for others, though I am interested to see who else is using it. --jason On Wed, 25 Apr 2001, Aamer Khan wrote: Hi, We are in the process of evaluating JBoss. Some key questions being asked by executive management are: 1. Which companies if any are using JBoss in currently marketed products (hosted or packaged). 2. Which third party companies currently have supporting tools/packages for JBoss (like Castor etc.) Any information would be appreciated. Thanks Aamer __ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Arbitrary object persistence
Does any one know of a production quality library that integrates into JBoss that can provide persistence of arbitrary objects into a RDBMS? I have looked a bit at Castor, but it *looks* like this requires some extra metadata for the object. Any ways, if someone happens to know of something that could do this I would sure like to know. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] InstantDB vs. HypersonicSQL
Does any one know what the basic differences are between these two databases? Is one better suited for production usage? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] InstantDB vs. HypersonicSQL
Straight from the horses mouth I see. Thanks for the info. --jason On Thu, 19 Apr 2001, Paul A Morgan wrote: Jason, I know that InstantDB is in use by hundreds of commercial products so I guess that says a lot! Also, InstantDB, unlike Hypersonic is fully JDBC2.0 compliant and even supports the XA protocol for distributed transactions. More often than not, InstantDB is used with the Enhydra Enterprise J2EE application server at http://www.enhydra.org/ In fact it is integrated as a service into the Enhydra Services Architecture so shares the same JVM as the rest of the server yet is completely isolated. Enjoy... - Paul. - Original Message - From: "Jason Dillon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 19, 2001 2:10 PM Subject: [JBoss-user] InstantDB vs. HypersonicSQL Does any one know what the basic differences are between these two databases? Is one better suited for production usage? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Jetty vs. Tomcat
Does anyone have any opinions as to which contain is more robust, easier to use and such? --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] dynamically creating queues
I thought this was provider specific... but then again I have not really tried to do this (yet). Here is a snippet from the J2EE javadocs on JMS (read the last paragraph): snip public Queue createQueue(java.lang.String queueName) throws JMSException Create a queue identity given a Queue name. This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. This allows the creation of a queue identity with a provider specific name. Clients that depend on this ability are not portable. Note that this method is not for creating the physical topic. The physical creation of topics is an administration task and not to be initiated by the JMS interface. The one exception is the creation of temporary topics is done using the createTemporaryTopic method. /snip I think that they mean 'queue' instead of 'topic' in the above. I still don't know why they had to seperate the two... the two domain interfaces are 95% identical. --jason On Wed, 18 Apr 2001, Buske, Zoa wrote: I'm trying to dynamically register queues on the server from my java code. I know you can create temoprary queues with queueSession.createTemporaryQueue. However you have no control over the name of the temporary queue and it cannot be used by any other sender/receiver. queueSession.createQueue(qName) says it dynamically creates a queue, but it doesn't seem to unless the queue is already registered on the server. Is there any way to create and register a queue on the server dynamically in the java code? Are there any administration tools for creating them on the command line? Or do they always have to be created in an XML file? Thanks for any info you may have. Zoa Buske ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
For binding a subcontext from a remote server you should be able to use the Context.PROVIDER_URL to specify the subcontext and so the SubContext attribute should not be necessary. To create a local alias I would rather create a new NamingAlias mbean that created LinkRefs: mbean code="org.jboss.naming.NamingAlias" name=":service=NamingAlias,fromName=java:jms/topic" attribute name="FromName"java:jms/topic/attribute attribute name="ToName"topic/attribute /mbean That would be great. I guess this started because I was unable to lookup a QueueConnection (which I still have not had time to figure out based on the given suggestions). I just ran into another issues, where a deployed servlet needs to access a SSB and EB on a different VM. I installed a ExternalContext (very nice), then modified my code to use an InitialContext(), then get the mapped sub-context and use it for Home lookups. Sounds fine... until I start working with EJB handles... which will just use the InitialContext(), not a sub-context there of. If there was a nice way to create an alias to the default names (from the imported external context), then I would not have to perform an *magic* to restore a handle. Anyways, it sounds like a NamingAlias MBean would be a helpful feature. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
I'll look at adding support for the resource-env-ref when I fix an existing namespace issue. If you get time that would be nice. I would rather not have to manage accessing two different contexts. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
Another JMS question, how should I go about creating a session such that its transactional context is consistent with the executing bean? I assume that the resource manager fluff is there to deal with some of this? Should I assume that the session is transacted with an AUTO_ACK mode? I am surprised the bean does not get a session as a resource instead of a connection factory. --jason On Thu, 12 Apr 2001, Scott M Stark wrote: A ConnectionFactory is a resource factory and the spec talks about JMS being located by convention under the java:comp/env/jms context. To access a QueueConnectionFactory independent of which app server you deploy in you would define an ejb-jar resource-ref as: ejb-jar.xml: ejb-jar display-nameENC Tests/display-name enterprise-beans session descriptionA session bean on looks up stuff in the ENC/description ... !-- JMS Connection Factories (java:comp/env/jms) -- resource-ref descriptionDefault QueueFactory/description res-ref-namejms/QueFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref /session /enterprise-beans /ejb-jar jboss.xml: jboss enterprise-beans session ejb-nameENCBean/ejb-name resource-ref resource-nameQueFactory/resource-name res-ref-namejms/QueFactory/res-ref-name /resource-ref /session /enterprise-beans resource-managers resource-manager res-class="" res-nameQueFactory/res-name res-jndi-nameQueueConnectionFactory/res-jndi-name /resource-manager /resource-managers /jboss Your bean is indepdendent of the app server but its deployment unit is not. - Original Message - From: "Jason Dillon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001 5:25 PM Subject: Re: [JBoss-user] Using JMS resources (or other resources) That is more or less what I am going to be doing, but I wanted to know if there was a standard way to provide the queue information to a bean. My guess is that it should be as a resource, but I am not 100% sure. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Using JMS resources (or other resources)
Can someone point me a documentation or examples on the standard way to allow a EJB to access an external resource. I looked at the EJB spec and it was less than helpful. I saw one example of letting a bean access a JMS queue, but what about the ConnectionFactory and such? Do I need to have a seperate entry for that too? Is anyone using MDB who can give me some advise on how to go about letting an EJB access a JMS queue or topic? Thanks, --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
That is more or less what I am going to be doing, but I wanted to know if there was a standard way to provide the queue information to a bean. My guess is that it should be as a resource, but I am not 100% sure. --jason On Thu, 12 Apr 2001, Alexander Kogan wrote: Jason, Why not to think about an EJB as a plain client for JMS? There is nothing special here. I have a helper class (sort of ServiceLocator pattern) which I'm using either on clients (servlets) and server (EJBs): / * creates query session / private void getQueueSession() throws BmxServerException { if ( qsession != null ) return; // !!!provider specific!!!, must be got from properties QueueConnectionFactory queueFactory = null; try { queueFactory = (QueueConnectionFactory)context.lookup("QueueConnectionFactory"); } catch (NamingException ne) { throw new BmxServerException(ne, BmxError.InternalError); } try { QueueConnection queueConnection = queueFactory.createQueueConnection(); qsession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); } catch (JMSException jmse) { throw new BmxServerException(jmse, BmxError.InternalError); } } / * sends message into queue / public void sendXmlMessage(String queueName, XmlDescriptor xmessage) throws BmxServerException { getQueueSession(); try { Queue queue = (Queue)context.lookup("queue/" + queueName); QueueSender sender = qsession.createSender(queue); TextMessage tmess = qsession.createTextMessage(); tmess.setText(xmessage.toXmlString()); sender.send(tmess); } catch (Exception e) { throw new BmxServerException(e, BmxError.InternalError); } } Jason Dillon wrote: Can someone point me a documentation or examples on the standard way to allow a EJB to access an external resource. I looked at the EJB spec and it was less than helpful. I saw one example of letting a bean access a JMS queue, but what about the ConnectionFactory and such? Do I need to have a seperate entry for that too? Is anyone using MDB who can give me some advise on how to go about letting an EJB access a JMS queue or topic? Thanks, --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Using JMS resources (or other resources)
Thanks... so would I use something like this: resource-env-ref resource-env-ref-namejms/StockQueue/resource-env-ref-name resource-env-ref-typejavax.jms.Queue/resource-env-ref-type /resource-env-ref to get at the queue/topic information to use with the connection factory as configured below? --jason On Thu, 12 Apr 2001, Scott M Stark wrote: A ConnectionFactory is a resource factory and the spec talks about JMS being located by convention under the java:comp/env/jms context. To access a QueueConnectionFactory independent of which app server you deploy in you would define an ejb-jar resource-ref as: ejb-jar.xml: ejb-jar display-nameENC Tests/display-name enterprise-beans session descriptionA session bean on looks up stuff in the ENC/description ... !-- JMS Connection Factories (java:comp/env/jms) -- resource-ref descriptionDefault QueueFactory/description res-ref-namejms/QueFactory/res-ref-name res-typejavax.jms.QueueConnectionFactory/res-type res-authContainer/res-auth /resource-ref /session /enterprise-beans /ejb-jar jboss.xml: jboss enterprise-beans session ejb-nameENCBean/ejb-name resource-ref resource-nameQueFactory/resource-name res-ref-namejms/QueFactory/res-ref-name /resource-ref /session /enterprise-beans resource-managers resource-manager res-class="" res-nameQueFactory/res-name res-jndi-nameQueueConnectionFactory/res-jndi-name /resource-manager /resource-managers /jboss Your bean is indepdendent of the app server but its deployment unit is not. - Original Message - From: "Jason Dillon" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 12, 2001 5:25 PM Subject: Re: [JBoss-user] Using JMS resources (or other resources) That is more or less what I am going to be doing, but I wanted to know if there was a standard way to provide the queue information to a bean. My guess is that it should be as a resource, but I am not 100% sure. --jason ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user