Well, storing the serializable SfSB references into the database would be the 
best solution. There is just some problems:

1. obtained EJB3 SfSB references are not serializable at all (if I am wrong, I 
would be pleased to be corrected)

2. EJB3 SfSB are not allowed to use Handle.getEJBObject() This will result in 
an RuntimeException with a note, that the functionality is not implemented. 
Maybe one of the developers will read this and tell us if the functionality 
will be implemented sometime or if it is forbidden for EJB3 beans to retrieve 
this kind of handle.


Back to JNDI :)

I was not able to do any performance test with the JBoss JNDI context, but this 
should not be a bottleneck, cause you only do some bindings and unbindings in a 
single JVM.
I am not an expert in clustering so i cant tell you, if this solution will work 
in a clustering scenario. The JNDI context acts as a directory service and 
should be accessible from all cluster nodes, either by synchronize their 
context or by electing one of the nodes to share its context with the others.


PS: Due to my diploma thesis I  am going to deal with the same problem: storing 
EJB3 SfSB references somewhere, so i can retrieve them later. In my case 
clustering is not a required feature, so i could easily use some kind of static 
Hashmap for the references. But I would be more pleased, if there was another 
solution to this problem.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910679#3910679

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910679


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to