[JBoss-user] [Messaging, JMS & JBossMQ] - How to configure HAJMS with the cluster nodes on the same ho
Hi, I am configuring a very powerfull box with two JBoss processes running in cluster. I have followed the guidelines to setup the ports and everything is running smoothly. However, I am facing a major issue with HAJMS. In the overview (http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMQHAOverview), the following is described anonymous wrote : | The URL should be the URL to the HA-JNDI server running on the same node as the bean; if the bean is available the local HA-JNDI server should also be available. The lookup will then automatically query all of the nodes in the cluster to identify which node has the JMS resources available. | So putting an JNDI name like http://localhost:2100/queue/MySuperQueue sounds not too hard in a multi host configuration. What about my configuration? Am i supposed to specify http://localhost:2100/queue/MySuperQueue for the second node (2100 is the port used for the clustred JNDI on the second node) I am supposed to deploy the same EAR through farming. How can I solve this issue. Right now, the lookup of a queue on the node which is not hosting JMS results in a NamingException. We're using 3.2.8-FP1 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3946143#3946143 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3946143 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Security & JAAS/JBoss] - different security domain for local and remote view of a bea
Hello, We are running Jboss 3.2.x with a custom login-module. We have a Bean which should have the following properties: - Remote view should be securised with a given role and should use our login-module - Local view does not need to be securised (actually it should not be because if we start processing from an MDB, we go a "No security context set" exception. Here is what I did: #1 Create a securised container extending standard with a reference to my security-domain: Secure Stateless SessionBean java:/jaas/OurDatabaseSecurityDomain #2 Map the Bean to this container configuration #3 Change the method permission: - Home and Remote should have the role - LocalHome and Local has the unchecked element When I invoke the local view of my Bean from an MDB, Jboss call the login method of my custom login module. Is there any way to get around this? I don't want any security on the local view of my bean. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3899611#3899611 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3899611 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Remove JMS Message
identify your message with a selector. Describe what is a specific JMS message for you. Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842029#3842029 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842029 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: migration from 3.2.3 to 3.2.4, HASingleton JMS question
If you're using java:/JmsXA there is also another difference in 3.2.4: you have to start the connection if you want to receive messages ... Don't ask me ... Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841061#3841061 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841061 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem with JDBC2 PM, Mysql and JBoss 3.2.4
I searched the forum, found nothing similar. I am using the mysql-jdbc-service provided with Jboss Since 3.2.4, we have to call explicitely connection.start() if we want to receive messages (I am using java:/JmsXA) If I run the application without calling connection.start() evertime I want to receive messages, it works Meaning, I do not receive my messages but I don't have the stactrace above. Any clue? Will post trace logs in a few minutes. Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3840409#3840409 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3840409 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem with JDBC2 PM, Mysql and JBoss 3.2.4
The weird thing is that I am porting an application from 3.2.3 to 3.2.4: I have exactly the same code, the same datamodel, the same configuration (same mysql connector 3.0.11). The only thing I had to change in the code is a call to jmsConnection.start() if I want to receive messages (very annoying by the way, that's quite a big change!). If I switch to 3.2.4, I suddently have those errors, on the same machine. Any clue where I should search (because it's straight SQL calls towards the DB so I wonder how this could have changed ...) Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839933#3839933 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839933 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem with JDBC2 PM, Mysql and JBoss 3.2.4
Well apparently there is no changes regarding that between 3.2.3 and 3.2.4, at least as far as PM is concerned. http://cvs.sourceforge.net/viewcvs.py/jboss/jbossmq/src/main/org/jboss/mq/pm/jdbc2/PersistenceManager.java?r1=text&tr1=1.6.2.12&r2=text&tr2=1.6.2.16&diff_format=h Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839929#3839929 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839929 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Topic browser
No you can't. Read the spec, it has no sense to browse a topic. Regards, StÃphane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834425#3834425 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834425 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Create / Manage Queue
Check the wiki http://www.jboss.org/wiki/Wiki.jsp View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834424#3834424 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834424 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Using a queue as a request container
Adrian, I would like to contribute. Let me know if I can help in any way (I don't know yet the JBossMQ codebase yet). Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830968#3830968 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830968 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Using a queue as a request container
Adrinan, "This forum is for technical questions not architectural questions. If you want somebody to design your app, hire a consultant. " I described only my architecture to help people understand the problem. I think my questions are technichal, right? Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830950#3830950 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830950 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Using a queue as a request container
Hello list, I would like to use a JMS queue as a request container and I have some questions about this architectural choice. Basically the queue will contain request messages. They could have multiple consumers: - onMessage fired when the request should be processed (using the scheduled delivery - Session bean removing the message from the queue because the request was canceled by some external action (user clicking on a web page for instance) - Session bean processing the request because it's waiting for a response for a too long time. Basic processing is: onMessage fired, do some stuff with it that needs an asynchroous response. The message is then put back in the queue (with some extra info). When the response arrives, the message is refecthed and post to a result queue. If no response came, request goes in timeout and some other processing is done. To retrieve the message, I use the original JmsMessageId has an head (request-id) which is set to the same value evertyme i repost the request. My questions: - What if a component is processing the request (doing some stuff with it in a TX and then repost on TX commit) and, AT THE SAME TIME, a SB whant to remove it because the request should be canceled (Will the SB waits the commit because the message is in a transaction?) - About performence, fetching the message based on a JMS header (so selector) is heavy. Is there an optimized way to fetch the message (knowing that the selector is a primary key sort of). Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830936#3830936 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830936 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Conversions in textmessage w+ w* w-
Small precision. When I said "read some message which are on a queue using psql" I meant "see the result of a select messageblob from jms_messages where ..." View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828352#3828352 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828352 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Conversions in textmessage w+ w* w-
Guys, I've found a very weird behavior. I am using Jboss 3.2.3 with Postgres 7.3.4 as JMS persistence manager. When I read some message which are on a queue using psql I got conversions like the following : [.] 9cc50700c0a801ef01fd93c6fw-9dc9b18 [.] note the w- which was not in the original message. Sometimes it's a w+ or w* When I read the message and output it in the console, everything is ok, I got [.] 9cc50700c0a801ef01fd93c6f9dc9b18 [.] Anybody knows who's doing this conversion and why? Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828351#3828351 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828351 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: DB Update after a select
Guys, Sounds we have the same problem with postgresql (especially the instance per transaction -> deadlock on the database). Regarding the Xdoclet problem I will submit a patch to Xdoclet that will add this tag. I will keep you posted. Regards, Stephane View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3828064#3828064 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3828064 --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Could not create two instances of the same entity at the sam
Hello, We have an application that create entities (let's say a Book) when some message is send to a queue. An MDB picks up the message, translate its content and create a new entity with the value contained in this XML. Most of the time, the message contains an array of Books to create. When playing with thread dump and stuff llike that I discovered something I couldn't explain. Jboss 3.2.3 / Instance Per Transaction container /JDK 1.4.2 Redhat 9 Postgres 7.3.4 5 messages are sent on this queue containing 50 "create-book" instructions each. 5 MDBS are then instanciated and starts parsing the message. Then 4 of them are locked till the first one complete. Once the second one complete, the third one starts processing. Using a thread dump, the 4 threads (MDB threads) waits on the create() method of the Book's session facade. How can I configure my system so that I can create two books at the same time within two different transactions. Regards, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3827911#3827911";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3827911>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?
Let's say I want to create a Book. A book as a CMR link to an editor and to an author for instance. I receive the following XML John Smith ABC [... other non CMR links] The session bean that parses this XML validates the fact the author and the editor exists (that way I prevent a create exception and can give an approrpiate response to the user). So what Id do is: authorHome.findByPrimaryKey("John Smith"); editorHome.findByPrimaryKey("ABC"); My problem is that if I create 10.000 books from Jonh smith edited by ABC, jboss will still do select from author where id = 'John Smith'; select fropm editor where id ="ABC"; Is it normal knowing that those haven't changed and I am using commit option A? What should I do to avoid those lookups? Regards, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826856#3826856";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826856>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Re: Jboss cache is always empty - why?
O_O Let me explain my need and why I think something is weird there. We create an entity X and this one has CMR link to other entity (i.e. foreign key). Before creation this entity, the session bean validates those CMR links (i.e. the Ids of those entity exists in the DB). So each time I create a new instance of X, I do: aHome.findByPrimaryKey(anId); bHome.findByPrimaryKey(anId2); cHome.findByPrimaryKey(anId3); After having created 1 instances of X, JBoss still do a select * from thetable where id = anId. It's crazy. We have commit A, it should be in the cache. Any idea? Regards, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826689#3826689";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826689>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Performance Tuning] - Jboss cache is always empty - why?
Hi, We are using Jboss 3.2.3 on RedHat Advanced server 3.0. Our entity beans uses a customized container as follows: Our CMP 2.x EntityBean false org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy 50 1000 120 300 240 60 1 0.75 100 A First of all, do you see any problem in this config? We are using commit option A and Instance per transaction container. We notificed the following: - SQL queries are ran all the time to fetch the same entity based on PK (findByPrimaryKey is invoked) - Using the jboss.monitor.X JMX objects, the size of our cache is always 0 for all beans So what's happenning, is the cache disabled or what? Thanks, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826107#3826107";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826107>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: jboss-service.xml classpath
Dis t'en a pas marre de poster 300 fois le mÃme topic? On t'as dÃjà rÃpondu je te signale, c'est un bug de ta virtual machine. Soit tu mets à jour ta JVM, soit tu reportes le bug chez SUN (For you people, I am just trying ton convince this guy to report his problem to SUN). Regards, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824717#3824717";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824717>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - container pool configuration -> maximum size
Hi, I've seen that the defaut maximum size for the pool is 100. I would like to be sure I understand this properly. What if I have a transaction (a call to a session bean for instance) that loads (findByXXX) 5000 instances of the same entity bean (to update one of the field for instance). Should I put the pool to 5000? Is there a limitation to this value? Regards, Stephane http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824393#3824393";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824393>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: erreur de demarrage de jboss 3.2.3
Arrete d'utiliser JBuilder, Ãa rend bÃte :D http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3824390#3824390";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3824390>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user