About

I’m a 27 year old guy from Norway, living in my home-town Stavanger. I’m employed as a Software Engineer in Kadme, and my education (in addition to a common interest for everything with more than two buttons) is a bachelor degree in Computer Science.

Advertisements

13 Responses to “About”

  1. Selim Says:

    Hello there,

    This is a pretty noob question but I can’t seem to find the answer. I recently started writing my own blog, but I’m having problems displaying code pieces. I really like the way they look on your site. Is that some kind of plugin?

    Thanks in advance for your time,

    Selim

  2. roneiv Says:

    Hi Selim!

    No questions are stupid, I guess everybody has asked that question one time πŸ™‚

    But it is not a plugin, but you wrap your text into some specific tags that automatically then render that type of view for you πŸ™‚

    The tags to use are:

    You just use them like ordinary html, whatever content between those tags will be displayed like the examples you referred to in my blog. Different source code languages are supported, e.g ‘xml’ ‘java’ and so on. Have a look at this page to read more:
    http://faq.wordpress.com/2007/09/03/how-do-i-post-source-code/

    – E –

  3. Shreyas Says:

    Hi there,
    I have recently been exposed to JSON RPC. Could you provide me an explaination of the jsonrpc.js file code?

    Regards

  4. roneiv Says:

    Shreyasm

    If you want to use json from your application, you need to invoke some javascript that is supposed to “communicate” with your java-side. You might want to set a property to a specific value for example.

    To talk to your registered bean/object you need to create a JSONRpcClient in your javascript. The jsonrpc.js contains the constructor for this client, as well as internally used functions for making and sending requests, and handling responses.

    Regards,

    Eivind

  5. Hobi Says:

    Hello Eivind:
    Awesome blog. I love the way you explain. Lot of codes with explanation. I am in USA, Oklahoma. I am doing JSF (ICEfaces), Hibernate as well. I love your country. I went to Norway in 2007, Summer at Kristiansand. Girls are so HOT and I like to move there but I dont think I can afford to live in Norway.
    Anyway, Keep in touch and keep writing good stuff for the community.
    Best regards,
    Hobi
    http://www.hobione.wordpress.com

    • roneiv Says:

      Hi Hobi!

      Thanks for your feedback! Really appreciated!

      Yiu’re not the first one saying it’s expensive in Norway, and you’ll probably not be the last one either πŸ˜‰ But if you compare also the level of our salaries it’s not THAT bad πŸ˜‰
      I’ll have a look at your blog, cause you newer know what might spawn a great idea or two πŸ™‚

      Best Regards,

      Eivind

  6. Wendy Says:

    Hi Eivind,

    I like your blog. I read you JAAS related posts, they are very good.

    I have a question for you. Hope you can help.

    If I have two JBoss applications, app1 and app2, both of them are using JAAS for authentication. The user should be able to launch app2 from app1 based on app1’s context (Launch in Context). Here we need to support SSO that the user doesn’t need to type in usename/password again.
    The steps are:
    1. User “test” logged in to app1
    2. launch app2. app1 will pass a token to app2
    3. app2 should authenticate the token
    4. if token authentication succeeded, app2 should allow the user “test” to access the contents without asking username and password again.

    Could you please let me know how to configure app2 JAAS in order to support SSO?

    Thanks in advance!
    Wendy

    • roneiv Says:

      Hi Wendy,

      Thank you for interest in my post!

      Getting SSO up and running shouldn’t bee too difficult. First of all you should remember to enable the SSO “valve”, you find it in server.xml under your /jboss/server//deploy/jboss-web.deployer/ dir (4.2.2).
      Look for Valve className=”org.apache.catalina.authenticator.SingleSignOn” and uncomment it to enable it. (It is commented out by default) .

      Then in your jboss-web.xml of BOTH applications you should use the same java:/jaas/myJaasConfig – and when you then logon to the first application a SSO-cookie will be passed automatically from app1 to app2.

      Hope this helps you!

      Regards,

      Eivind

      • Wendy Says:

        Hi Eivind,

        Thank you so much for your quick response. I will give it a try and let you know later!

        Thanks again!
        Wendy

  7. Wendy Says:

    Hi Roneiv,

    Is this only for the single domain server within different WARs?

    I tested the following case, it doesn’t work. I guess I misunderstood some part.
    1. I installed the same application on two different machines. Let’s say 10.10.10.1 and 10.10.10.2.
    2. add user “test” in both applications by using default user.
    2. From Firefox, I launch
    http://10.1.1.1:8080/app
    3. Login page popped up, log in as user “test”.
    4. I add a link on the page, Click the link,
    http://10.10.10.2/app?… , it opens a new window, but login page popped up again.

    Could you please help me again to clarify this?
    I do appreciate your help.

    Thanks!
    Wendy

  8. Wendy Says:

    sorry, typo. 10.1.1.1:8080/app should be 10.10.10.1:8080/app

    • roneiv Says:

      Hi wendy!

      If you use different machines (which I have no experience with) I know there’s another “clustered” valve that has to be enabled.

      org.jboss.web.tomcat.service.sso.ClusteredSingleSignOn

      You will find it just below the other valve I mentioned earlier. (Note: You should then disable the first non-clustered valve again)

      Hope this helps you, but if it doesn’t I’m sorry to say that I have no further suggestions as I have never worked with multiple instances of jboss.

      Regards,
      Eivind

  9. Ranjit Paul Says:

    Hi Eivind,

    I was wondering if you can help, I am currently looking for a release manager to work in Stavanger with one of my clients on a perm role. I was wondering if you may know of anyone, feel free to contact me.

    Thanks and regards,
    -Ranjit.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: