Recent Posts
Archives

Archive for the ‘en-US’ Category

PostHeaderIcon Tibco RendezVous quick-start tutorial

When I was introduced to TIBCO Rendezvous (also spelled “Tibco Rendez-Vous” or, shorterly, “TiboRV”), I faced a embarrassing issue: the lack of documentation and tutorials on the web.

The purpose of this -short- tutorial is to guide you until you can send and read a “HelloWorld” message passing through Tibco RendezVous

Installation

  • Set the variable JAVA_HOME
    Eg, in my case:

    set JAVA_HOME=C:\exe\java\jdk150_10
  • Get the file to be installed:
    TIB_rv_8.1.2_win_x86_vc8.zip
  • Unzip the content in your local drive
  • Launch the installer (.exe)
    • select Custom installation
    • choose the installation folder, eg: C:\exe\tibco
    • keep default options for other requests
  • Set the variable TIBRV_HOME
    Eg, in my case:

    set TIBRV_HOME=C:\exe\tibco\tibrv\8.1

Main Runnables

RVD: Daemon

  • Launching the daemon on local host on port 8181 (default port: 7580):
    rvd -http 8181

    You should see the following trace:

    C:\exe\tibco\tibrv\8.1\bin>rvd -http 8181
    
    TIB/Rendezvous daemon
    Copyright 1994-2008 by TIBCO Software Inc.
    All rights reserved.
    
    Version 8.1.2 V8 9/26/2008
    2010-01-19 16:37:02 rvd: Command line: rvd -http 8181
    2010-01-19 16:37:02 rvd: Hostname: MYLOCALMACHINE
    2010-01-19 16:37:02 rvd: Hostname IP address: 123.123.123.123
    2010-01-19 16:37:02 rvd: Detected IP interface: 123.123.123.123 (IP00)
    2010-01-19 16:37:02 rvd: Detected IP interface: 127.0.0.1 (loopback)
    2010-01-19 16:37:02 rvd: Unable to find ticket file tibrv.tkt in PATH
    2010-01-19 16:37:02 rvd: Http interface - http://myLocalMachine.myDomain:8181/

tibrvsend: send a message

To send a message on myLocalMachine:7580:

.\tibrvsend.exe -service 7580 -network MYLOCALMACHINE mySubject myMessage

Expected output:

C:\exe\tibco\tibrv\8.1\bin>.\tibrvsend.exe -service 7580 -network MYLOCALMACHINE mySubject myMessage
Publishing: subject=mySubject "myMessage"
2010-01-19 16:52:11 RV: TIB/Rendezvous Error Not Handled by Process:
{ADV_CLASS="WARN" ADV_SOURCE="SYSTEM" ADV_NAME="LICENSE.EXPIRE" ADV_DESC="The license will expire" expiretime=2010-01-19 16:02:11Z host="10.30.226.147"}

tibrvlisten: listen to messages

Abstract

To listed to messages published on MYLOCALMACHINE:7580, related to subject mySubject:

tibrvlisten -service 7580 -network MYLOCALMACHINE mySubject

Use case: HelloWorld

For instance, let’s assume that you launch this command from one frame:

C:\exe\tibco\tibrv\8.1\bin>.\tibrvsend.exe -service 7580 -network localhost mySubject HelloWorld
Publishing: subject=mySubject "HelloWorld"

Here is what appears in the “listening” frame:

2010-01-19 17:01:32 (2010-01-19 16:01:32.990000000Z): subject=mySubject, message={DATA="HelloWorld"}

Notice you can have many instances listening to the same messages.

Other runnables

Launch the daemon manager

  • Launch:
    cd %TIBRV_HOME%/RVDM
    ./RVDM.bat -http 8282 .
  • You should see following messages, that you can ignore:
    2010-01-19 13:01:48 rvdm: RVDM has activated.
    2010-01-19 13:02:03 RV: TIB/Rendezvous Error Not Handled by Process:
    {ADV_CLASS="WARN" ADV_SOURCE="SYSTEM" ADV_NAME="LICENSE.EXPIRE" ADV_DESC="The license will expire" e
    xpiretime=2010-01-19 12:11:48Z host="123.123.123.123"}
  • To check the daemon is on, you can open the address http://localhost:8282 on your favorite browser.

Example sources

Example sources are available in folder %TIBRV_HOME%/src/examples/java

Misc

TIBRV_HOME\bin folder fosters a couple of binaries:

  • rvntscfg.exe: Services Configuration Program

PostHeaderIcon Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application

Case:

Under Windows / Tomcat 6:

[java]java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application[/java]

Fix:

