/** * Obtains the <code>Class</code> object for the enterprise Bean's primary * key class. */ public Class<?> getPrimaryKeyClass() { if (session) throw Logs.MAIN.primaryKeyNotRelevantForSessionBeans(); return pkClass; }
/** * Create a copy of this locator, but with the given affinity and stateful session ID. If this locator cannot be converted, * an exception is thrown. * * @param sessionId the stateful session ID (must not be {@code null}) * @param affinity the new affinity (must not be {@code null}) * @return the new locator (not {@code null}) */ public StatefulEJBLocator<T> withSessionAndAffinity(SessionID sessionId, Affinity affinity) { throw Logs.MAIN.cannotConvertToStateful(this); }
@Override public final String remoteMessageEJBNotStateful(final EJBIdentifier ejbIdentifier) { return String.format(getLoggingLocale(), remoteMessageEJBNotStateful$str(), ejbIdentifier); } private static final String remoteMessageNoSuchMethod = "No such EJB method %s found on %s";
@Override public final String remoteMessageBadViewType(final EJBIdentifier ejbIdentifier) { return String.format(getLoggingLocale(), remoteMessageBadViewType$str(), ejbIdentifier); } private static final String returnedContextDataKeyOfWrongType = "Context data under org.jboss.private.data was not of type Set<String>";
@Override public final String remoteMessageNoSuchMethod(final EJBMethodLocator methodLocator, final EJBIdentifier ejbIdentifier) { return String.format(getLoggingLocale(), remoteMessageNoSuchMethod$str(), methodLocator, ejbIdentifier); } private static final String remoteMessageSessionNotActive = "Session is not active for invocation of method %s on %s";
@Override public final void incorrectMaxAllowedConnectedNodesValueForCluster(final String value, final String clusterName, final String fallbackDefaultValue) { super.log.logf(FQCN, INFO, null, incorrectMaxAllowedConnectedNodesValueForCluster$str(), value, clusterName, fallbackDefaultValue); } private static final String incorrectMaxAllowedConnectedNodesValueForCluster = "EJBCLIENT000003: Incorrect max-allowed-connected-nodes value %s specified for cluster named %s. Defaulting to %s";
@Override public final void incorrectConnectionTimeoutValueForNodeInCluster(final String value, final String nodeName, final String clusterName, final String fallbackDefaultValue) { super.log.logf(FQCN, INFO, null, incorrectConnectionTimeoutValueForNodeInCluster$str(), value, nodeName, clusterName, fallbackDefaultValue); } private static final String incorrectConnectionTimeoutValueForNodeInCluster = "EJBCLIENT000005: Incorrect connection timeout value %s specified for node %s in cluster named %s. Defaulting to %s";
@Override public final void incorrectInvocationTimeoutValue(final String value, final String fallbackDefaultValue) { super.log.logf(FQCN, INFO, null, incorrectInvocationTimeoutValue$str(), value, fallbackDefaultValue); } private static final String incorrectInvocationTimeoutValue = "EJBCLIENT000009: Incorrect invocation timeout value %s specified. Defaulting to %s";
@Override public final void discardingInvocationResult(final short invocationId) { super.log.logf(FQCN, INFO, null, discardingInvocationResult$str(), invocationId); } private static final String discardingInvocationResult = "EJBCLIENT000011: Discarding result for invocation id %s since no waiting context found";
@Override public final void channelCanNoLongerProcessMessages(final Channel channel) { super.log.logf(FQCN, INFO, null, channelCanNoLongerProcessMessages$str(), channel); } private static final String channelCanNoLongerProcessMessages = "EJBCLIENT000016: Channel %s can no longer process messages";
@Override public final void receivedServerVersionAndMarshallingStrategies(final int version, final java.util.Set<String> marshallingStrategies) { super.log.logf(FQCN, INFO, null, receivedServerVersionAndMarshallingStrategies$str(), version, marshallingStrategies); } private static final String receivedServerVersionAndMarshallingStrategies = "EJBCLIENT000017: Received server version %d and marshalling strategies %s";
@Override public final void failedToSendInvocationCancellationMessage(final short invocationId, final Exception e) { super.log.logf(FQCN, WARN, e, failedToSendInvocationCancellationMessage$str(), invocationId); } private static final String failedToSendInvocationCancellationMessage = "EJBCLIENT000059: Could not send a message over remoting channel, to cancel invocation for invocation id %s";
@Override public final void invalidMessageReceived(final int code) { super.log.logf(FQCN, DEBUG, null, invalidMessageReceived$str(), code); } private static final String invalidMessageReceived = "EJBCLIENT000501: Protocol error: invalid message ID %02x received";
@Override public final void initialModuleAvailabilityReportNotReceived(final EJBReceiver ejbReceiver) { super.log.logf(FQCN, INFO, null, initialModuleAvailabilityReportNotReceived$str(), ejbReceiver); } private static final String initialModuleAvailabilityReportNotReceived = "EJBCLIENT000015: Initial module availability report for %s wasn't received during the receiver context association";
@Override public final void transactionRecoveryMessageNotSupported(final EJBReceiver receiver) { super.log.logf(FQCN, WARN, null, transactionRecoveryMessageNotSupported$str(), receiver); } private static final String transactionRecoveryMessageNotSupported = "EJBCLIENT000061: Cannot send a transaction recovery message to the server since the protocol version of EJBReceiver %s doesn't support it";
@Override public final void greeting(final String version) { super.log.logf(FQCN, INFO, null, greeting$str(), version); } private static final String greeting = "JBoss EJB Client version %s";
@Override public final void taskFailed(final Runnable runnable, final Throwable t) { super.log.logf(FQCN, ERROR, t, taskFailed$str(), runnable); } private static final String taskFailed = "EJBCLIENT000508: Failed to execute Runnable %s";
/** * Get the primary key class. * * @return the primary key class */ public Class<?> getPrimaryKeyClass() { throw Logs.MAIN.primaryKeyNotRelevantForSessionBeans(); }
/** * Create a copy of this locator, but with the given stateful session ID. If this locator cannot be converted, * an exception is thrown. * * @param sessionId the stateful session ID (must not be {@code null}) * @return the new locator (not {@code null}) */ public StatefulEJBLocator<T> withSession(SessionID sessionId) { throw Logs.MAIN.cannotConvertToStateful(this); }