sunil chiluvuri | 2 May 09:52
Picon

Long delay in CreateSession on some computers

Hi,


We have been using OpenJMS for sending messages and have found it to be great. 

However, one of the members of our team recently changed his router and is experiencing long delays in getting a Session. 

On most systems the line 

javax.jms.Session session = s_JmsConnection.createSession(false, javax.jms.Session.AUTO_ACKNOWLEDGE);

returns in about 4 seconds. 

For servers in a single location that are behind a new router, it consistently takes 189 seconds. 

The server is configured with only the TCP connector. 

<ServerConfiguration host="*.*.*.*" embeddedJNDI="true" />
  <TcpConfiguration port="3035" jndiPort="3035" />
  <Connectors>
    <Connector scheme="tcp">
      <ConnectionFactories>
        <ConnectionFactory name="ConnectionFactory" />
      </ConnectionFactories>
    </Connector>
  </Connectors>

Its truly baffling how changing a router is causing this huge delay in getting a session. Any help is greatly appreciated. 

Thanks
Sunil


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
N W | 13 Feb 23:26
Picon
Favicon

unsub

unsubscribe
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
achille mbougueng | 12 Feb 07:37
Picon
Favicon

errors using openjms

Hi 

i'm a  new   user    of   openJMS

After  installations  and  all  set ups,  i've   to   write   for  using  queueconnection

please   find  attached my  sender code  programm

I'va  this   exception  

Exception in thread "main" javax.naming.NoInitialContextException: Need to specify class name in environment or system property, 
or as an applet parameter, or in an application resource file:  java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at Sender.<init>(Sender.java:19)
at Sender.main(Sender.java:44)

Please  how  to  fix  it 

Thanks
Achille MBOUGUENG
Tel: 0033 (0)7 61 70 57 45

skype: sim_patricx
web: achillesimo.creativdev-mada.com

www.andandoo.info

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
Sudharamya Kostu | 8 Mar 12:08
Favicon

Reg: OpenJMS with TOMCAT: Could not initialize class org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory

Dear tim,
 
Am trying one simple example in tomcat with OPENJMS.

try