In the web.xml file, add the following block:

[xml]
<context-param>
<param-name>privileged</param-name>
<param-value>true</param-value>
</context-param>[/xml]

PostHeaderIcon SkyFire: Flash for Windows Mobile 6.1

By default, animations in Adobe Flash are not readable on Windows Mobile 6.1 smartphones. I tried to download a plugin for Internet Explorer, Mozilla Fennec and Opera Mobile 10, with no success.

At last, I found this very nice browser: SkyFire. At first glance, I think the browser works thanks to a proxy deployed in SkyFire headquarters. I did not investigate more than that.

Yet, what is sure is that from now and then, I can watch Adobe Flash SWF, WMA and even SilverLight animations.

In the upcoming days, I will publish a short comparative study of browsers available on Windows Mobile.

PostHeaderIcon Use p6spy with BEA WebLogic 9.2

Case:

You need debug information on SQL queries, for an application within BEA WebLogic 9.2. You need p6spy.

P6spy is a jar which play the role of a bridge between your application and your actual JDBC driver (in my case: oracle.jdbc.driver.OracleDriver for Oracle 10g)

Solution:

  • Change JDBC Driver in Weblogic Web Console
    • Services > JDBC > Data Sources > (your data source) > Configuration > Connection Pool > Driver Classname  =  com.p6spy.engine.spy.P6SpyDriver
  • Copy p6spy-1.3.jar and spy.properties in %WL_HOME%/servers/lib/ext
  • Check that spy.properties contains : realdriver=oracle.jdbc.driver.OracleDriver
  • In the spy.properties choose the stdoutLogger,  rather than log4jLogger appender
  • In the CLASSPATH of startManagedWebLogic.cmd, add the following path:%WL_HOME%/servers/lib/ext/p6spy-1.3.jar;%WL_HOME%/servers/lib/ext

PostHeaderIcon JAXB2 in WebLogic 9.2

Case:

We need use JAXB2 packaged version, rather than the version which is provided within WebLogic 9.2.

Fix:

In the weblogic-application.xml, add the following block:

[xml]
<prefer-application-packages>
<package-name>javax.xml.bind.*</package-name>
</prefer-application-packages>
[/xml]

PostHeaderIcon Validation failed for C:\windows\SYSTEM32\vsinit.dll you probably are missing a necessery root certificate

Case:

I use Zone Alarm as firewall on my Windows XP SP2. When the system boots, it displays a window with the message:
Validation failed for C:\windows\SYSTEM32\vsinit.dll you probably are missing a necessery root certificate
The file is present on my disk.

Fix:

  • Disconnect from internet 😉
  • Close Zone Alarm
  • Uninstall Zone Alarm
  • Reboot
  • Rename C:\windows\SYSTEM32\vsinit.dll as vsinit.dll.old (or delete it)
  • Install Zone Alarm
  • Reboot

It should be OK 😉

PostHeaderIcon Validation failed for C:\windows\SYSTEM32\vsinit.dll you probably are missing a necessery root certificate

Case:

I use Zone Alarm as firewall on my Windows XP SP2. When the system boots, it displays a window with the message:
Validation failed for C:\windows\SYSTEM32\vsinit.dll you probably are missing a necessery root certificate
The file is present on my disk.

Fix:

  • Disconnect from internet 😉
  • Close Zone Alarm
  • Uninstall Zone Alarm
  • Reboot
  • Rename C:\windows\SYSTEM32\vsinit.dll as vsinit.dll.old (or delete it)
  • Install Zone Alarm
  • Reboot

It should be OK 😉

PostHeaderIcon Oracle Partitioning

On last Friday I attented a presentation about Oracle (10g) Partitioning. Here is a summary of interesting points:

Why?

On some projects, data bases reach tens of TB.  For so huge volume of data, developpers often are used to archiving or historizing datas. Partitioning the base is another way to face mass data.

What?

Partitioning is allowing a table or an index to be divided into smaller pieces, called “partitions”. Please notice that, from a logical point of view, we keep one object (table or index) ; yet, physically, we have many physical partitions.

When?

  • DBAs advise to consider partitioning prior to create the tables. Indeed, partitioning when the table reaches a critical size is more expensive than sooner.
  • Tables may be partionioned if they are or are assumed to be 2GB or more.

Partition key/ pruning

  • From a certain viewpoint, a partition key may be seen as a “super index”
  • Rows of the base are assigned to a unique partition.
  • The partitioning key contains one column (or more) which determine the partition where any row is to be stored.
  • During insert/update/delete operations, the right partition is automatically found owing to the partition key.
  • Warning: any table with columns of type LONG or LONG_RAW cannot be partitioned.

