[Design of EJB 3.0] - Re: JNDI Bindings
by jaikiran
"ALRubinger" wrote :
| So I read many @RemoteBindings as targeted to expose any N number of bindings for the Default Business Interface Proxy.
|
| So if we have:
|
| @RemoteBinding(jndiBinding="Busi1")
| | public interface MyBusinessInterface1{...}
| |
| | @RemoteBinding(jndiBinding="Busi2")
| | public interface MyBusinessInterface2{...}
| |
| | public interface MyBusinessInterface3{...}
| |
| | @Stateless
| | @RemoteBindings({
| | @RemoteBinding(jndiBinding="MyBean")
| | @RemoteBinding(jndiBinding="MySSLBean", clientBindUrl="sslsocket://0.0.0.0:3843")
| | })
| | public class MyBean implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3{...}
|
| ..then we've defined @RemoteBindings at both the interface and EJB level. As a user I'd expect to find in the JNDI Tree:
|
| + Busi1 (Proxy implements MyBusinessInterface1)
| | + Busi2 (Proxy implements MyBusinessInterface2)
| | + MyBean (Proxy implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3)
| | + MySSLBean ((Proxy implements MyBusinessInterface1, MyBusinessInterface2, MyBusinessInterface3) < Exposes SSL Transport
|
| This way, an interface-targeted JNDI Binding is specified at the interface level, and any @RemoteBinding(s) on the class level apply to all Remote Business Interfaces. And it'd require no API changes.
|
|
Going by what we are suggesting here, it looks like we are trying to provide an option for the bean developer to specify multiple bindings for the default business interface proxy.
1) One of the possible reasons, that i can think of, why the bean developer would want to do this is to provide a different transport to use. Is there any other valid reason why the developer would want to do this?
2) Does this multiple bindings apply on to Remote business interfaces? Is there any specific reason why the same reasoning can't be used to have something like @LocalBindings?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176864#4176864
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176864
17 years, 6 months
[Design of Clustering on JBoss] - Re: Removing SFSB in HttpSessionListener
by bstansberry@jboss.com
"pete.muir(a)jboss.org" wrote : (which leads to the SFSB's remove method being called unless you explicitly ask it not to).
How do you "explicitly ask it not to"? The timing of this work is being driven by a support case where the customer is having issues because of the sessionDestroyed call. If there's a workaround, that would be great.
anonymous wrote : I can't immediately see any other cases.
Would including HttpSessionActivationListener in the policy be helpful? Allow/disallow the passivation/activation callbacks that surround replication. Norman Richards told me earlier this year that those were causing issues for you guys, although you found a workaround.
anonymous wrote : Also, it's worth noting that in JBoss 5 we have the ability to automatically insert classes into a Seam apps classpath, allowing us to plugin alternative behaviour - this might be helpful here (Seam currently doesn't provide for plugability here, but it could if needed).
The way I'd been thinking about configuring this is user specifies the classname of the policy they want to use in jboss-web.xml. That would end up in the JBossWebMetaData for the war (WebMetaData in 4.x). If Seam had the ability to manipulate the metadata to specify an appropriate policy impl, that would be nice for users.
For AS 5 I was thinking of having the default policy impl be the Seam-appropriate one that disallows the sessionDestroyed callbacks on undeploy.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176828#4176828
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176828
17 years, 6 months
[Design of JBoss Portal] - Problem with ldap Configuration in jboss portal
by javauser007
Hi,
I'm using jboss portal 2.6.5 and open ldap.
I have created an .ldif file according to my company requirements and it works fine with other applications except Jboss portal.
My problem is, in my .ldif file i mentioned "my-user" for holding username and "my-pwd" for holding password.
and in my ldap_identity-config.xml file i mentioned accordingly as givebellow.
uidAttributeID
my-user
passwordAttributeID
my-pwd
But while i'm trying to access i'm not getting any error on console and simply the page is redirected to some other error page which shows "The user doesn't exist or the password is incorrect " .and in log file i'm getting the message like "Bad password for the user XXXXX" (even if i entered correct user name and password), but if i use "userPassword" name for holding the password in .ldif file it works fine.
if i use "userPassword" name and even if i disabling the following code in ldap_identity-config.xml it works fine.
passwordAttributeID
userPassword
But i should mention uidAttributeID like below
uidAttributeID
my-user
and after doing some R&D on this, finally i came to know that the jboss is not at all reading the following snipet.
passwordAttributeID
my-pwd
but my requirement is i should use "my-pwd" attribute id for holding the password.
How to do that..? any help is appriciated.......
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176823#4176823
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176823
17 years, 6 months
[Design of JBossCache] - Re: Common marshalling infrastructure
by david.lloyd@jboss.com
OK so I thought I'd post an update. The basic framework is "Almost Done (tm)", and so I just want to quickly mention some things that ended up different in the implementation from what was mentioned previously here.
The ability to create object instances is now pluggable via the Creator interface. I provide two implementations: one that just uses reflection, and one that uses the Sun-specific method to create a constructor if a suitable one does not exist.
Object and Class marshallers are no longer separated. This looked good on paper but turned out to be totally useless in practice. Instead, there is a notion of ClassResolvers (this is where you plug in your customized classloader configuration), ClassTables (predefined classes by ID), and ObjectTables (predefined objects by ID).
Externalizers now can create object instances, so it's possible to serialize and deserialize an entire payload without using reflection at all.
Finally, I've created some abstract base classes to make it easier to create a marshaller implementation. Right now we're working on a full-featured "native" implementation, as well as a Java-compatible implementation. Clebert had mentioned that he should be able to produce a JBSER-compatible implementation as well.
Here's the updated API: http://tinyurl.com/6yme33
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4176813#4176813
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4176813
17 years, 6 months