[jboss-user] [MQ] - Re: JMX console, no stopDelivery option

2009-09-01 Thread whafrog
This is running under 4.2.0 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252933#4252933 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252933 ___ jboss-user mailing list jbo

[jboss-user] [MQ] - JMX console, no stopDelivery option

2009-09-01 Thread whafrog
I'd like to invoke stopDelivery on a message bean, but the JMX console doesn't list it. I can see my MDB under jboss.j2ee, but only as this line: ear=myear.ear,jar=myjar.jar,name=MyMDB,service=EJB3 >From what I've been reading I should see a "binding...". Is there something I >need to configu

[jboss-user] [JBossMQ] - Re: Auto-delete unretreived messages?

2008-09-03 Thread whafrog
Oi, thanks. I misread the docs about what that method actually did. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174105#4174105 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174105 __

[jboss-user] [JBossMQ] - Auto-delete unretreived messages?

2008-08-22 Thread whafrog
Is there a way to configure hypersonic database to automatically delete messages from a queue after a given time period? I'm using JBoss 4.2.0. I have a service app which receives messages from a web application. The person triggering the event (who could be anyone on the 'net, so there is no

[jboss-user] [Messaging, JMS & JBossMQ] - Deploying legacy (EJB2.x) MDB on JBoss 4.2 gives error

2008-04-24 Thread whafrog
As there seems to be a basic incompatibility with version 4.2.0 connecting to a message queue hosted on legacy version 3.0.3 (issue posted on the JNDI board), I thought I'd just move the legacy app containing the message bean to version 4.2.0. In theory I should just be able to take the .jar fi

[jboss-user] [JNDI/Naming/Network] - Connecting to legacy JBoss 3.0.3

2008-04-23 Thread whafrog
I've converted a web-app from running on Weblogic/EJB2 to Jboss 4.2.0/EJB3. The app needs to connect to a message queue hosted by a legacy app running on JBoss (3.0.3). The old Weblogic version used the jbossall-client.jar from 3.0.3, however, the new version shouldn't need that, correct? How

[jboss-user] [Security & JAAS/JBoss] - Re: Security role re-assignment

2008-03-05 Thread whafrog
Thanks ragavgomatam, not sure how I missed that! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134413#4134413 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134413 ___ jboss-

[jboss-user] [Security & JAAS/JBoss] - Security role re-assignment

2008-02-19 Thread whafrog
I'm in the midst of converting a weblogic webapp to jboss. The weblogic app makes heavy use of a feature in weblogic.xml where you can assign a group of security roles to a new role for internal use in the app, eg: | any-user | Admin | Agents | Partners | I can

[jboss-user] [JBoss Seam] - Validator causes InvocationTargetException

2008-02-06 Thread whafrog
I have a validator called from an xhtml page. The app works fine when deployed on my local machine, but I get this error when I deploy the same .ear on our development server: /school.xhtml @19,150 validator="#{schoolValidator.validateCode}": java.lang.reflect.InvocationTargetException The me