{

String factory_name =

"JmsTopicConnectionFactory";

Properties props =

new Properties();

if (url.startsWith("rmi")) {

props.put(Context.

INITIAL_CONTEXT_FACTORY,

"org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory");

}

else {

props.put(Context.

INITIAL_CONTEXT_FACTORY,

"org.exolab.jms.jndi.mipc.IpcJndiInitialContextFactory");

}

props.put(Context.

PROVIDER_URL, url);

// lookup the connection factory from the context

Context context =

new InitialContext(props);

TopicConnectionFactory factory = (TopicConnectionFactory)

context.lookup(factory_name);

// if we can't find the factory then throw an exception

if (factory != null) {

TopicConnection connection = factory.createTopicConnection();

TopicSession session = connection.createTopicSession(

false, Session.AUTO_ACKNOWLEDGE);

Topic topic = session.createTopic(topic_name);

if (topic != null) {

TopicPublisher publisher = session.createPublisher(topic);

if (publisher != null) {

          for (int index = 0; index < count; index++) {

                   publisher.publish(session.createTextMessage(

                 "publish message " + count));

       }

}

}

}

While running am getting the following error:
java.lang.NoClassDefFoundError: Could not initialize class org.exolab.jms.jndi.rmi.RmiJndiInitialContextFactory
 
jARS iNCLUDED ARE:
jms-1.1
jndi-1.2.1
openjms-client-0.7.6-rc1
openjms-0.7.7-beta-1
exolabcore-0.3.5
openjms-0.7.4
Though this class is available in jar, it is not recognizing properly.
 
Please suggest me required JARS, in order to run this example in tomcat.
Thanks in Advance,
 
Regards,
Sudha
Tata Consultancy Services
Mailto: sudharamya.kostu-/cgKlWMm3F8@public.gmane.org
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
Eric Johnson | 20 Nov 01:52
Favicon

Defining a JMS URI scheme

For the purposes of defining SOAP/JMS, over the past few years, a few of us have
been working on defining a JMS URI scheme.

Seems like a good idea to explicitly ask if anyone here has any feedback on the
proposed URI:

http://tools.ietf.org/html/draft-merrick-jms-uri-09

I've got an updated version with a few changes in the works, but they're minor.

-Eric.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
Dey, Anupam | 2 Sep 13:40
Favicon

Subscriber hangs during start

Hi,

 

I am very new to JMS and was just trying to run a few programs to check out the features it has. I have 2 classes for implementing Publisher and Durable Subscriber with MessageListener. When I try to publish the messages, it publishes them successfully to the topic. But the problem is when I try to start the subscriber, it hangs and is never able to read the messages. Even the onMessage() method of MessageListener is not invoked. When I modify only the publisher code to have CLIENT_ACKNOWLEDGE instead of AUTO_ACKNOWLEDGE in Session, the subscriber starts and is able to read for the first time. But next time after a new message is published, again the subscriber hangs and is unable to read any messages.

 

Can anyone please help in this matter as it is very urgent? I am attaching my programs with this email.

 

Regards,

Anupam

 







This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is
intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to
read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message
in error, please notify the sender immediately and delete all copies of this message.
import java.util.HashMap;

import javax.jms.JMSException;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.jms.Topic;
import javax.jms.TopicConnection;
import javax.jms.TopicConnectionFactory;
import javax.jms.TopicPublisher;
import javax.jms.TopicSession;


/**
 * The LXKJMSPublisher class publishes messages to a topic. It
 * contains a constructor, a publishMessages method, and a finish method.
 *
 */
public class LXKJMSPublisher {
    TopicConnection  topicConnection = null;
    TopicSession     topicSession = null;
    Topic            topic = null;
    TopicPublisher   topicPublisher = null;
    int              exitResult = 0;
    String 			 topicName = "topic1";
    
    /**
     * Constructor: looks up a connection factory and topic and creates a 
     * connection and session.  Also creates the publisher.
     */
    public LXKJMSPublisher() {
        TopicConnectionFactory  topicConnectionFactory = null;

        try {
            topicConnectionFactory = 
                LXKJMSUtilities.getTopicConnectionFactory();
            topicConnection = 
                topicConnectionFactory.createTopicConnection();
            topicSession = topicConnection.createTopicSession(false, 
                Session.CLIENT_ACKNOWLEDGE);
            topic = LXKJMSUtilities.getTopic(topicName, topicSession);
            topicPublisher = topicSession.createPublisher(topic);
        } catch (Exception e) {
            System.out.println("Connection problem: " + e.toString());
            if (topicConnection != null) {
                try {
                    topicConnection.close();
                } catch (JMSException ee) {}
            }
	        System.exit(1);
        } 
    }
    
    /**
     * Creates text message.
     * Sends some messages, depending on the event e.g Part release etc.
     * Messages must be persistent.
     */
    public void publishMessages(HashMap hmInfo, String sEvent) {
        TextMessage   message = null;
        StringBuilder sbMsgDetails = new StringBuilder(360);
        try {
            message = topicSession.createTextMessage();
            if(LXKUtil.isNotBlank(sEvent) && 
            		"PartRelease".equals(sEvent) && hmInfo != null){
            	sbMsgDetails.append("<PartName>");
            	sbMsgDetails.append((String)hmInfo.get("PartName"));
            	sbMsgDetails.append("</PartName>");
            }
            message.setText(sbMsgDetails.toString());
          //  message.setText("MESSAGE NUMBER 1");
            if(LXKUtil.isBlank(sEvent)){
            	throw new JMSException("Event could not be found.");
            }
            if(hmInfo == null){
            	throw new JMSException("Message details to be published not found.");
            }
            System.out.println("PUBLISHER: Publishing message: " 
                + message.getText());
            topicPublisher.publish(message);
            //topicPublisher.setTimeToLive(10000);

            // Send a non-text control message indicating end of messages.
            topicPublisher.publish(topicSession.createMessage());
        } catch (JMSException e) {
        	/*try {
				topicSession.rollback();
			} catch (JMSException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}*/
            System.out.println("Exception occurred: " + e.toString());
            exitResult = 1;
        }
    }
    
    /**
     * Closes the connection.
     */
    public void finish() {
        if (topicConnection != null) {
            try {
                topicConnection.close();
            } catch (JMSException e) {
                exitResult = 1;
            }
        }
    }
    
    public static void main(String[] args) {
    	LXKJMSPublisher  pub = new LXKJMSPublisher();
        HashMap hmtopic = new HashMap(4);
        hmtopic.put("PartName", "12344");
        pub.publishMessages(hmtopic, "PartRelease");
    	pub.finish();
    	
    	LXKJMSUtilities.exit(pub.exitResult);
    }
}
import javax.jms.ExceptionListener;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.Session;
import javax.jms.TextMessage;
import javax.jms.Topic;
import javax.jms.TopicConnection;
import javax.jms.TopicConnectionFactory;
import javax.jms.TopicSession;
import javax.jms.TopicSubscriber;

/**
 * The LXKJMSDurableSubscriber class contains a constructor, a startSubscriber 
 * method, a closeSubscriber method, and a finish method.
 * <p>
 * The class fetches messages asynchronously, using a message listener, 
 * TextListener.
 *
 */
public class LXKJMSDurableSubscriber {
    TopicConnection  topicConnection = null;
    TopicSession     topicSession = null;
    Topic            topic = null;
    TopicSubscriber  topicSubscriber = null;
    TextListener     topicListener = null;
    int              exitResult = 0;
    long 			 timeStamp = System.currentTimeMillis();
    String 			 topicName = "topic1";
    String 			 subscriber = null;
    
    /**
     * The TextListener class implements the MessageListener interface by 
     * defining an onMessage method for the LXKJMSDurableSubscriber class.
     *
     */
    private class TextListener implements MessageListener, ExceptionListener {
    	
        final LXKJMSUtilities.DoneLatch  monitor =
            new LXKJMSUtilities.DoneLatch();
        
        /**
         * Casts the message to a TextMessage and displays its text.
         * A non-text message is interpreted as the end of the message 
         * stream, and the message listener sets its monitor state to all 
         * done processing messages.
         *
         * @param message	the incoming message
         */
        public void onMessage(Message message) {
            if (message instanceof TextMessage) {
                TextMessage  msg = (TextMessage) message;
                
                try {
                    System.out.println("SUBSCRIBER: Reading message: " 
                                       + msg.getText());
                } catch (JMSException e) {
                    System.out.println("Exception in onMessage(): " 
                                       + e.toString());
                }
            } else {
                monitor.allDone();
            }
        }
        
        /**
        This method is called asynchronously by JMS when some error occurs.
        When using an asynchronous message listener it is recommended to use
        an exception listener also since JMS have no way to report errors
        otherwise.
        @param exception A JMS exception.
        */
	     public void onException(JMSException exception)
	     {
	        System.err.println("something bad happended: " + exception);
	     }
    }

    /**
     * Constructor: looks up a connection factory and topic and creates a 
     * connection and session.
     */
    public LXKJMSDurableSubscriber() {
        TopicConnectionFactory  topicConnectionFactory = null;

        try {
            topicConnectionFactory = 
                LXKJMSUtilities.getTopicConnectionFactory();
            topicConnection = 
                topicConnectionFactory.createTopicConnection();
            topicConnection.setClientID(Long.toString(timeStamp));
            topicSession = topicConnection.createTopicSession(false, 
                Session.AUTO_ACKNOWLEDGE);
            topic = LXKJMSUtilities.getTopic(topicName, topicSession);
        } catch (Exception e) {
            System.out.println("Connection problem: " + e.toString());
            if (topicConnection != null) {
                try {
                    topicConnection.close();
                } catch (JMSException ee) {}
            }
	        System.exit(1);
        } 
    }

    /**
     * Stops connection, then creates durable subscriber, registers message 
     * listener (TextListener), and starts message delivery; listener
     * displays the messages obtained.
     */
    public void startSubscriber() {
        try {
            System.out.println("Starting subscriber");
            topicConnection.stop();
            topicSubscriber = topicSession.createDurableSubscriber(topic,
            		subscriber);
            topicListener = new TextListener();
            topicSubscriber.setMessageListener(topicListener);
            topicConnection.start();
        } catch (JMSException e) {
            System.out.println("Exception occurred: " + e.toString());
            exitResult = 1;
        }
    }
    
    /**
     * Blocks until publisher issues a control message indicating
     * end of publish stream, then closes subscriber.
     */
    public void closeSubscriber() {
        try {
            topicListener.monitor.waitTillDone();
            System.out.println("Closing subscriber");
            topicSubscriber.close();
        } catch (JMSException e) {
            System.out.println("Exception occurred: " + e.toString());
            exitResult = 1;
        }
    }
    
    /**
     * Closes the connection.
     */
    public void finish() {
        if (topicConnection != null) {
            try {
                topicSession.unsubscribe(subscriber);
                topicConnection.close();
            } catch (JMSException e) {
                exitResult = 1;
            }
        }
    }
    
    /**
     * Reads the subscriber name from the command line, then calls the
     * program.
     *
     * @param args	the subscriber name
     */
    public static void main(String[] args) {
    	LXKJMSDurableSubscriber  dse = new LXKJMSDurableSubscriber();
        
        if (args.length != 1) {
    	    System.out.println("Usage: java LXKJMSDurableSubscriber <subscriber_name>");
    	    System.exit(1);
    	}
        
        String  subscriberName = new String(args[0]);
        dse.subscriber = subscriberName;
        System.out.println("Subscriber name is ==> " + dse.subscriber);

    	dse.startSubscriber();
    	dse.closeSubscriber();
    	dse.finish();
    	
    	LXKJMSUtilities.exit(dse.exitResult);
    }
}
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
Picon

Error in getting a connection to Oracle 11g RAC in openJMS


Hi there,

I am having an issue with the OpenJMS v 0.7.5 RC1 used in a third technology. This issue is related to getting a JMS connection to Oracle 11g RAC through JDBC.

When I set the openJMS to connect to Oracle 11g without cluster configuration I don’t have any problems, but when I set the cluster configuration using the LOAD_BALANCE and/or FAILOVER features I couldn’t get any connection. The database cluster configuration is set in the openjms.xml configuration file:

<DatabaseConfiguration>
        <RdbmsDatabaseConfiguration
      driver="oracle.jdbc.driver.OracleDriver"   url="jdbc:oracle:thin: <at> (DESCRIPTION=(FAILOVER=on)(LOAD_BALANCE=yes)(ADDRESS=(PROTOCOL=TCP)(HOST=host01-vip.com)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=
host02-vip.com)(PORT=1521))(CONNECT_DATA=(service_name=JBORAP02)))"
        user="virageuser"

