[Clustering/JBoss] - MBean -> HASingletonSupport and no injection
by doktora
Hi,
I converted an MBean to an HASingleton. The result was that injection via annotation stopped working (ex: @EJB and @PersistenceContext).
Is this a "feature" or misconfiguration on my part?
Here is some code. Before, DataProvider used to implement MBeanRegistration.
// The interface
| public interface DataProviderMBean extends HASingletonMBean {
| public void startSingleton();
| public void stopSingleton();
| }
|
| // The implementation
| public class DataProvider extends HASingletonSupport implements DataProviderMBean
| {
| @PersistenceContext(unitName = "client")
| protected EntityManager em;
|
| @EJB SystemSettings sys;
|
|
| public void startSingleton()
| {
| System.out.println(em);
| System.out.println(sys);
| }
|
| public void stopSingleton()
| {
| }
| }
from jboss-service.xml:
----------------------
<mbean code="project.DataProvider" name="project:service=dataprovider">
| <depends>jboss.ha:service=HASingletonDeployer,type=Barrier</depends>
| </mbean>
Has anyone encountered this before. It seems illogical to me and is quite frustrating.
cheers!
-- doktora
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035544#4035544
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035544
19 years
[JCA/JBoss] - ra.xml for remote SonicMQ-Broker?
by fhh
I need to talk to a JMS queue on a remote server. I thought that JCA would be the prefered way of connecting to the remote broker.
If I understand the docs correctly I need three things:
1.) The jca implementation from Sonic.
2.) A deployment descriptor to configure the jca adapter call ra.xml.
3.) a *-ds.xml file to bin the adapter to JNDI.
I have 1.) and creating 3.) from the examples shouldn't be too difficult. However, the second point is a major problem. As far as I know the ra.xml is vendor specific but Sonic doesn't have an example on their web site.
Has anybody successfully connected to a remote (or local) Sonic queue? If so could you point me in the right direction about what to put in the ra.xml?
Regards
Felix
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035539#4035539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035539
19 years
[JBoss Seam] - Re: Multiple Domain Quesiton
by fhh
You said:
anonymous wrote :
| I was thinking about how to do this best too for some time and I really think this is useful, not "security by obscurity", because people wont start to fiddle with something if they don't know it's there.
|
anonymous wrote :
| This way normal users can't prove that /admin exists and wont start fiddling with it.
|
What if they find out anyway?
For security you should not rely on people "not fiddling" with your pages. The pages should be secure - FULL STOP. If you have pages that should not be visible to the public than deploy them to a different server or make them available over a different connector.
When it comes to security I am against any snake oil. It gives you the impression that things are secure while they are not - and that makes things worse than they would have been in the first place because it makes you careless.
Having said that I have to add that I am not against the feature suggested. I am just against using it as an security enhancement.
Regards
Felix
P.S.: When I said the "the hostname I use to reach your machine is entirely under my control" I was not talking about http referers. I was refering to the idea of the original poster to make security depend on the hostname you use to access the site.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035536#4035536
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035536
19 years