if ( jndiEnvironment != null )
{
try
{
ser = serialize(jndiEnvironment);
ref.add(new BinaryRefAddr("jndiEnvironment", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the jndiEnvironment properties.");
}
}
ref.add(new StringRefAddr("loginTimeout",
String.valueOf(getLoginTimeout())));
if ( perUserDefaultAutoCommit != null )
{
try
{
ser = serialize((Serializable)perUserDefaultAutoCommit);
ref.add(new BinaryRefAddr("perUserDefaultAutoCommit", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the perUserDefaultAutoCommit properties.");
}
}
if ( perUserMaxActive != null )
{
try
{
ser = serialize((Serializable)perUserMaxActive);
ref.add(new BinaryRefAddr("perUserMaxActive", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the perUserMaxActive properties.");
}
}
if ( perUserMaxIdle != null )
{
try
{
ser = serialize((Serializable)perUserMaxIdle);
ref.add(new BinaryRefAddr("perUserMaxIdle", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the perUserMaxIdle properties.");
}
}
if ( perUserMaxWait != null )
{
try
{
ser = serialize((Serializable)perUserMaxWait);
ref.add(new BinaryRefAddr("perUserMaxWait", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the perUserMaxWait properties.");
}
}
if ( perUserDefaultReadOnly != null )
{
try
{
ser = serialize((Serializable)perUserDefaultReadOnly);
ref.add(new BinaryRefAddr("perUserDefaultReadOnly", ser));
}
catch (IOException ioe)
{
throw new NamingException("An IOException prevented " +
"serializing the perUserDefaultReadOnly properties.");