password="password" />

</DatabaseConfiguration>

And the error description in the open jms log, is:

INFO   | jvm 1    | 2010/05/04 16:27:41 | org.exolab.jms.server.ServerException: org.exolab.jms.persistence.PersistenceException: java.sql.SQLException: Exceção de E/S: Connection refused(DESCRIPTION=(ERR=1153)(VSNNUM=185599488)(ERROR_STACK=(ERROR=(CODE=1153)(EMFI=4)(ARGS='(ADDRESS=(PROTOCOL=TCP)(HOST=host02)(PORT=1521))'))(ERROR=(CODE=305)(EMFI=1))))

 

I googled this error without success, any suggestions is really appreciated.

Thanks

Erick J. Delgado Ramirez
------------------------------------------------------------------------------

_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user
Javier Godinez | 5 Dec 00:33
Picon

HTTPS Help

Hello OpenJMS users, hopefully someone has gotten HTTPS tunnels working.
I'm having a hard time with setting up a simple test. Here is the Java
Code, it never gets past the InitialContext line:

		Hashtable properties = new Hashtable();
		properties.put(Context.INITIAL_CONTEXT_FACTORY,
				"org.exolab.jms.jndi.InitialContextFactory");
		properties.put(Context.PROVIDER_URL, "https://localhost:8443/");
		properties.put("org.exolab.jms.net.https.keyStore", "/Users/.../.keystore");
		properties.put("org.exolab.jms.net.https.trustStore", "/Users/../.keystore");
		properties.put("org.exolab.jms.net.https.keyStorePassword", "...");
		
		Context cntx = new InitialContext(properties);

