[JBoss-user] [HTTPD, Servlets JSP] - Re: Unable to get connection, DataSource invalid:
I had the same problem today but found the answer in the DataSourceUtil class of the Jakarta implementation of JSTL. The problem is that the SQL function looks for the DataSource in the java:comp/env namespace where as your datasource probably is in the java: namespace. Mine was anyways. The solution is to map the datasource to Tomcat using the web.xml and jboss-web.xml deployment descriptors: web.xml | !-- JDBC DataSources (java:comp/env/jdbc) -- | resource-ref | descriptionThe used datasource/description | res-ref-namejdbc/DefaultDS/res-ref-name | res-typejavax.sql.DataSource/res-type | res-authContainer/res-auth | /resource-ref | jboss-web.xml | !-- make sure the web container can get jdbc connections -- | resource-ref | res-ref-namejdbc/DefaultDS/res-ref-name | res-typejavax.sql.DataSource/res-type | jndi-namejava:/pestikom2/jndi-name | /resource-ref | The above makes the java:/pestikom2 from JBoss datasource available in the java:/comp/env namespace in Tomcat. The datasource can now be referenced from JSTL using: | sql:query dataSource=jdbc/DefaultDS var=some_var scope=page sql=select * from foo | /sql:query | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3872339#3872339 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3872339 --- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Debugging the JBoss JMS Subsystem
I you have the source you should be able to enable remote debugging when starting JBoss and then connect the Eclipse debugger to the running JBoss instance. I found this example on google... View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871256#3871256 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871256 --- This SF.net email is sponsored by: 2005 Windows Mobile Application Contest Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones for the chance to win $25,000 and application distribution. Enter today at http://ads.osdn.com/?ad_id=6882alloc_id=15148op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Re: Deferred use of JMSReplyTo / Destination.toString()
[EMAIL PROTECTED] wrote : If you cannot maintain the javax.jms.Destination object | you can do session.createQueue(...) from Queue.getQueueName() | provided you are talking to the same jms server. | Yeah I figured as much since the interface doesn't extend java.io.Serializable... The question went more as to whether I could reconstruct the queue name at a later time using queue/ + msg.getJMSReplyTo().getQueueName() and make sure it worked (per J2EE spec.) or whether the queue/ prefix had to be a configurable parameter. Thank you for your response and clarification though. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3871058#3871058 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3871058 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS JBossMQ] - Deferred use of JMSReplyTo / Destination.toString()
I have a scenario where I need to store the JMSReplyTo from a JMS message for later use. When I look at the Message.getJMSReplyTo() the returned Destination (Queue/Topic) has two methods I could use: - toString (example value: QUEUE.lekkim/nitram/bocaj) - getQueueName (example value: lekkim/nitram/bocaj) I know I could just compose the queue name by prepending queue/ to the value returned by the getQueueName() method but I don't know if it is standard. Could some installations of JBoss choose to change the queue/ prefix in JNDI or is it given per J2EE that queues are located under this prefix ? Thank you for any replies. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3870898#3870898 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3870898 --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence CMP/JBoss] - entity-command part of transaction ?
Hi all. I am using entity-commands to generate primary keys for my entities but are having a hard time finding out whether the query to get the next primary key (via the entity-command) is part of the same transaction as the actual entity create() call. My requirement is using a sequence of numbers for primary key without any gaps, so an exception while creating the entity should also rollback the SQL used to get the next primary key. Anyone who knows this ? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3830581#3830581 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3830581 --- 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=1470alloc_id=3638op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation Configuration] - Re: How to configure multiple Mail MBeans ?
View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3821666#3821666 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3821666 Do a mail-service.xml (with different names of cause) for each and change the jndi name. You may also need to change the name of the Mbean from so each instance gets a unique name. --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user