Thursday, December 18, 2008

Setting endpoint for JAXWS ws


TriprequestService service = new TriprequestService();
Triprequest port = service.getTriprequestPort();
BindingProvider bp = (BindingProvider) port;
Map map = bp.getRequestContext();
map.put(BindingProvider.USERNAME_PROPERTY, "shafiek1");
map.put(BindingProvider.PASSWORD_PROPERTY, "password");
map.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://qapo:8888/trex-pn/triprequest");

Setting endpoint for JAX-RPC

stub._setProperty(javax.xml.rpc.Stub.USERNAME_PROPERTY,
username);
stub._setProperty(javax.xml.rpc.Stub.PASSWORD_PROPERTY,
password);

Thursday, December 4, 2008

Not closing result set can cause leek?

John used http://www.jboss.org/community/docs/DOC-9255 which gave warnings about some result sets not being closed.

Wednesday, December 3, 2008

ContextMenuTablePanel

I created this panel that would show context menus whenever you clicked on a row. It requires that you add the table to the panel, which means the panel becomes the parent. This causes a problem when using the Scrolltable in incubator, as the Scrolltable is a panel which is the parent of the table.

If only there was a right-click listener.

Monday, December 1, 2008

Using Views for Unique Constraint

May not genereate a EntityExistsException, which seems to require with Sql server 2005 a unique key constraint.

Thursday, November 27, 2008

JBoss client jars

Following jars required for ejb client connection

set CLASSPATH=%CLASSPATH%;%JBOSS_CLIENT_DIR%\jboss-aop-jdk50-client.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_CLIENT_DIR%\jboss-aspect-jdk50-client.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_CLIENT_DIR%\jboss-ejb3-client.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_CLIENT_DIR%\jboss-ejb3x.jar
set CLASSPATH=%CLASSPATH%;%JBOSS_CLIENT_DIR%\jbossall-client.jar

jndi.properties

java.naming.factory.initial=org.jboss.security.jndi.JndiLoginInitialContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

java.naming.provider.url=qapo:1099
java.naming.security.principal=admin
java.naming.security.credentials=july321

Tuesday, November 25, 2008


When I try to use the "Open Table" feature in SQL Managment Studio
(Standard), I get the following error:

Class does not support aggregation (or class object is remote) (Exception
from HRESULT: 0x80040110 (CLASS_E_NOAGGREGATION))
(Microsoft.SqlServer.SqlTools.VSIntegration)


.. This is a management studio thing - when I opened up from another instance on my machine and connected remotely, I didn't get the problem

Sunday, November 23, 2008

Dual Monitor With Ubuntu

lspci to get the graphics card info (or look it up in /etc/X11/xorg.conf)

There were instructions at:
http://intellinuxgraphics.org/dualhead.html


I had to modify xorg.conf in /etc/X11 so that screen has virtual size big enough to hold both your screen resolutions (for me 2560 x 2048)

then I ran

xrandr --ouput VGA --right-of LVDS