Show me the code! – By Davanum Srinivas

Web Services, Apache, Websphere, IBM, etc.

*Free* IBM WebSphere Application Server for Developers

with one comment

Download for development and testing from here. Forums for help are here.

Written by Davanum Srinivas

June 19, 2009 at 2:33 pm

Posted in Uncategorized

IMPACT 2009 – Presentatation on Web Services In WebSphereApplication Server V 7.0

leave a comment »

Good overview from Henry Chung :
Web Services In WebSphereApplication Server V 7.0

Written by Davanum Srinivas

May 13, 2009 at 8:25 am

Posted in Uncategorized

Crash Analysis/Diagnostics of IBM SDKs for WAS Webcast on May 13, 2009

leave a comment »

Invite posted on WAS forum:
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=260362&tstart=0

On 13 May 2009 at 11:00 AM EDT, a WebSphere Support Technical Exchange presentation on Crash Analysis/Diagnostics of IBM SDKs (1.5 & 1.6) for WebSphere Application Server will be delivered by Giribabu Paramkusham, Ajay Bhalodia & Daniel Julin, subject matter experts. An open question and answer session will follow the presentation.

This exchange will include topics on setting up system to gather data required for debugging and analyzing the crash, common crash scenarios, analysis of javacore/system core file, and a review of DumpAnalyzer features to analyze the core file. Presentation will be limited to IBM Java on AIX, Linux and Windows.

Level of Difficulty: Intermediate

Plan to join the meeting 10 minutes early. Presentations typically last for 30-45 minutes followed by a question and answer session. For more information and details on how to participate in this and other free WebSphere Support Technical Exchanges click here.

Date: May 13, 2009

Time: 11:00 AM EDT

For dial-in numbers and web conferencing information, please visit:
[http://www.ibm.com/software/websphere/support/TE/techex_K449908F79981V00.html]

We look forward to seeing you on the webcast.

Written by Davanum Srinivas

April 27, 2009 at 9:49 am

Posted in Uncategorized

Apache Incubator proposal – Wink – JAX-RS implementation

leave a comment »

Written by Davanum Srinivas

April 22, 2009 at 2:56 pm

Posted in Uncategorized

IBM WebSphere Application Server V7.0 Feature Pack for XML Open Beta

leave a comment »

WAS XML Feature Pack Open Beta is now available. Adds support for XPath 2.0, XSLT 2.0 and XQuery 1.0.

Details here:
http://webspherecommunity.blogspot.com/2009/04/was-open-xml-feature-pack-beta.html
https://www14.software.ibm.com/iwm/web/cc/earlyprograms/websphere/iwsasfpobp/index.shtml

Written by Davanum Srinivas

April 19, 2009 at 8:34 am

Posted in Uncategorized

IBM Support Browser Toolbars

leave a comment »

Written by Davanum Srinivas

April 17, 2009 at 7:23 am

Posted in Uncategorized

IBM Websphere on Twitter

leave a comment »

Written by Davanum Srinivas

April 15, 2009 at 9:06 am

Posted in Uncategorized

Post/Update Twitter status snippet (from java)

with one comment

Snippet to post to twitter. Using sun.misc to avoid introducing another jar (say commons codec). Please feel free to use another Base64 implementation. Rest of the details will remain the same.


import sun.misc.BASE64Encoder;

import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.OutputStreamWriter;
import java.net.URLConnection;
import java.net.URL;
import java.net.URLEncoder;

public class Twitter {
    public static void main(String[] args) throws Exception {
        if (args.length < 3) {
            System.out.println("Twitter <userid> <password> <message>");
            System.exit(-1);
        }

        URL url = new URL("https://twitter.com/statuses/update.xml");
        URLConnection connection = url.openConnection();

        connection.setDoInput(true);
        connection.setDoOutput(true);
        connection.setUseCaches(false);

        String authorization = args[0] + ":" + args[1];
        BASE64Encoder encoder = new BASE64Encoder();
        String encoded = new String
                (encoder.encodeBuffer(authorization.getBytes())).trim();
        connection.setRequestProperty("Authorization", "Basic " + encoded);

        OutputStreamWriter out = new OutputStreamWriter(
                connection.getOutputStream());
        out.write("status=" + URLEncoder.encode(args[2], "UTF-8"));
        out.close();

        BufferedReader in = new BufferedReader(
                new InputStreamReader(
                        connection.getInputStream()));
        String response;
        while ((response = in.readLine()) != null) {
            System.out.println(response);
        }
        in.close();

    }
}

Written by Davanum Srinivas

March 16, 2009 at 10:10 am

Posted in Uncategorized

Technotes about Axis2 and IBM Websphere co-existence

with one comment

If you are deploying Axis2 in a WAR/EAR under Websphere 6.1 with Web services feature pack or Websphere 7.0, please read the following tech notes:

You can search for newer technotes here:
http://www.ibm.com/support/us/en/

Exceptions like the following:
SRVE0026E: [Servlet Error]-[javax.servlet.UnavailableException: SRVE0201E:
Servlet [org.apache.axis2.transport.http.AxisServlet]: not a servlet class

java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMTextImpl incompatible with org.apache.axiom.om.impl.OMNodeEx

SRVE0100E: Did not realize init()
exception thrown by servlet AxisServlet: java.lang.StackOverflowError

Written by Davanum Srinivas

March 12, 2009 at 8:01 am

Posted in websphere

Tagged with , ,

Top 10 WebSphere Trends and Directions (Bonus – skit with David Letterman)

leave a comment »

Written by Davanum Srinivas

January 22, 2009 at 12:33 pm

Posted in Uncategorized