[Deployers on JBoss (Deployers/JBoss)] - Deployers ordering and write access to the private naming co
by deruelle_jean
Hi all,
Sorry in advance for the long post,
As part of the Mobicents Jboss project, we are currently building a sip servlets 1.1 (JSR 289) implementation that run both on top of Tomcat and Jboss. (available at https://sip-servlets.dev.java.net/).
The spec mandates in its section 18.2.7 Annotation for SipFactory Injection that for converged containers, a SipFactory would appear as java:/comp/env/sip//SipFactory in the JNDI mapping or injected as an @Resource annotation. This annotation can be used in any SIP Servlet or a JEE application component deployed on the converged container in the same EAR archive file.
The SipFactory is an interface for a variety of SIP Servlet API abstractions, which could allow an EJB to initiate a sip call by example.
In an EAR, we could have many Sip Servlets Applications, so we would need to first deploy the web applications (contexts) before EJB, webservices, mdb, ... and then when starting those other JEE components be able to access their private naming context (java:/comp/env/) to inject the SipFactory of each app bundled within the EAR.
Could you provide some informations/tips/tricks/guildelines on how to extend/modify the current deployers in order to achieve that ?
I can provide more information if this is not clear enough.
Thanks in advance
Best regards
Jean Deruelle
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132512#4132512
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132512
17 years, 10 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: New package structure
by jmesnil
"timfox" wrote : I have just committed a refactoring to our new package structure.
|
| Here is how it goes:
|
| org.jboss.messaging.core and sub packages.
|
| Contain the messaging core - this is all the stuff needed to make a fully functioning transactional, reliable messaging system.
|
| ...
|
| server - the core server interfaces and implementation
|
| ...
|
| client - this contains the core client interfaces and implementation
|
I'd put the stuff common to the client & server code directly under org.jboss.messaging.core.
I'm thinking mainly about the Message interface (and also the Version interface, anything else?).
I find weird in client code to instantiate an object from server.impl package.
As an aside, we should also extract a subset of the Message interface common to the client and the server. In this interface, all the methods related to MessageReference do not make sense in the context of the client.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132496#4132496
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132496
17 years, 10 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: New package structure
by ataylor
anonymous wrote : Being dependent on the implementation in one place (at construction) is better than being dependent on the implementation in N places (each place the class is used), so it's an improvement.
I agree, but that is what IOC is all about, it class doesnt have to worry about how a pluggable component is constructed.
anonymous wrote : 1) Makes testing a whole lot easier since can easily create mock / fake implementions i agree
anonymous wrote : 2) Makes code easier to read / understand
again i agree
anonymous wrote : 3) If user wants to create their own implementation of the interface they can. If it's a concrete class they'd have to extend that class. That may not be possible or desirable.
defo.
I'm not against using interfaces where we can, just making a point. We have to make sure that we dont just introduce interfaces that are dragged out of the implementation, the abstraction still needs to make sense.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132492#4132492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132492
17 years, 10 months