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.