package org.skyve.impl.content.ejb;

import org.skyve.content.AttachmentContent;
import org.skyve.content.BeanContent;
import org.skyve.content.SearchResults;

public interface EJBRemoteContentManagerServer {
	public void put(BeanContent content) throws Exception;

	/**
	 * 
	 * @param content The AttachmentContent to put.
	 * @param index	whether to index of not
	 * @return	The contentId.
	 * @throws Exception
	 */
	public String put(AttachmentContent content, boolean index) throws Exception;

	public AttachmentContent get(String id) throws Exception;
	
	public void remove(BeanContent content) throws Exception;
	
	public void remove(String contentId) throws Exception;
	
	public SearchResults google(String search, int maxResults) throws Exception;
}

@@ -153,16 +153,1511 @@
 sults;%0A%0A
+/**%0A * To Setup remoting comms in wildly 10...%0A * %0A * We need to edit the standalone.xml to enable EJB communication within our dev servers.%0A * start command prompt in admin mode%0A * cd $WILDFLY_HOME/bin/%0A * add-user.%5Bsh%7Cbat%5D with%0A * user type = b (Application User)%0A * username = ejb%0A * groups = %3Cnone%3E%0A * remoting server to server = yes%0A * copy the %3Csecret value=%22c3lzdGVtMDE=%22 /%3E output.%0A * %0A * Open your Wildfly installations' standalone/configuration/standalone.xml%0A * under %3Cmanagement%3E%3Csecurity-realms%3E %0A * add the following (replace the secret value with the one output by add-user)%0A *%09%09%3Csecurity-realm name=%22ejb-security-realm%22%3E%0A *  %09%09%3Cserver-identities%3E%0A *      %09%09%3Csecret value=%22c3lzdGVtMDE=%22/%3E%0A *  %09%09%3C/server-identities%3E%0A *%09%09%3C/security-realm%3E%0A * under %3Csubsystem xmlns=%22urn:jboss:domain:remoting:3.0%22%3E%0A * add the following %0A *%09%09%3Coutbound-connections%3E%0A *%09%09%09%3Cremote-outbound-connection name=%22remote-ejb-connection%22 outbound-socket-binding-ref=%22remote-ejb%22 username=%22ejb%22 security-realm=%22ejb-security-realm%22 protocol=%22http-remoting%22%3E%0A *%09%09%09%09%3Cproperties%3E%0A *%09%09%09%09%09%3Cproperty name=%22SASL_POLICY_NOANONYMOUS%22 value=%22false%22/%3E%0A *%09%09%09%09%09%3Cproperty name=%22SSL_ENABLED%22 value=%22false%22/%3E%0A *%09%09%09%09%3C/properties%3E%0A *%09%09%09%3C/remote-outbound-connection%3E%0A *%09%09%3C/outbound-connections%3E%0A * under %3Csocket-binding-group name=%22standard-sockets%22%3E%0A * add the following %0A *%09%09%3Coutbound-socket-binding name=%22remote-ejb%22%3E%0A *%09%09%09%3Cremote-destination host=%22localhost%22 port=%228080%22/%3E%0A *%09%09%3C/outbound-socket-binding%3E%0A *%0A * @author mike%0A */%0A
 public i

Add wildfly 10 EJB remoting instructions to the top of EJBRemoteContentManagerServer interface.