Here is the debug:

keyStore is : /Users/.../.keystore
keyStore type is : jks
keyStore provider is :
init keystore
init keymanager of type SunX509
trustStore is: /Users/.../.keystore
trustStore type is : jks
trustStore provider is :
init truststore
adding as trusted cert:
  Subject: CN=J Godinez, OU=TEST, O=TEST, L=, ST=CA, C=US
  Issuer:  CN=J Godinez, OU=TEST, O=TEST, L=, ST=CA, C=US
  Algorithm: RSA; Serial number: 0x4b1981f4
  Valid from Fri Dec 04 13:41:08 PST 2009 until Thu Mar 04 13:41:08 PST 2010

trigger seeding of SecureRandom
done seeding SecureRandom
%% No cached client session
*** ClientHello, TLSv1
RandomCookie:  GMT: 1259902718 bytes = { 139, 80, 78, ..., 172 }
Session ID:  {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA,
TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA,
TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
TLS_DHE_DSS_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_256_CBC_SHA,
SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,
SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA,
SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA,
SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,
SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods:  { 0 }
***
[write] MD5 and SHA1 hashes:  len = 79
0000: 01 00 00 4B 03 01 4B 19   97 FE 8B 50 4E 94 20 16  ...K..K....PN. .
...
0040: 09 00 15 00 12 00 03 00   08 00 14 00 11 01 00     ...............
main, WRITE: TLSv1 Handshake, length = 79
[write] MD5 and SHA1 hashes:  len = 107
0000: 01 03 01 00 42 00 00 00   20 00 00 04 01 00 80 00  ....B... .......
...
0060: 29 70 49 50 12 00 49 BD   FD 3B AC                 )pIP..I..;.
main, WRITE: SSLv2 client hello message, length = 107
[Raw write]: length = 109
...
0060: 03 B9 29 70 49 50 12 00   49 BD FD 3B AC           ..)pIP..I..;.
[Raw read]: length = 5
0000: 16 03 01 02 A1                                     .....
[Raw read]: length = 673
0000: 02 00 00 46 03 01 4B 19   97 FE 3F 50 E0 D0 3C E0  ...F..K...?P..<.
...
0290: 94 CC 3E 84 55 24 B3 9E   12 D9 FD B6 46 0E 00 00  ..>.U$......F...
02A0: 00                                                 .
main, READ: TLSv1 Handshake, length = 673
*** ServerHello, TLSv1
RandomCookie:  GMT: 1259902718 bytes = { 63, ... 121 }
Session ID:  {75, ... 226}
Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
Compression Method: 0
***
%% Created:  [Session-1, SSL_RSA_WITH_RC4_128_MD5]
** SSL_RSA_WITH_RC4_128_MD5
[read] MD5 and SHA1 hashes:  len = 74
0000: 02 00 00 46 03 01 4B 19   97 FE 3F 50 E0 D0 3C E0  ...F..K...?P..<.
...
0040: 64 0C C6 76 D5 E4 E2 00   04 00                    d..v......
*** Certificate chain
chain [0] = [
[
  Version: V3
  Subject: CN=J Godinez, OU=TEST, O=TEST, L=, ST=CA, C=US
  Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5

  Key:  Sun RSA public key, 1024 bits
  modulus: 107342282817175...430515336218733
  public exponent: 65537
  Validity: [From: Fri Dec 04 13:41:08 PST 2009,
               To: Thu Mar 04 13:41:08 PST 2010]
  Issuer: CN=J Godinez, OU=TEST, O=TEST, L=, ST=CA, C=US
  SerialNumber: [    4b1981f4]

]
  Algorithm: [SHA1withRSA]
  Signature:
0000: 68 E8 72 6C 95 4B E6 C9   C3 AE C9 5F AD 4F B4 51  h.rl.K....._.O.Q
...
0070: C9 B0 BB 94 CC 3E 84 55   24 B3 9E 12 D9 FD B6 46  .....>.U$......F

]
***
Found trusted certificate:
[
[
  Version: V3
  Subject: CN=J Godinez, OU=IIS BU, O=SAIC, L=San Diego, ST=CA, C=US
  Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5

  Key:  Sun RSA public key, 1024 bits
  modulus: 1073422828171758035...430515336218733
  public exponent: 65537
  Validity: [From: Fri Dec 04 13:41:08 PST 2009,
               To: Thu Mar 04 13:41:08 PST 2010]
  Issuer: CN=J Godinez, OU=TEST, O=TEST, L=, ST=CA, C=US
  SerialNumber: [    4b1981f4]

]
  Algorithm: [SHA1withRSA]
  Signature:
0000: 68 E8 72 6C 95 4B E6 C9   C3 AE C9 5F AD 4F B4 51  h.rl.K....._.O.Q
...
0070: C9 B0 BB 94 CC 3E 84 55   24 B3 9E 12 D9 FD B6 46  .....>.U$......F

]
[read] MD5 and SHA1 hashes:  len = 595
0000: 0B 00 02 4F 00 02 4C 00   02 49 30 82 02 45 30 82  ...O..L..I0..E0.
...
0240: 19 D7 E9 C9 B0 BB 94 CC   3E 84 55 24 B3 9E 12 D9  ........>.U$....
0250: FD B6 46                                           ..F
*** ServerHelloDone
[read] MD5 and SHA1 hashes:  len = 4
0000: 0E 00 00 00                                        ....
*** ClientKeyExchange, RSA PreMasterSecret, TLSv1
[write] MD5 and SHA1 hashes:  len = 134
0000: 10 00 00 82 00 80 77 C8   EE 80 12 E9 97 02 15 A8  ......w.........
...
0070: 2C BC 7D EB 78 24 CB 44   B6 8F 16 FA 82 D1 10 4C  ,...x$.D.......L
0080: 1F 4F F4 45 3A BC                                  .O.E:.
main, WRITE: TLSv1 Handshake, length = 134
[Raw write]: length = 139
0000: 16 03 01 00 86 10 00 00   82 00 80 77 C8 EE 80 12  ...........w....
0010: E9 97 02 15 A8 2A 3A 5F   F1 0A 91 48 5E 08 2E 90  .....*:_...H^....
...
0080: FA 82 D1 10 4C 1F 4F F4   45 3A BC                 ....L.O.E:.
SESSION KEYGEN:
PreMaster Secret:
0000: 03 01 75 A2 2B 37 78 93   75 57 0B AC FE D9 C9 EA  ..u.+7x.uW......
0010: 85 B0 19 B3 80 10 D4 DC   0D FD C1 7A 90 01 99 3F  ...........z...?
0020: E3 78 6B 12 0D BF 15 96   A3 0F C3 AF 2D 62 68 34  .xk.........-bh4
CONNECTION KEYGEN:
Client Nonce:
0000: 4B 19 97 FE 8B 50 4E 94   20 16 56 79 5E 41 02 56  K....PN. .Vy^A.V
0010: 9B 84 89 03 B9 29 70 49   50 12 00 49 BD FD 3B AC  .....)pIP..I..;.
Server Nonce:
0000: 4B 19 97 FE 3F 50 E0 D0   3C E0 36 0C 37 B4 A4 7C  K...?P..<.6.7...
0010: 3D 68 04 13 88 6C 67 37   7F 36 04 77 CA E6 BF 79  =h...lg7.6.w...y
Master Secret:
0000: 86 C3 55 F6 F1 B5 81 DA   58 F9 1C 90 53 20 1F 72  ..U.....X...S .r
0010: 31 1B C7 36 FC 15 D7 71   0B 77 87 73 47 86 EB 55  1..6...q.w.sG..U
0020: B1 11 DC 78 5C 43 1E 39   5C 39 D7 A8 BA 89 D6 98  ...x\C.9\9......
Client MAC write Secret:
0000: 35 52 F7 3D 12 AB 71 FF   9D 23 FA 2F 98 92 E8 14  5R.=..q..#./....
Server MAC write Secret:
0000: 0D 14 A9 24 D6 43 C1 0A   83 4A 7F 81 E2 A2 67 B3  ...$.C...J....g.
Client write key:
0000: 7D 16 1D 04 C4 09 33 6E   EF C8 0A 7F A2 64 16 F1  ......3n.....d..
Server write key:
0000: B7 9F A7 66 2A 39 24 AD   A9 C7 C0 B4 D6 66 15 D5  ...f*9$......f..
... no IV used for this cipher
main, WRITE: TLSv1 Change Cipher Spec, length = 1
[Raw write]: length = 6
0000: 14 03 01 00 01 01                                  ......
*** Finished
verify_data:  { 190, 254, 191, 68, 122, 148, 213, 101, 19, 213, 9, 47 }
***
[write] MD5 and SHA1 hashes:  len = 16
0000: 14 00 00 0C BE FE BF 44   7A 94 D5 65 13 D5 09 2F  .......Dz..e.../
Padded plaintext before ENCRYPTION:  len = 32
0000: 14 00 00 0C BE FE BF 44   7A 94 D5 65 13 D5 09 2F  .......Dz..e.../
0010: E8 8D 1F BF 04 D0 58 E6   A9 6E F4 41 D3 99 99 A4  ......X..n.A....
main, WRITE: TLSv1 Handshake, length = 32
[Raw write]: length = 37
0000: 16 03 01 00 20 A7 76 57   03 06 3C 3E D3 B0 A5 5B  .... .vW..<>...[
0010: 1E 7E 17 47 DA 94 DD 22   BE F8 8F 85 11 1C FA 9B  ...G..."........
0020: B5 47 16 8F C6                                     .G...
[Raw read]: length = 5
0000: 14 03 01 00 01                                     .....
[Raw read]: length = 1
0000: 01                                                 .
main, READ: TLSv1 Change Cipher Spec, length = 1
[Raw read]: length = 5
0000: 16 03 01 00 20                                     ....
[Raw read]: length = 32
0000: A1 8F D3 24 15 3C 84 A3   F7 0B 17 41 D0 32 DD B0  ...$.<.....A.2..
0010: 32 BE 87 FD 39 D8 AC 49   85 75 B5 C6 A5 9C 9B 4B  2...9..I.u.....K
main, READ: TLSv1 Handshake, length = 32
Padded plaintext after DECRYPTION:  len = 32
0000: 14 00 00 0C 65 B8 F8 9D   55 5D 94 EC 89 48 17 38  ....e...U]...H.8
0010: 64 6F A1 FC E9 81 9D 16   C0 93 7A E6 C1 6F EB F2  do........z..o..
*** Finished
verify_data:  { 101, 184, 248, 157, 85, 93, 148, 236, 137, 72, 23, 56 }
***
%% Cached client session: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
[read] MD5 and SHA1 hashes:  len = 16
0000: 14 00 00 0C 65 B8 F8 9D   55 5D 94 EC 89 48 17 38  ....e...U]...H.8
main, called close()
main, called closeInternal(true)
main, SEND TLSv1 ALERT:  warning, description = close_notify
Padded plaintext before ENCRYPTION:  len = 18
0000: 01 00 81 45 B7 58 AE 99   A0 85 72 AA D6 ED 7D 5C  ...E.X....r....\
0010: 38 FD                                              8.
main, WRITE: TLSv1 Alert, length = 18
[Raw write]: length = 23
0000: 15 03 01 00 12 46 2C 67   38 BD 8C AD CB C8 0C 57  .....F,g8......W
0010: 1B 86 C2 6E 3A 2A 4B                               ...n:*K
%% Invalidated:  [Session-1, SSL_RSA_WITH_RC4_128_MD5]
javax.naming.CommunicationException: Failed to get registry service
for URL: https://localhost:8443/ [Root exception is
java.rmi.ConnectIOException: Failed to create connection; nested
exception is:
	org.exolab.jms.net.connector.ConnectException: Failed to connect to
