wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes J2EE technology would allow the system to interact with the LDAP server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "J2EE technology would allow the system to interact with the LDAP server?" Watch "J2EE technology would allow the system to interact with the LDAP server?" New topic
Author

J2EE technology would allow the system to interact with the LDAP server?

Chen ZhiJiang
Ranch Hand

Joined: May 18, 2002
Posts: 72
What are J2EE technology would allow the system to interact with the LDAP server?
Is it JTA or something else?


SCJP SCEA-I
Rufus BugleWeed
Ranch Hand

Joined: Feb 22, 2002
Posts: 1551
JNDI
Darryl A. J. Staflund
Ranch Hand

Joined: Oct 06, 2002
Posts: 303
Hi there,
Come thing to consider about accessing LDAP through J2EE is whether you will use session or entity beans and, if the latter, whether you will use CMP or BMP, as well as CMT or BMT.
In a past project I worked on, we originally used a BMP / CMT entity bean and found that performance suffered using CMT. Once we switched to BMT performance improved quite a bit. But we didn't really achieve good performance until we switched from using entity beans to session beans.
A cautionary note about using LDAP however -- code used to manage deletions, modifications, and insertions can be complex depending on the layout of your schema and the type of updates you need to do.
Darryl
Nick Thaker
Greenhorn

Joined: Jul 07, 2003
Posts: 7
I'm a little confused by one point. Your post seems to suggest you switched from using CMT to BMT entity beans.
Surely entity beans are not allowed to use BMT or have I mis-read your post, or more likely have I missed something?
Thanks.
Ramon Gill
Ranch Hand

Joined: May 15, 2003
Posts: 344
Nik,
You're correct about entity beans not being allowed to be BMT (CMT only). However, Darry1 also mentioned about switching from an entity bean to a session bean. Darly, can you clarify what exactly happened?
Curious,
Ray Gill
Mellon Sun
Ranch Hand

Joined: Feb 20, 2003
Posts: 126
What is BMT/CMT?
Is it the same as BMP/CMP?


SCJP,SCWCD1.3,SCWCD1.4,SCJD,SCBCD5,SCEA5
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
>>>What are J2EE technology would allow the system to interact with the LDAP server?
JNDI
Juan Rolando Prieur-Reza
Ranch Hand

Joined: Jun 20, 2003
Posts: 236
Originally posted by Ramon Gill:
Nik,
You're correct about entity beans not being allowed to be BMT (CMT only). However, Darry1 also mentioned about switching from an entity bean to a session bean. Darly, can you clarify what exactly happened?
Curious,
Ray Gill

It seems to me that, although Entities can have no such BMT attribute,
a BMP Entity that is used outside the context of a Transaction
is effectively having its "transactional state" managed by the Bean.
Perhaps this is what the previous comments are implying.
In my limited knowledge of this topic, it seems that nothing
would stop you from doing this (example)...
You have a SLSB with Never that accesses a BMP Entity which it reads and
updates. Given that you are brave enough to do this, it should work.
If you deploy the session bean as BMT with Required, say, it should still
be able to access and update the BMP Entity. I can see why you might want to informally call the Entity a "BMT" Entity. But its really the persistence of the Entity that the bean is managing, and the
container does the same things to the Entity's lifecycle as it would normally do (threat it as CMT).
I should really set up an executable example of this to confirm
what it does. Comment's from anyone who knows better?


Juan Rolando Prieur-Reza, M.S., LSSBB, SCEA, SCBCD, SCWCD, SCJP/1.6, IBM OOAD, SCSA
 
GeeCON Prague 2014
 
subject: J2EE technology would allow the system to interact with the LDAP server?