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
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
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
Tuesday, November 18, 2008
GWT - How to change implementation based on properties
In module file:
<define-property name="entryPoint" values="snp,RunManagement,JobTracking">
<replace-with class="au.com.interdev.snp.client.runmgmt.RunManagementUI">
<when-type-is class="au.com.interdev.snp.client.SNPUI">
<when-property-is name="entryPoint" value="RunManagement">
</when-property-is>
</when-type-is></replace-with>
</define-property>
In html file:
<meta name="gwt:property" content="entryPoint=RunManagement">
You can also set the property via some javascript in the module file - see the module file fo i18n
<define-property name="entryPoint" values="snp,RunManagement,JobTracking">
<replace-with class="au.com.interdev.snp.client.runmgmt.RunManagementUI">
<when-type-is class="au.com.interdev.snp.client.SNPUI">
<when-property-is name="entryPoint" value="RunManagement">
</when-property-is>
</when-type-is></replace-with>
</define-property>
In html file:
<meta name="gwt:property" content="entryPoint=RunManagement">
You can also set the property via some javascript in the module file - see the module file fo i18n
Sunday, November 9, 2008
Tuesday, October 7, 2008
Whether to Make Exceptions unchecked
Typically we throw all these BlaUnknown exceptions when creating things.
Like when creating a Device, you need a DeviceType to exist. So the createDevice() method throws a DeviceTypeUnknown exception.
These make method calls very clunky because you have to catch all of these exceptions.
I thought of making them unchecked because you expect these things to exist when you are creating a device, and if they don't, its an internal runtime error.
Shafiek pointed out two reasons against this:
if it does happen, it's could be the result of another user deleting something - in which case this should be conveyed to the current user.
WebServices Need to know what exceptions will be thrwon.
Like when creating a Device, you need a DeviceType to exist. So the createDevice() method throws a DeviceTypeUnknown exception.
These make method calls very clunky because you have to catch all of these exceptions.
I thought of making them unchecked because you expect these things to exist when you are creating a device, and if they don't, its an internal runtime error.
Shafiek pointed out two reasons against this:
if it does happen, it's could be the result of another user deleting something - in which case this should be conveyed to the current user.
WebServices Need to know what exceptions will be thrwon.
Subscribe to:
Posts (Atom)