URI=https://localhost:8443/openjms-tunnel/tunnel]
	at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
	at javax.naming.InitialContext.init(InitialContext.java:223)
	at javax.naming.InitialContext.<init>(InitialContext.java:197)
	at TestTunnelClient.connect(TestTunnelClient.java:33)
	at TestTunnelClient.main(TestTunnelClient.java:58)
Caused by: java.rmi.ConnectIOException: Failed to create connection;
nested exception is:
	org.exolab.jms.net.connector.ConnectException: Failed to connect to
URI=https://localhost:8443/openjms-tunnel/tunnel
	at org.exolab.jms.net.orb.Locator.getProxy(Locator.java:137)
	at org.exolab.jms.net.orb.Locator.getRegistry(Locator.java:103)
	at org.exolab.jms.net.orb.DefaultORB.getRegistry(DefaultORB.java:285)
	at org.exolab.jms.client.net.SharedORB.getRegistry(SharedORB.java:121)
	at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:144)
	... 6 more
Caused by: org.exolab.jms.net.connector.ConnectException: Failed to
connect to URI=https://localhost:8443/openjms-tunnel/tunnel
	at org.exolab.jms.net.http.AbstractHTTPManagedConnection.<init>(AbstractHTTPManagedConnection.java:118)
	at org.exolab.jms.net.http.HTTPSManagedConnection.<init>(HTTPSManagedConnection.java:74)
	at org.exolab.jms.net.http.HTTPSManagedConnectionFactory.createManagedConnection(HTTPSManagedConnectionFactory.java:124)
	at org.exolab.jms.net.connector.DefaultConnectionPool.createManagedConnection(DefaultConnectionPool.java:233)
	at org.exolab.jms.net.connector.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:140)
	at org.exolab.jms.net.connector.AbstractConnectionFactory.getConnection(AbstractConnectionFactory.java:167)
	at org.exolab.jms.net.connector.AbstractConnectionManager.getConnection(AbstractConnectionManager.java:208)
	at org.exolab.jms.net.orb.Locator.getProxy(Locator.java:131)
	... 10 more

