New to JBoss
by Mike Hancock
and having startup problems. I downloaded and installed JBoss 4.2.1.GA, configured it in MyEclipse 7.1, and successfully deployed my app. Trouble started when I tried to "run" JBoss. Error message in attached console file indicates a problem with my web.xml, but I've validated that file (several times). I've searched online, but found nothing that seems to address this problem. Any help would be greatly appreciated. Note: I was previously testing the app using Tomcat 5.5, but project leaders have decided to adopt JBoss.
Mike G. Hancock
Revenue/ITR
mike.hancock(a)state.tn.us
(615) 741-7274
17 years, 1 month
[Datasource Configuration] - Wrapping to OracleConnection problem.
by fordfarline
Hi all,
I using JBoss 4.2.3 and i need to get an OracleConnection to be able to pass an array as parameter to a PreparedStatement. I get an exception when i cast de connection:
java.lang.ClassCastException: $Proxy1 cannot be cast to org.jboss.resource.adapter.jdbc.WrappedConnection
I don??t know what i am doing wrong. This is my code:
DataSource ds = (DataSource) context.lookup("MLS/SRVC/AdministrationDataSource");
Connection con = ds.getConnection();
// The exception is thow here
WrappedConnection wrappedConn = (WrappedConnection)con;
OracleConnection ocon = (OracleConnection) wrappedConn.getUnderlyingConnection();
// This is what i need to do.
ArrayDescriptor af = ArrayDescriptor.createDescriptor("MDSYS.SDO_ORDINATE_ARRAY", con);
And this is the xml descriptor:
<no-tx-datasource>
<jndi-name>MLS/SRVC/AdministrationDataSource</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:oracle:thin:@x.x.x.x:1521:xxx</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>xxx</user-name>
xxx
<min-pool-size>3</min-pool-size>
<max-pool-size>10</max-pool-size>
<idle-timeout-minutes>3</idle-timeout-minutes>
<track-statements>true</track-statements>
<valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<type-mapping>Oracle 9i</type-mapping>
</no-tx-datasource>
Thanks for any help or clue
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219840#4219840
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219840
17 years, 1 month
[JBoss Messaging] - Re: NullPersistence service manager performance
by brettcave
The timing metrics are measured internally by the EJB that contains the method to send the message to JMS.
A message is generated by our application. This message is passed to the method above.
A JMS producer is initialised.
A message correlation ID is generated from the message.
A JMS consumer is initialised.
The message is sent to the jms provider (jbm), flagged as non-persistent.
stomp connect is running (bisocket) and a native app (C) receives the message, performs some actions, and then sends a response back to JMS via stompconnect, where the EJB that initially sent the message receives the response.
The response message contains the timing of the native app, and the EJB then subtracts this time from the total timing.
So the results posted are basically for initalising the producer, generating / getting the correlation ID, sending the message until the message hits the app, and then from the message being sent back to JMS until it is received by the EJB.
The results basically are showing the timing differences between JBM 1.4.0-SP3 configured with mysql-persistence (even though messages are sent as non-persistent), JBM 1.4.2-SP1 with mysql-persistence and JBM 1.4.2-SP1 configured with null-persistence.
Trying to understand why null persistence configuration consistently has significantly higher latency than mysql persistence configuration, even though messages are always marked as non-persistent.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4219839#4219839
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4219839
17 years, 1 month