Purpose

  • Improvement of availability and performance of the base. At first glance, on select operations the benefit is small, but on insert operations the benefit is felt.
  • Reduction of administrative burden and input/ouput access
  • Anticipation of high volumes of data and cost of development

TYPES

Three types of partitions are available:

  • range: eg by month, year, etc.
  • list: eg by country, currency, etc. This is the case when the column values are among an enumeration
  • hash

Composite keys are allowed, yet they are not advised to be used.

INDEX

Indexes can be partitioned, too. All combinations are allowed: partioned indexes for partioned tables, partioned indexes for global tables, etc.

Syntax

[sql]CREATE TABLE range_example
(
RANGE_KEY_COLUMN   DATE,
MY_DATA            VARCHAR2 (20)
)
PARTITION BY RANGE (range_key_column)
(
PARTITION part_1 VALUES LESS THAN (TO_DATE (’01/01/2005′, ‘dd/mm/yyyy’)),
PARTITION part_2 VALUES LESS THAN (TO_DATE (’01/01/2006′, ‘dd/mm/yyyy’)))[/sql]

Oracle 11g

Oracle 11g will bring a lot of improvements on partitioning: extended composite partitioning, reference partitioning, partitioning on virtual columns, etc.

PostHeaderIcon Create a new project from Maven2 under Eclipse

Yeah, I know this must be widely known, yet I needed a short while before successing ;-).
Case: I must mount a Java projet from a Maven2 file, under Eclipse (I am back to my prefered IDE).

Fix:

  • Checkout the sources from version control tool
  • Open a console window
  • Go to the project home
  • (possibly: mvn install)
  • mvn eclipse:eclipse
  • Open Eclipse
  • File > New Project > add the name > check "create project from existing tool" > Finish

And it’s over!

PostHeaderIcon La fin des laptops domestiques?

Ces derniers jours, on m’a pose plusieurs fois la meme question: “je voudrais un PC portable robuste, puissant et peu encombrant ; que me conseilles-tu?”. J’ai intuitivement repondu a la chaque fois la meme chose: pas de laptop!

En effet, les exigences comme la robustesse et le faible encombrement sont difficilement conciliables, a moins d’en mettre le prix et opter pour une machine de haut de gamme.
Toujours est-il que les PC portables sont toujours tres prises, justement pour leur faible encombrement. L’autre avantage des laptops est leur mobilite. Au titre des inconvenients des laptops, on peut citer la faible evolutivite, la fragilite, la faible duree de vie limitee (18 a 24 mois en moyenne), etc.

Inversement, un PC de bureau est en general plus robuste et evolutif, mais il est hors de question de jouer au globe-trotter avec sa tour, son ecran 19″, son clavier et les innombrables fils.

Cependant, ces derniers mois, les choses ont pas mal evolue. Pourquoi? Les PC fixes ont subi une petite cure d’amaigrissement, certes modeste. Mais, surtout, le phenomene netbook a fait irruption dans les foyers. Au titre de la mobilite, les netbooks battent a plate couture les laptops. Pour le moment, nous n’avons pas assez de recul pour juger de l’esperance de vie d’un netbook, mais il est probable qu’elle soit similaire a celle d’un laptop.

J’en viens donc a la reponse que j’ai donnee a la question ci-dessus: je recommande d’une part l’achat d’un solide PC de bureau, robuste, puissant et avec un disque dur assez gros, d’une part ; et l’achat d’un netbook d’autre part.

Un bon PC de bureau, bien que technologiquement obsolete au bout de 2 ans, peut tenir 4 ans sans problemes s’il est bien entretenu et s’il n’est pas destine a des applications tres gourmandes comme les jeux en 3D. Un netbook apportera lui la souplesse  et la mobilite.

Evidemment, ca coute plus cher d’acheter deux machines au lieu d’une seule. Mais un petit calcul arbitraire montre que ce n’est pas forcement un mauvais plan, financierement parlant j’entends.

On trouve de bonnes machines fixes a 600€, et des netbooks a partir de 200€. Sur 4 ans, et en supposant que le netbook decede au bout de 2 ans, on aura depense 600 + 2*200 = 1000€.

Par contre, en privilegiant un laptop, il est probable qu’il faudra mettre 500€ tous les deux ans. Resultat: 1000€ au bout de 4 ans.

Mais c’est sans compter sur le confort qu’apporte un vrai clavier et une vraie souris, un disque plus large, etc…

A titre d’option, on peut proposer de prendre un disque dur externe assez large, et de diminuer partiellement la taille du disque du PC principal.