JMS and Trusted Solaris

I have also posted this on the Trusted Solaris Forum, but I figured someone here might have an idea too.
Trusted Solaris 8 7/03 with application servers running at multiple classification levels. I can have single level producers and consumers communicate at each level, but I need a single consumer to be able to subscribe to topics at both levels.
Thanks,
Alan

Within Trusted Solaris, a port is a triple(ip:port:classification), not a tuple (ip:port). There are mechanisms within the C API to trusted solaris to bind to a MLS port. This is doable because the process is actually able to process multiple levels of data, however the JVM is running at a single level and is unaware that it is running on a MLS operating system. I am looking for either a clean way to tell the JVM to connect to a polyinstantiated port (and be able to read data whose label is dominated) or to communicate to a JVM running at a different classification.

Similar Messages

  • Portal Server (JES1 version)  and Trusted Solaris

    Federal Sales Opportunites are demanding more and more that Sun move to "Trusted Solaris" Does anyone know if the Portal Server that ships with JES would actually work on Trustes Solaris 8
    Any guidance would be greatly appreciated.
    Thanks
    Adam

    hi sushmac,
    I could start the portal server. basically it was a CACAO problem. I first checked whether my cacao was up or not. Actually the cacao was not up as I didn't had any JDMK home in my system . So, in the next step I downloaded SUNJDMK and then setted the jdmk home parameter for cacao as well as the Javahome parameter.. After this I rebuild the dependencies
    by ./cacaoadm rebuild-dependencies
    and started the cacaodm. using ./cacaoadm start
    after that I could easily run the configuration examples.
    thanks for ur help
    I want some more details on cacao... from where can I get them..
    thanks
    dhawanmayur

  • How to enable USB drive and CDwrite in Trusted Solaris.

    hello
    I installed Trusted Solaris extensions in an X86 desktop and after that the cdwrite disappeared, the usb drive is not detected.
    How do I enable the CD writer and the zip drive ? I have a file to be copied urgently, the USB drive doesn't work, the CD writer is not seen on the menu and internet / email is still not functional on this desktop
    If there are some commands to be typed, please give me step by step instructions with command syntax and if there is a file to be altered please let me know where to find that file to be altered.
    Thank you.

    Hi Amit,
    It's the same for Solaris. Take care about the line breaks in the document (sometimes one command seems to be two commands, it's one with parameters) and there is also a small bug: On page 6, step 5, it must read "Directory = topicmaps/example" (as printed in the screenshot).
    Hope it helps
    Detlev

  • Trusted Solaris and Java sockets

    Hello,
    Sun has provided a very rich set of Trusted Solaris 8 socket calls.
    But how do I use them from Java?
    Thanks

    Thanks. I'm a little bit confused. When I use the following code to display the input stream...
    byte[] b = new byte[1000];
    int ch = is.read(b);
    while (ch > -1) {
       System.out.print(new String(b, 0, ch));
       ch = is.read(b);
    }...I see this...
    POST / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*
    Accept-Language: en-gb
    Content-Type: application/x-www-form-urlencoded
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
    Host: localhost
    Content-Length: 80
    Connection: Keep-Alive
    Cache-Control: no-cache
    file=C%3A%5Cworkspace%5CConnect%5CTest%5CHTTPTest%5Cres%5Ctest.txt&submit=Upload
    ...but this doesn't contain the contents of the file that was attached. How can I parse the input stream so I can retrieve the contents of the "temp.txt" file that was attached to the HTML form POST?

  • Installing third party application on Trusted Solaris 8

    Does anyone know of a procedure describing the steps necessary to install an application into /usr/local/ on Trusted Solaris 8. I've managed to get directories and files created under this by switching between admin_high and admin_low workspaces. However, part of the process requires one of the binaries in a sub-directory under /usr/local/ to write to a file in another sub-directory under /usr/local. I have not found a way for this to successful execute.

    HI andouille07,
    What application are you trying to install.
    Have you tried fallowing this article?
    Enable DVD or CD Sharing
    http://support.apple.com/kb/ht1131
    Enable DVD or CD Sharing should be performed on your desktop.
    while "Use a shared DVD or CD:" should be on the air.
    If you do not see the remote disk on the air. make sure both your desktop and macbook air are connected to the same network over wifi.
    If that dose not work you could try making a disk image, and then coping the disk image to the flash drive and bringing the flash drive over to the other computer. assuming your desktop is a mac.
    http://www.ehow.com/video4978318create-disk-image-mac-os.html explains how to make a disk image.
    you can always purchase the external super drive as well.
    http://store.apple.com/us/product/MB397G/A

  • How to install Trusted solaris 2.5.1on Enterprise Sever 420R

    Hello,
    We r doing the installation of Trusted Solaris 2.5.1 and facing some difficulties.
    Please tell me whether Trusted Solarise 2.5.1 is supported on Enterprise 420R? if YES then is there any specific procedure for installing the Trusted Solaris 2.5.1.
    We have done the installation of trusted Solaris 2.5.1 on Enterprise 420R but after installation ,when we rebooted the server it doesn't find the kernal file to boot the system.
    The Error Mesg. at ok prompt is "file not found kernel/unix"
    Thanks & Regards,
    Nitin mahadik.

    Hi,
    As per data sheet on E420R, the following operating systems are supported on E420R.
    Solaris 2.6, 5/98 or Solaris 7,8/99.
    Kindly check system with same vesion of Solaris.
    I guess this will help you.
    Thanks,
    SdD

  • Is it a complex task to translate between JMS and MQ?

    Hello!
    I wonder if it is a complex task to translate a JMS message (javax.jms.Message) to a MQ message (com.xxx.MQMessage)?
    xxx=I do not remember the package name for MQMessage
    Right now I participate in a project where we need to do this translation.
    (I must admit that I thougt there was no need for a translation. I thought that JMS was transparent to MQ and vice versa. But I guess I was wrong)
    I would love to hear some experiance and perhaps if there is some "best practice", please let me know!
    Best regards
    Fredrik

    antsbull wrote:
    I'm happy for you that you use WebLogic - however WebSphere MQ is the leading messaging technology in the industry. If it is configured correctly it guarantees 100% message retention. You may beg to differ, but you have nothing to back it up with so far - maybe IBM should be sued for false advertising if it is impossible (as you say)?Not really. IBM isn't a very important software company, IMO. They're huge in global services, but they passed leadership in hardware and software off to others decades ago. Or maybe you're one of those people who still lives in the 80s and thinks of IBM as a "leader".
    There's a lot of IBM legacy out there. Banks are still running DB2, but nobody thinks it's a leader in the relational database space. There's a lot of Cobol code with CICS running on mainframes, but surely you're not going to cite that as cutting edge, are you?
    Just curious - do you work for IBM?
    All I know is that MQ is the industry standard, as you can easily discover on google or wikipedia or whatever you want. Wikipedia? Is that your best source? LOL!
    Let's look at Wikipedia, shall we? Your own source tells me that WebSphere is ~40% of the market:
    http://en.wikipedia.org/wiki/MQSeries
    I'm even suspicious of these numbers, because I think they leave out the open source parts of the market. How do you quantify that? # downloads? # of systems in production? I'll bet that survey doesn't exist. And it looks different depending on whether we're talking about large or small companies.
    Why don't you find some links to support your claim? You've done nothing but say "industry leading" and "guarantees 100%". Your "because I said so" isn't convincing, either.
    Come back in a month - I have time.
    Maybe if you are such a messaging expert you would have some reasons why the majority of the industry use MQ and not WebLogic even though WebLogic is supposedly better? Because the entire world isn't IBM anymore.
    I worked on a Ministry of Justice project that used WebLogic application server and its JMS queues for a critical messaging component - and at least once every two weeks the queues would go down and there would be a mad rush to get them back up - this was probably a poorly configured installation of WebLogic, and is only one example, but it left me with a pretty poor opinion of the product.That's fair. I don't know anything about the version or the admins or the servers or even you. But if that's what your experience has been, I can't question it. Maybe I can question the competence of a Ministry of Justice (which country?) that doesn't seem to train their WebLogic and server admins properly. Maybe it's an organizational problem.
    I can say that we have farms of WebLogic running on Solaris servers that are very reliable. I developed one app that faces out to the Internet that uses JMS, and that app hasn't had to come down in almost three years. Reliable enough?
    WebSphere and WebLogic have been neck and neck in the Java EE app server space for a long time, each controlling 35-40% of the market. I think JBOSS and Glassfish are making some inroads there. Spring is making it possible to write enterprise apps that can be deployed on servlet/JSP engines.
    And all of this discussion leaves out Microsoft, .NET, and MSMQ.
    I would believe that MQ series has the lion's share of the middleware/messaging market, but I'd bet that it has less to do with the clear superiority of the product and more to do with the large legacy base that IBM has out there. It's a very old mainframe/COBOL/CICS kind of technology, and the organizations that brought it in tend to be large and conservative.
    You didn't ask any questions about the OP's organization. I think that ought to factor into the discussion.
    Oh, and by the way more than 80% of the companies on the Fortune 100 use WebSphere MQ - maybe you should inform them how rubbish it is?And 76.273% of all statistics are made up on the spot.
    I'm not interested in convincing anybody of anything. It's my opinion that if I had a Java EE app server with JMS on it that I wouldn't bring in IBM's MQ Series just for the sake of having it. If there was a legacy system that I needed to integrate with that demanded I use MQ Series there'd be no question.
    But why does it seem sensible to bring in yet another moving part, another expense, another separate piece to be configured and maintained and upgraded? Applications are hard enough to develop. I wouldn't use MQ Series for its own sake, and I'd challenge anybody who brought it in because "they said so".
    %

  • Unable to read from JMS queue on Solaris

    Hi all,
    I am experiencing a strange issue with JMS and Oracle 10gR2 (single server) on Solaris.
    The design is simple, 1 server multiple clients communication via 2 queues (P2P domain). Each client has a session ID and can read messages from the queue that have been tagged with the proper session ID.
    I guess is simpler to show the code involved:
    @Override
    public void becomeSender(String queueName) throws JMSException {
    setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
    ((AQjmsDestination) getDestination()).start(getSession(), true, true);
    setProducer(((AQjmsSession) getSession()).createSender((Queue) getDestination()));
    getProducer().setDeliveryMode(DeliveryMode.NON_PERSISTENT);
    @Override
    public void becomeReceiver(String queueName, String sessionID) throws JMSException, JMSConnectorException {
    setDestination(((AQjmsSession) getSession()).getQueue(null, queueName));
    ((AQjmsDestination) getDestination()).start(getSession(), true, true);
    setConsumer(((AQjmsSession) getSession()).createReceiver((Queue) getDestination(), getReceiverSessionPredicate(sessionID)));
    getConnection().start();
    public static final String jmsReceiverSessionProperty = "msgReceiverSession";
    public static final String jmsSenderSessionProperty = "msgSenderSession";
    public static String getReceiverSessionPredicate(String sessionID) throws JMSConnectorException {
    if (sessionID == null) {
    throw new JMSConnectorException("Session ID must be provided!");
    return jmsReceiverSessionProperty + " = '" + sessionID + "' OR " + jmsReceiverSessionProperty + " = '" + TransferMessage.TARGET_ANY_RECEIVER + "'";
    and the code that sends the message
    public void sendMessage(TransferMessage aMessage) throws JMSException, IOException {
    BytesMessage aMsg = createBytesMessage();
    aMsg.setStringProperty(jmsReceiverSessionProperty, aMessage.getReceiverSessionID());
    aMsg.setStringProperty(jmsSenderSessionProperty, getSessionID());
    sendMessage(aMsg);
    Everything works great in Windows XP/7/2008 server 64 virtual machine or not but it fails in Solaris.
    The messages are written to the queue as I can see them in the queue table but they never get read from the queue...Oh I missed a bit of information, I use onMessage to handle new message on queues.
    The Solaris server is at client environment and I have no remote access to it.
    I can run my my simple connectivity tests on a Solaris instance if anyone care to provide me with credentials and 2 queues or even better I can send the jars to run on local environment.
    Any help would be much appreciated. Thanks,
    Eddie

    Moderator Action:
    This post has been moved from the Java Message Service (JMS),
    to the suggested Database Advanced Queuing forum, for closer topic alignment.

  • Trusted Path Menu (Trusted Solaris 8)

    What file defines the layout of the trusted path menu? Can items be added to the trusted path menu? We are currently converting from the Trusted SCO CMW operating system to the Trusted Solaris 8 operating system and we had modified the trusted path menu in SCO to add some of our applications to it for certain types of users, and I was wondering how we can do the same thing on Trusted Solaris? I have not been able to locate a file that defines the trusted path.

    You may want to pose this question on the Trusted Solaris forum:
    http://supportforum.sun.com/cgi-bin/WebX.cgi?/security.trustedsolaris

  • Difference Between JMS and RMI

    Difference Between JMS and RMI in J2EE Technologies

    STFW
    JMS - http://www.google.co.za/search?hl=en&q=what+is+jms&meta=
    RMI - http://www.google.co.za/search?hl=en&q=what+is+rmi&meta=

  • HT5577 I lost recovery key and trusted device, how do I rescue my funds on account?

    Lost recovery key and trusted dev, and need to transfer balance on account how do I do this?

    You will need one of your trusted devices to be able to change your password : Apple ID: Can't sign in with two-step verification - Apple Support
    Nobody else should be able to download from a new device or computer unless they have access to two of your password, a trusted device, and your recovery key. You are sure that they are using it e.g. there are a number of phishing emails doing the rounds saying that something has been downloaded on an account and to click on a link in the email if it wasn't you that made it so as to request a refund (i.e. so that they can capture your password and payment details).
    If they are 'proper' purchases then you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • JMS and Java EE 5 Tutorial

    Hello,
    I'm new to JMS and have been following Suns JMS tutorial here....
    [http://java.sun.com/javaee/5/docs/tutorial/doc/bncfa.html#bncfc|http://java.sun.com/javaee/5/docs/tutorial/doc/bncfa.html#bncfc]
    I followed the example for the Producer / SynchConsumer programs.
    I also created my resources using Sun Java Application Server.
    The code example uses annotations only (@Resource) and does not use JNDI lookup.
    My problem is that the annotations only solution, as described in the tutorial,
        @Resource(mappedName = "jms/ConnectionFactory")
        private static ConnectionFactory connectionFactory;
        @Resource(mappedName = "jms/Queue")
        private static Queue queue;
        @Resource(mappedName = "jms/Topic")
        private static Topic topic;give me a NullPointerException error when this code is run...
    connection = connectionFactory.createConnection();I've added JNDI lookup ....
            System.setProperty("java.naming.factory.initial", "com.sun.appserv.naming.S1ASCtxFactory");
         System.setProperty("java.naming.provider.url", "iiop://111.222.333.109:3700");
         InitialContext ic = new InitialContext();
         connectionFactory = (ConnectionFactory)ic.lookup("jms/ConnectionFactory");
         queue = (Queue)ic.lookup("jms/Queue");
         topic = (Topic)ic.lookup("jms/Topic");and it seems to work now....
    Anyone come accross this before?
    What am I missing from the annotations only solution?
    Thanks,
    Jon

    Hi,
    Previously I was trying to run this using Eclipse.
    I tried this using NetBeans IDE and the annotations worked fine.
    Problem solved.
    /Jon

  • Import and trust a self-signed CA certificate from the Terminal

    Hello there,
    i have a problem: I would like to import and trust a self-signed CA(root) certificate from the Terminal to the System.keychain.
    My request is to create a installation script to install the Cisco AnyConnect VPN Client and the needed certificates.
    For the import i have used the following command:
        sudo security import certificate.cer -k "/Library/Keychain/System.keychain" -A
        The Option "-A" says:
    Allow any application to access the imported key without warning (insecure, not recommended!) <- From the Mac Developer Library
    The command reportet: 1 certificate is importet ... but ... the certificate is not trusted.
    What do i need to do to set this certificate as trustworthy at the terminal?
    Thanks for your help and best regards
    Benjamin
    P.S. The command: sudo security add-trusted-cert -d -r trustRoot -k “/Library/Keychains/System.keychain” “/private/tmp/certs/certname.cer” doen't run, i get an error message. Found on http://derflounder.wordpress.com/2011/03/13/adding-new-trusted-root-certificates -to-system-keychain/

    Hello Linc Davis,
    thanks for your answer and sorry for my mistake, because i had already changed the last argument but for this discussion i had only copy this example.
    But your answer show me the right way, big thanks.
    I had entred the following command (see the last argument):
         sudo security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "~/Downloads/mycert.cer"
    ... and i get the following message:
        ***Error reading file ~/Downloads/mycert.cer
         Error reading file ~/Downloads/mycert.cer
    Today i changed the last argument to:
         /Users/User/Downloads/mycert.cer
    and its run.
    Many thanks!
    Benjamin

  • How to wipe the old Sun OS and install Solaris 10?

    hello,
    I bought a Sun Ultra 5 server from ebay, and wanted to install Solaris 10 on it. I downloaded the 5-CD version of Solaris 10 from Sun website.
    When I powered on the server, it dispalys a series of prompts:
    Type control-d to proceed with normal starup
    (or give root password for system maintenance)
    I typed control-d a couple of times, and eventually it asked me to select run level 0-6, s
    no matter which one I chose, it went back to 'type control-d ..' prompt.
    How am I supposed to start the installation program? (I have CD 1 in the CD-ROM)
    Or, how to completely wipe the old system and install Solaris 10?
    many thanks

    If you get to select a run lever try 0 (halt) that will bring you to an ok> prompt where you can boot cdrom.
    Alternately try STOP-A from the keyboard. That should also drop you to an ok> prompt and you can boot cdrom from there.

  • Pros and Cons of using REST over JMS (and other technologies)

    Hey all,
    I am working on a project where we were using JMS initially to send messages between servers. Our front end servers have a RESTful API and use JEE6, with EJB 3.1 entity beans connected to a mysql database and so forth. The back end servers are more like "agents" so to speak.. we send some work for them to do, they do it. They are deployed in GlassFish 3.1 as well, but initially I was using JMS to listen to messages. I learned that JMS onMessage() is not threaded, so in order to facilitate handling of potentially hundreds of messages at once, I had to implement my own threading framework. Basically I used the Executor class. I could have used MDBs, but they are a lot more heavyweight than I needed, as the code within the onMessage was not using any of the container services.
    We ran into other issues, such as deploying our app in a distributed architecture in the cloud like EC2 was painful at best. Currently the cloud services we found don't support multi-cast so the nice "discover" feature for clustering JMS and other applications wasn't going to work. For some odd reason there seems to be little info on building out a scalable JEE application in the cloud. Even the EC2 techs, and RackSpace and two others had nobody that understood how to do it.
    So in light of this, plus the data we were sending via JMS was a number of different types that had to all be together in a group to be processed.. I started looking at using REST. Java/Jersey (JAX-RS) is so easy to implement and has thus far had wide industry adoption. The fact that our API is already using it on the front end meant I could re-use some of the representations on the back end servers, while a few had to be modified as our public API was not quite needed in full on the back end. Replacing JMS took about a day or so to put the "onmessage" handler into a REST form on the back end servers. Being able to submit an object (via JAXB) from the front servers to the back servers was much nicer to work with than building up a MapMessage object full of Map objects to contain the variety of data elements we needed to send as a group to our back end servers. Since it goes as XML, I am looking at using gzip as well, which should compress it by about 90% or so, making it use much less bandwidth and thus be faster. I don't know how JMS handles large messages. We were using HornetQ server and client.
    So I am curious what anyone thinks.. especially anyone that is knowledgeable with JMS and may understand REST as well. What benefits do we lose out on via JMS. Mind you, we were using a single queue and not broadcasting messages.. we wanted to make sure that one and only one end server got the message and handled it.
    Thanks..look forward to anyone's thoughts on this.

    851827 wrote:
    Thank you for the reply. One of the main reasons to switch to REST was JMS is strongly tied to Java. While I believe it can work with other message brokers that other platforms/languages can also use, we didn't want to spend more time researching all those paths. REST is very simple, works very well and is easy to implement in almost any language and platform. Our architecture is basically a front end rest API consumed by clients, and the back end servers are more like worker threads. We apply a set of rules, validations, and such on the front end, then send the work to be done to the back end. We could do it all in one server tier, but we also want to allow other 3rd parties to implement the "worker" server pieces in their own domains with their own language/platform of choice. Now, with this model, they simply provide a URL to send some REST calls to, and send some REST calls back to our servers.well, this sounds like this would be one of those requirements which might make jms not a good fit. as ejp mentioned, message brokers usually have bindings in multiple languages, so jms does not necessarily restrict you from using other languages/platforms as the worker nodes. using a REST based api certainly makes that more simple, though.
    As for load balancing, I am not entirely sure how glassfish or JBoss does it. Last time I did anything with scaling, it involved load balancers in front of servers that were session/cookie aware for stateful needs, and could round robin or based on some load factor on each server send requests to appropriate servers in a cluster. If you're saying that JBoss and/or GlassFish no longer need that.. then how is it done? I read up on HornetQ where a request sent to one ip/hornetq server could "discover" other servers in a cluster and balance the load by sending requests to other hornetq servers. I assume this is how the JEE containers are now doing it? The problem with that to me is.. you have one server that is loaded with all incoming traffic and then has to resend it on to other servers in the cluster. With enough load, it seems that the glassfish or jboss server become a load balancer and not doing what they were designed to do.. be a JEE container. I don't recall now if load balancing is in the spec or not..I would think it would not be required to be part of a container though, including session replication and such? Is that part of the spec now?you are confusing many different types of scaling. different layers of the jee stack scale in different ways. you usually scale/load balance at the web layer by putting a load balancer in front of your servers. at the ejb layer, however, you don't necessarily need that. in jboss, the client-side stub for invoking remote ejbs in a cluster will actually include the addresses for all the boxes and do some sort of work distribution itself. so, no given ejb server would be receiving all the incoming load. for jms, again, there are various points of work to consider. you have the message broker itself which is scaled/load balanced in whatever fashion it supports (don't know many details on actual message broker impls). but, for the mdbs themselves, each jee server is pretty independent. each jee server in the cluster will start a pool of mdbs and setup a connection to the relevant queue. then, the incoming messages will be distributed to the various servers and mdbs accordingly. again, no single box will be more loaded than any other.
    load balancing/clustering is not part of the jee "spec", but it is one of the many features that a decent jee server will handle for you. the point of jee was to specify patterns for doing work which, if followed, allow the app server to do all the "hard" parts. some of those features are required (transactions, authentication, etc), and some of those features are not (clustering, load-balancing, other robustness features).
    I still would think dedicated load balancers, whether physical hardware or virtual software running in a cloud/VM setup would be a better solution for handling load to different tiers?like i said, that depends on the tier. makes sense in some situations, not others. (for one thing, load-balancers tend to be http based, so they don't work so well for non-http protocols.)

Maybe you are looking for

  • Error 2755 when trying to install itunes on my laptop please help

    error 2755 when trying to install itunes on my laptop please help the installation process gets so far then the error 2755 appears saying that it cannot be installed

  • White boxes around images

    Hi, I know this is a basic question but it's causing me a lot of grief. When I place images on coloured backgrounds, they have white boxes around them. Is the only way to get around this to manipulate the image itself in photoshop? I've tried this bu

  • Security with servlet

              Hi, I'm trying to put security in a servlet bundled in a web app .war, but after           starting the server i doesnt get deployed, im using wls 6.0.           here is the web.xml setting           <security-constraint>           <web-res

  • Can i install snow leopard on my new macbook pro

    I'm looking at a new laptop but I understand Adobe CS4 won't work on Lion, so I'd rather install Snow Leopard on the new macbook. Is this possible?

  • Changing date in BDC

    Hi ALL I wanna to change the date in the flat file when I am entering into BDC, please give me the code for this one. Regards Praveen