FileDocCategorySizeDatePackage
SFSBUUIDUtil.javaAPI DocGlassfish v2 API2939Fri May 04 22:33:14 BST 2007com.sun.ejb.spi.sfsb

SFSBUUIDUtil

public interface SFSBUUIDUtil
author
lwhite

Fields Summary
Constructors Summary
Methods Summary
public java.lang.ObjectbyteArrayToKey(byte[] array, int startIndex, int len)
Return the sessionKey that represents the sessionKey. This has to be super efficient as the container calls this method on every invocation. Two objects obtained from identical byte[] must satisfy both o1.equals(o2) and o1.hashCode() == o2.hashCode()

return
the sessionKey object

public java.lang.ObjectcreateSessionKey()
Create and return the sessionKey.

return
the sessionKey object

public byte[]keyToByteArray(java.lang.Object sessionKey)
Called from the Container before publishing an IOR. The method must convert the sessionKey into a byte[]

return
A byte[] representation of the key. The byte[] could be created using serialization.