Is this a problem with my certificates, maybe opejms is misconfigured,
but it seems that I don't even get that far....

Thanks,
Javier Godinez
--

-- 
★ jg

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
openjms-user mailing list
openjms-user <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openjms-user
Picon

accessing open jms from osgi container

Hello,

I am trying to access a open jms server (0.7.6.1 and 0.7.7-beta-1) from an osgi container. I have tried two
(knopflerfish and equinox(eclipse)).

In both cases when I am trying to obtain a jndi initial context the
org.exolab.jms.jndi.InitialContextFactory can't be loaded. Either a class not found exception or a
class cast exception occur. (to a javax.naming.spi.InitialContextFactory.

Out of the container it runs fine.

Is anyone willing to look into this or should I quit open jms and try something else ? I'm putting this very
plainly because the test I made to verify these situations assure me that I have not detected no other error
in the test that I can blame on something else. I really suspect that there is some incompatibility between
the two. I can send the osgi bundle that tests this.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Rajasekhar | 29 Jul 14:41
Picon
Favicon

Open JMS Tomcat Compatiablity

Will the Open JMS 0.7.7 beta version compatiable with Tomcat 5.5 ?

is there any relation between Tomcat versions with Open JMS versions ?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
Picon

Problem with OpenJMS openjms-0.7.7-beta-1 and Oracle RAC

Hello,

 

We are now working with a system that uses OpenJMS version 0.77 beta 1 configured to have its database installed in an Oracle database. This is not the problem, the problem is that the database is distributed in a two-host cluster using Oracle RAC, and when we make a balancing test, the few seconds the Oracle RAC is moving the load to the host that is not shutdown the OpenJMS server returns errors while treating incoming and outgoing messages.

 

Any idea?? Someone has encountered this kind of problem?? Is there a way to make the OpenJMS to wait until the RAC responds??

 

Thank you in advance

 

Regards.

 

Susana Uruñuela Hernández

 

------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
openjms-user mailing list
openjms-user@...
https://lists.sourceforge.net/lists/listinfo/openjms-user

Gmane