[Design of POJO Server] - Location of Service Binding Manager bindings.xml file
by pilhuhn
I may miss something very obvious here:
configurations are selected on the command line with -c and the selected configuration would also select the port mappings from the service binding managers bindings.xml file.
Now when I want to run 2 configs on the same machine / IPs with different port bindings, I normally need to duplicate e.g. the 'default' directory (or at least data/, tmp/ and work/ ) per configuration.
If I duplicate the whole default/ directory, each instance 'ports-01', 'ports-02'
would have its own conf/bootstrap/bindings.xml file.
This seems odd to me, as it means that bindings.xml could completely different in all of the different instances. Bindings.xml should only exist in one instance at e.g. the jbossas/server/ level. This is how it effectively was in AS4, as users just commented in the MBean which was pointing to the single instance in docs/examples/
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233215#4233215
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233215
15 years, 1 month
[Design of JBoss Portal] - JBoss Portal embedded jackrabbit content repository.
by kiksamerik1
Hi,
I am looking for a way to remotely access the JBoss Portal embedded jackrabbit repository.
I am going the EJB3 programming model way and what I am able to do now is to get a local interface of the JCRCMS in my stateless session bean
@Resource(mappedName = "java:/portal/CMS")
private JCRCMS jcrCms;
And so I can do a lot of cool stuff.
As a saw how Day CRX, JCR-Explorer, JCR Viewer, JCR Controller, can explore jackrabbit repositories, I am wondering if it is possible to do so with the JBoss portal one.
I tried with the apache jcr-explorer web app running on tomcat but i had a problem with jndi name.
I also tried with the JCR BROWSER eclipse plugin (rmi access). No way!
So I took a look at
jboss-portal-2.7.2\server\default\deploy\jboss-portal.sar\portal-cms.sar\META-INF\jboss-service.xml
and realized that the unlike the JCRCMS, the jackrabbit JCR itself isn't bound to JNDI name nor has a JRMP server association.
Is it why i can't access the JCR with the tools i mentionned?
As for the JCRCMS, a remote proxy can be provided by adding
<!-- Proxy factory for CMS -->
<!-- Use the standard JRMPInvoker from conf/jboss-service.xxml -->
<depends optional-attribute-name="InvokerName">jboss:service=invoker,type=jrmp
<!-- The target MBean -->
<depends optional-attribute-name="TargetName">portal:service=CMS
<!-- Where to bind the proxy factory -->
RemoteCMS
<!-- Invoke target method instead of invoke(Invocation mi) -->
true
<!-- Comma-separated list of exported interfaces -->
org.jboss.portal.cms.CMS
<!-- client-side interceptors -->
org.jboss.proxy.ClientMethodInterceptor
org.jboss.proxy.SecurityInterceptor
org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor
org.jboss.invocation.InvokerInterceptor
(according to sohil.shah(a)jboss.com tested and works fine)
Can we get the Jboss Portal embedded jackrabbit JCR to the same level of exposure?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4233113#4233113
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233113
15 years, 1 month