[JBoss Messaging Users] - JBoss Messaging Newbie Needs Help
by ericy
Hi,
I am relatively new to JBoss Messaging and I am currently evaluating it in the context of a project.
The project itself consists of the development of a distributed Java application based on a client/server architecture. The clients are disparate UI technologies (Swing, Web and Command Line for now) running on Windows and Linux machines. The Server runs on Red Hat.
The application is not built using J2EE. We have a proprietary application distribution mechanism that consists of managing multiple JVM processes running on one or more machines (each process is a distributed component).
We use JBoss Messaging for inter-process communication. Being relatively new to this technology I would like your expert opinions on the following questions:
1. Is our decision to use JBoss Messaging for Client/Server communication a sensible one, especially in the context of GUI Clients? What Challenges should we anticipate?
2. We are using a standalone JBoss Messaging Server. Can this be configured for Single Sign-On?
3. The JBoss Messaging documentation suggests that it can be configured to use JAAS authentication and authorisation. The JAAS example that ships with the JBoss Messaging Server shows a CallbackHandler that does nothing. How do you know that the client's credentials are valid? How do you know what the client is authorised to do and how is this handled when using JAAS? I am assuming that jboss-users.xml and jboss-configuration.xml files are not required when using JASS.
4. When using JASS + LDAP server what exactly gets stored in the LDAP server? Are the files jboss-users.xml and jboss-configuration.xml still required? I am assuming no, in which case user accounts and credentials must be stored in the LDAP server. If so in what format and how is this accessed by the JBoss Messaging Server?
I've had look on the internet for JBoss tutorials around this subject but couldn't find much.
Any help would be greatly appreciated.
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269766#4269766
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269766
15 years, 2 months
[JBoss OSGi Users] - JBossOSGi 1.0.0.Beta5 Released (09-Dec-2009)
by thomas.diesler@jboss.com
I am happy to announce the release of JBossOSGi-1.0.0.Beta5.
http://jbossosgi.blogspot.com/2009/12/jbossosgi-100beta5-released.html
The release comes with improvements in the following areas
* Improved JBoss Microcontainer based Framework support.
* Improved Eclipse Equinox Integration support.
* Added Enterprise OSGi Transaction support.
* Added Compendium Event Admin support.
* Added JBossXB based XML Binding support.
* Added Lifecycle Interceptor support.
For details please have a look at the latest version of our User Guide.
Here are the change log details
Bug
* [JBOSGI-129] - Filter behaviour change in r4v42
* [JBOSGI-137] - Cannot parse Bundle-SymbolicName
* [JBOSGI-153] - Cannot parse Import-Package parameters
* [JBOSGI-187] - Husky SocketInvocation may block forever
* [JBOSGI-199] - Use thread safe collections where information is mutable
* [JBOSGI-212] - Cannot refresh Microcontainer service
Feature Request
* [JBOSGI-125] - Add ManagedFramework service
* [JBOSGI-202] - Allow override of where the bootstrap file comes from
Task
* [JBOSGI-157] - JTA (RFC-98) - Initial Implementation
* [JBOSGI-181] - Add EventAdmin as available service
* [JBOSGI-182] - Release JBoss OSGi 1.0.0.Beta5
* [JBOSGI-183] - Introduce notion of OSGi Interceptors
* [JBOSGI-188] - Separate DeployerService from SPI
* [JBOSGI-190] - Allign getting started guide with latest release
* [JBOSGI-200] - Split getParameter(s) calls into directives/attributes
* [JBOSGI-215] - Update Blueprint to 1.0.0.Alpha3
* [JBOSGI-216] - Update to Apache Felix-2.0.2
* [JBOSGI-217] - Update to Eclipse Equinox-3.5.1
* [JBOSGI-218] - Update to jboss-osgi-common-1.0.3
* [JBOSGI-219] - Update to jboss-osgi-husky-1.0.2
* [JBOSGI-220] - Update to jboss-osgi-jmx-1.0.2
* [JBOSGI-221] - Update to jboss-osgi-jndi-1.0.2
* [JBOSGI-222] - Update to jboss-osgi-microcontainer-2.0.9
* [JBOSGI-223] - Update to jboss-osgi-spi-1.0.3
* [JBOSGI-224] - Update to jboss-osgi-xml-binding-2.0.2.Beta3
* [JBOSGI-225] - Update to jboss-osgi-apache-xerces-2.9.1.SP3
* [JBOSGI-226] - Update to jboss-osgi-hotdeploy-1.0.3
* [JBOSGI-227] - Update to jboss-osgi-framework-1.0.0.Alpha2
* [JBOSGI-228] - Update to jboss-osgi-jaxb-2.1.10.SP3
* [JBOSGI-229] - Add jboss-osgi-deployment-1.0.0
* [JBOSGI-230] - Add jboss-osgi-jta-1.0.0
* [JBOSGI-231] - Add jboss-osgi-reflect-2.0.2
* [JBOSGI-232] - Add jboss-osgi-webapp-0.7.2
* [JBOSGI-233] - Update to org.apache.felix.configadmin-1.2.4
* [JBOSGI-234] - Add org.apache.felix.eventadmin-1.0.0
Enjoy
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269763#4269763
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269763
15 years, 2 months
[JBoss Portal Users] - ClassCastException while Integrating Spring SWF portlet with
by nikhild
Hi ,
I am using Jboss Portal 2.7 and Spring WebFlow 2.0
While integrating Spring sample portal with Jboss portal it gives error below,
java.lang.ClassCastException: org.jboss.portal.portlet.impl.jsr168.api.PortletContextImpl cannot be cast to javax.servlet.ServletContext
at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:108)
at org.jboss.portletbridge.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:195)
at org.springframework.faces.webflow.FlowFacesContext.newInstance(FlowFacesContext.java:69)
at org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:70)
at org.springframework.webflow.engine.ViewState.doEnter(ViewState.java:179)
at org.springframework.webflow.engine.State.enter(State.java:194)
at org.springframework.webflow.engine.Flow.start(Flow.java:535)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:364)
at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:222)
at org.springframework.webflow.executor.FlowExecutorImpl.launchExecution(FlowExecutorImpl.java:140)
at org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:235)
at org.springframework.webflow.mvc.portlet.FlowHandlerAdapter.startFlow(FlowHandlerAdapter.java:228)
a
Does any one have a solution for this?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269751#4269751
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269751
15 years, 2 months
[EJB] - NullPointerException with an ejbRemove
by lukemanner
Hi,
I have some problem with a remove of a stateless ejb.
The error code is:
2009-12-09 10:24:10,993 ERROR [STDERR] java.lang.NullPointerException
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:101)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.invocation.MarshalledValue.get(MarshalledValue.java:91)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.createInvocationCopy(InvokerInterceptor.java:327)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.invocation.InvokerInterceptor.invokeLocalMarshalled(InvokerInterceptor.java:287)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(MarshallingInvokerInterceptor.java:61)
| 2009-12-09 10:24:10,994 ERROR [STDERR] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
| 2009-12-09 10:24:10,995 ERROR [STDERR] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
| 2009-12-09 10:24:10,995 ERROR [STDERR] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
| 2009-12-09 10:24:10,995 ERROR [STDERR] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
| 2009-12-09 10:24:10,995 ERROR [STDERR] at $Proxy725.remove(Unknown Source)
|
Is there someone who can help me?
Thanks in advance,
Luke
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269750#4269750
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269750
15 years, 2 months
[Security] - Use EJB inside a LoginModule, repeated calls to login()
by Thomas.Woelfl
We try to access a EJB stateless service inside a custom LoginModule. The problem is that the login() method is called again and again when the the EJB stateless service is accessed.
| public class DatabaseServerLoginModuleTm3 extends DatabaseServerLoginModule
| {
| @Override
| public boolean login() throws LoginException
| {
| try {
| boolean successLogin = super.login();
| return successLogin;
| }
| catch ( LoginException e ) {
| increaseFailedLogins();
| throw e;
| }
| }
|
| private void increaseFailedLogins()
| {
| if ( this.getClaimedUsername() == null ) {
| return;
| }
| InitialContext ctx = new InitialContext();
| return (PersonServiceLocal) ctx.lookup( "PersonServiceBean/local" );
|
| PersonServiceLocal personService = lookupContactService();
| Person person = personService.getPersonByUsername( this.getClaimedUsername() );
|
| personService.increaseFailedLoginsForPerson( person );
| }
| }
|
In jboss.xml we defined the security domain "TM3-security" for all beans:
| <jboss>
| <security-domain>java:/jaas/TM3-security</security-domain>
| <unauthenticated-principal>guest</unauthenticated-principal>
| </jboss>
|
In login-config.xml the used login-modules are defined:
| <application-policy name = "TM3-security">
| <authentication>
| <login-module code = "org.jboss.security.auth.spi.RunAsLoginModule" flag = "required">
| <module-option name="roleName">LoginModuleUser</module-option>
| </login-module>
|
| <login-module code = "com.tm3.erp.core.business.DatabaseServerLoginModuleTm3" flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "dsJndiName">java:/PostgresDS</module-option>
| <module-option name = "ignorePasswordCase">false</module-option>
| <module-option name = "principalsQuery">xy</module-option>
| <module-option name = "rolesQuery">xy</module-option>
| </login-module>
|
| <login-module code="org.jboss.security.ClientLoginModule" flag="required">
| <module-option name="multi-threaded">true</module-option>
| <module-option name="restore-login-identity">true</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
We tried to moved the called EJB (PersonService) to a different Security Domain using the annotions:
a) @org.jboss.ejb3.annotation.SecurityDomain("java:/jaas/other")
b) @org.jboss.security.annotation.SecurityDomain ("java:/jaas/other")
No success. Any ideas? Thank you.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4269747#4269747
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4269747
15 years, 2 months