[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-14 Thread whafrog
For those interested, Seam appears to be using the XmlHttpRequest.responseXML property, but this triggers a Firefox/javascript/security problem, in that you aren't allowed to access the XML version of the data you're requesting. You can, however, get the raw text, do your own reparsing, and play

[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread whafrog
Thanks. I'm under the gun and behind schedule, but if I get a chance in the next phase to refactor I'll revisit it. For now at least the problem is prevented. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112996#4112996 Reply to the post : http://www.jbo

[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-14 Thread whafrog
Now that I included jboss-seam-remoting.jar...yes. (doh! slap!) Different issue now, both IE and Firefox have security issues. I'm logged in to my work via VPN, it must think "localhost" is a different domain. In IE I can enable the session, in Firefox I get a red "Please wait..." box in the

[jboss-user] [JBoss Seam] - Re: Conversation times out, entity manager persists??

2007-12-14 Thread whafrog
I tried that, but it doesn't work either. I'm using Jboss 4.2.0GA. I've managed to avoid the problem by calling entityManager.clear() in the action's destroy method. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112968#4112968 Reply to the post : http:/

[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-13 Thread whafrog
"[EMAIL PROTECTED]" wrote : Oh, and you also need to override the Seam.Remoting.resourcePath after you import the script. It defaults to "/appname/seam/resource/remoting", so you'll need to give it an absolute url also... According to the Firefox javascript console, "Seam is not defined". Her

[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-12 Thread whafrog
For those interested: All the examples I was looking at used @Resource to inject the UserTransaction into the servlet, but it was always null. This works better: ut = (UserTransaction)context.lookup("java:comp/UserTransaction"); I wish there was a better way though. View the original post :

[jboss-user] [JBoss Seam] - Re: External AJAX access to webremote?

2007-12-12 Thread whafrog
Since it appears I can't get a functioning EntityManager in my servlet (I can get an entity manager, but can't inject a UserTransaction or get an EntityTransaction from the entity manager)...any suggestions? I basically want to expose a method on a stateless bean, accept a couple of parameters,

[jboss-user] [JBoss Seam] - Re: Conversation times out when session times out

2007-12-12 Thread whafrog
Yes, thank you! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112420#4112420 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112420 ___ jboss-user mailing list jboss-user@list

[jboss-user] [JBoss Seam] - Re: Conversation times out when session times out

2007-12-12 Thread whafrog
Example: User logs in and is presented with a menu page. They click a menu option, starting a conversation that lasts for three pages. If they get up and walk away after getting to page 2, shouldn't the new conversation time out after 2 minutes? They would still be logged in, but the convers

[jboss-user] [JBoss Seam] - Conversation times out when session times out

2007-12-12 Thread whafrog
I have my conversation set to timeout after 2 minutes (12ms), and the session to timeout after 10 minutes. However, if I abandon the conversation, I only see the destroy method called after 10 minutes. I've checked the logs and debug.seam page for any objects started by the conversation th

[jboss-user] [JBoss Seam] - External AJAX access to webremote?

2007-12-12 Thread whafrog
Hi, is there an easy way to access @WebRemote methods from Ajax on pages that are not part of the hosted web app? In our case, we have many static web pages we host for other companies. Some of them would like to get dynamic data (via Ajax) from our web app. I'd love to use a Seam service and

[jboss-user] [JBoss Seam] - Re: Navigate to anchor?

2007-12-11 Thread whafrog
I've tried adding specific entries to my navigation.xml file based on output from the action class, but that doesn't seem to work either, eg, assuming entityTypeName.equals("EntityType2"): | public String add(String entityTypeName) { | // ... add to list | return "entityEditPage." + e

[jboss-user] [JBoss Seam] - Navigate to anchor?

2007-12-11 Thread whafrog
I have a series of h:dataTables, each of which can have rows added to or removed from them. To add or remove the rows I use an h:commandButton to call a method on the action class, which adds or removes the entity from the underlying list. As the page is rather long, when the page returns, I'd

[jboss-user] [JBoss Seam] - Conversation times out, entity manager persists??

2007-12-07 Thread whafrog
I have successfully avoided having the entity manager persist entity changes when the user quits a conversation on purpose, by coding as follows: @End | @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED) | public String quit() | { | logger.debug(

[jboss-user] [JBoss Seam] - Re: Reusing pages for different page flows?

2007-12-07 Thread whafrog
I'd appreciate a working example. Adding to my link resulted in no end of different troubles, and I gave up when getting a null pointer clicking the view mode link after initiating an edit mode sequence, where the Seam Blackbox is for some unfathomable reason trying to render components on a p

[jboss-user] [JBoss Seam] - Re: Why control IDs in validation messages?

2007-12-06 Thread whafrog
The default messages are parameterized, I think the form control is {2}. You can include these parameters or not when you override. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111047#4111047 Reply to the post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Reusing pages for different page flows?

2007-12-06 Thread whafrog
The answer is probably simple, but I'm having trouble reusing pages for different flows. I want to define two possible modes: 1. Edit mode: select criteria --> edit stuff --> review/confirm 2. View mode: select criteria --> review The view mode shares the first and last pages of the edit mod

[jboss-user] [JBoss Seam] - Re: @End commits entity changes!

2007-12-06 Thread whafrog
"gsegura" wrote : I think this is related to the flush mode of the conversation, look for @Begin(flushMode=FlushModeType.MANUAL), | I think that normally when conversation ends everything is flushed autommatically. | | I just posted a somewhat related question but there the conversat

[jboss-user] [JBoss Seam] - Re: @End commits entity changes!

2007-12-06 Thread whafrog
A call to "entityManager.clear()" seems to solve the problem. Still, you'd think implicit persistence is something you'd have to turn on, not code away. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4110996#4110996 Reply to the post : http://www.jboss.com/i

[jboss-user] [JBoss Seam] - @End commits entity changes!

2007-12-06 Thread whafrog
How do I end the conversation without letting hibernate commit the entity changes? Editing is a two stage process: edit, then verify. If I call my action's quit method from the edit page (with immediate="true" on the button), all is fine. If I go to the verify page and make the same call to

[jboss-user] [JBoss Seam] - Re: problem in login.seam

2007-11-25 Thread whafrog
You'd think the pages.xml setting would take precendence, ie, if I define this: | | Please log in | | The message should be changed to "Please log in". Otherwise, what's the point of defining the message in pages.xml? View the original post : http://www.jboss.

[jboss-user] [JBoss Seam] - JSF and updating hidden field

2007-11-22 Thread whafrog
Hi, this is probably more of a JSF question, but maybe Seam has a workaround: I have a simple table where each row is a component. If the user has this component in the database, the hidden field has a value and the box is checked. If they do not, they can always check the box and that compone

[jboss-user] [JBoss Seam] - Re: Multiple entities on page, and @Name conflict

2007-11-20 Thread whafrog
It works! (mad cackle) Thanks to Andy Gibson, and also to IGx89 from second link I posted above. I ended up revisiting IGx89s suggestion, and two things resolved the problem: First, while I had a @Name annotation on the entity, I neglected to put one on the backing bean that contained the enti

[jboss-user] [JBoss Seam] - Re: Multiple entities on page, and @Name conflict

2007-11-20 Thread whafrog
Thanks. Just to be clear: do I remove the @Name annotation from "Entity" in your example? Because I have tried using getters in my action class, but then I get javax.el Exceptions. Using your example, class MyBackingBean would have to be @Name d (say, "myBackingBean", and on the page I'd ref

[jboss-user] [JBoss Seam] - Multiple entities on page, and @Name conflict

2007-11-20 Thread whafrog
I think I've discovered the *source* of my issues in these threads, but if there's a solution out there I'd appreciate knowing: Problem with @Id and non-null entities: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=123799 Problem with accessing Map of entities: http://www.jboss.com/ind

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
Yes, it did have a getBenefitMap() method. Unfortunately I have tossed that code and gone what I thought would be a more "tried and true" route. I'm under a serious time deadline and need something functional asap. I made the mistake of buying into the "Seam makes everything easier" without f

[jboss-user] [JBoss Seam] - Re: @Factory is not working

2007-11-19 Thread whafrog
Can you post your code? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106175#4106175 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106175 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
Well I got permission to upgrade to 2.0.0GA...but it still doesn't work. It's an improvement, but it tells me "benefitMap" doesn't exist on "lenderbenefits". I gave up and reverted back to trying to use specific instance variables, only now I'm getting "@In attribute requires non-null value" e

[jboss-user] [JBoss Seam] - Baffled by @In attribute requires non-null value

2007-11-19 Thread whafrog
This is driving me nuts...and it's probably something stupid I overlooked, so I'm sorry in advance...! I've done everything I know to make the variable on the action class not null. The "create=true" and "new..." seem redundant, as does the "value" but it doesn't work without them either so I'

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
We already have other applications deployed using 4.2.0, but this will be our first Seam app, so probably best to upgrade that now. Thanks for your help! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106138#4106138 Reply to the post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
So, just assuming the Boss DID let me upgrade, any known issues with using 4.2.0GA, or do I have to upgrade that too? I'm pretty sure THAT one's out of the question... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106133#4106133 Reply to the post : http:/

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
I should have mentioned: JBoss 4.2.0GA, Seam 1.2.1GA. If this is a 2.0 feature... :-( not sure the boss will let me upgrade just yet. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106125#4106125 Reply to the post : http://www.jboss.com/index.html?module

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
"IGx89" wrote : Actually no, JBoss EL is bundled with Seam :) I must be missing something though, as I'm getting an EL parsing exception using that format. I decided to use a getter, so the action class ("lenderbenefits") has: private BenefitMap benefitMap = new BenefitMap(); | p

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-19 Thread whafrog
"IGx89" wrote : JBoss EL should let you do that. If you're outjecting benefitTypes as shown, your EL expression would be "#{benefitTypes.get('BENEFIT_TYPE_1').percent}"; otherwise, if you were just had a getter called "getBenefitTypes" on BenefitManager, it'd be "#{benefitManager.benefitTypes.g

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-16 Thread whafrog
Thanks. I have a related question: is it possible to reference a Map of backing beans and lists? I haven't see any example of this. Using my example above, there is a master list of benefits, and each lender can have a varying subset of the master list. To reference the specific benefit, I'

[jboss-user] [JBoss Seam] - Re: Dynamic widgets?

2007-11-16 Thread whafrog
Yes, I had figured I could use a backing list, but I was hoping to avoid a form submission. I can use my old ajax and parameter processing code, I just wondered if there was a "Seam way" to do it. Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=410557

[jboss-user] [JBoss Seam] - Dynamic widgets?

2007-11-15 Thread whafrog
What is the best way to deal with dynamic ajax creation of new widgets? I have a page where I need to track, say, lender benefits. One lender might offer 0.5% interest rate reduction after 12 on-time payments, another might offer 0.3% after the first 12 payments, and another 0.5% after 24. Ide

[jboss-user] [Messaging, JMS & JBossMQ] - Weblogic to Jboss bridge gets RMI class loader disabled erro

2007-11-15 Thread whafrog
Hi we're in the process of migrating all our apps off weblogic 7 to jboss 4.2. We can only do this one app at a time. A couple of the apps send messages to each other through weblogic's jms. We've finished migrating our first app to jboss (App1) and would like to send messages to the old webl

[jboss-user] [JBoss Seam] - Re: Target Unreachable with two entity instances?

2007-11-14 Thread whafrog
"[EMAIL PROTECTED]" wrote : No, you can have instances of the same entity type in the context at the same time. I don't see where you outject/make available searchLender. I had added the @Out annotation but got the same result so I removed it. I just tried again to confirm. Is there something

[jboss-user] [JBoss Seam] - Target Unreachable with two entity instances?

2007-11-14 Thread whafrog
Hi, I have a page that contains two forms, one for search and one for save/update. If I use a single entity instance for both forms, everything works well enough, but the search field is sync'd with the save/update field. If I try to have two entity instances (one for the search form, one for

[jboss-user] [JNDI/Naming/Network] - Re: Utilizing Non-Default Datsource With JBOSS 4

2007-11-11 Thread whafrog
anonymous wrote : However, when I start up JBOSS and try to interact with the oracle database, it says the jndi is not valid. Am I forgetting something? What is the jndi string you are using in your code? You may have to prefix it with "java:/" View the original post : http://www.jboss.com/i

[jboss-user] [JNDI/Naming/Network] - Error setting up weblogic mdb to monitor jboss queue

2007-11-11 Thread whafrog
Hi we're in the process of migrating all our apps off weblogic 7 to jboss 4.2. We can only do this one app at a time. A couple of the apps send messages to each other through weblogic's jms. We've finished migrating our first app to jboss (App1) and would like to send messages to the old webl

[jboss-user] [Security & JAAS/JBoss] - Re: How to get security domain info?

2007-11-07 Thread whafrog
Thanks, I'm doing B anyway. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102680#4102680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102680 ___ jboss-user mailing list jbo

[jboss-user] [Security & JAAS/JBoss] - How to get security domain info?

2007-11-07 Thread whafrog
Hi, I have my security domain information in jboss-web.xml: java:/jaas/ldap-security And the application policy set up in login-config.xml: | | | com.sun.jndi.ldap.LdapCtxFactory | ldap://someurl:389/ | ...etc... | | | Unfortunately our ldap setup i

[jboss-user] [JBoss Seam] - SQLServer TEXT field type causes Hibernate error

2007-10-31 Thread whafrog
I used Seam to create a new project and generate entities from an existing database (MS SQLSERVER2000). One of the tables has a TEXT field type. The entity was correctly created by the seam generator to use a String for that variable, however on deployment the Hibernate validator throws an exce

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Setting the ID of the entity manually before persist

2007-08-09 Thread whafrog
anonymous wrote : Why is that? The entity is NOT detached, it never got persisted... Well, you created it with "new", so it's not "attached" to the persistence engine, so it has to be detached... It's probably not an accurate message. persist() is for new rows, so it's probably not expecting

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - BatchedTooManyRowsAffectedException: SqlServer trigger

2007-08-09 Thread whafrog
Hi, I'm having a problem with a legacy app that uses SQLServer 2000 that we're converting to EJB3. One of the tables has a trigger on it to record audit changes. However, the way the trigger and the audit repository work is, it creates a new record for each changed field in the target table.