[jboss-user] [JBoss Messaging] - defining/creating messaging Queue through @ActivationConfigP

2009-07-20 Thread yashendrac
I wonder if it is mandatory to define Queues and Topics in xml in JBoss 
Messaging. Is there any way to make it work the way it used to in Jboss MQ, 
i.e.  just use the @ActivationConfigProperty annotation in message consumer/MDB 
without defining in any xml?

In jboss MQ I don't have to define Queues and Topics in any configuration xml 
if I have @ActivationConfigProperty annotation in my MDB like this:

@MessageDriven(activationConfig = {
  | @ActivationConfigProperty(propertyName = "destinationType", 
propertyValue = "javax.jms.Queue"),
  | @ActivationConfigProperty(propertyName = "acknowledgeMode", 
propertyValue = "Auto-acknowledge"),
  | @ActivationConfigProperty(propertyName = "subscriptionDurability", 
propertyValue = "Durable"),
  | @ActivationConfigProperty(propertyName = "destination", 
propertyValue = "queue/event"),
  | @ActivationConfigProperty(propertyName = "messageSelector", 
propertyValue = "Alarm = FALSE")})
  | 

But after moving same code to Jboss Messaging my MDB is not able to find the 
specified Queue in that MDB 
@ActivationConfigProperty(propertyName = "destination", propertyValue = 
"queue/event")

I am able to resolve this problem by defining all my Queues and Topics in 
destination-service.xml located under deploy/messaging/destination-service.xml.

But I don't want to configure these in any xml outside of my application and 
would prefer using annotation in class itself.

Any suggestion would be highly appreciated.



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244325
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: defining/creating messaging Queue through @ActivationCon

2009-07-20 Thread yashendrac
So probably its combination of @ActivationConfigProperty annotations defined in 
my MDB which make it work in JBoss 4.2.1, but why not in JBoss5.1.0 as both 
supports EJB3 though by default JBoss 4 uses JBoss MQ and JBoss 5 uses JBoss 
Messaging.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244368
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: defining/creating messaging Queue through @ActivationCon

2009-07-20 Thread yashendrac
Thank you gaohoward. I will post this query in EJB forum.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244366
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Microcontainer] - How to convert @Service MBean POJO to microcontainer POJO

2009-07-06 Thread yashendrac
I have lot of MBean Services created using @Service and @Management 
annotations. I am not using -service xml instead using @Service annotation so 
that I can use annotations like @EJB.These Services depends on various EJBs and 
to get reference of ejbs from Services I am using @EJB annotation. This is how 
the code is:

@Service
  | @Management(StartupMBean.class)
  | @Depends("jboss:name=SmcBarrier,type=Barrier")
  | public class UserStartup
  | implements StartupMBean {
  | 
  | @EJB
  | private ObjectManagerLocal objectManager;
  | @EJB
  | private PropertyManagerLocal propertyManager;
  | .
  | .
  | public void start() {
  | .
  | .
  | }
  | 
  | 

It would be highly appreciated if anybody let me know how to achieve all these 
if I want convert my POJO mbeans to microcontainer beans.

Are there equivalent  annotations in microcontainer for @EJB , @Depends.
Or it is not possible in microcontained bean to achieve these through 
annotations without using -beans.xml



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242025
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMS over HTTPS:any alternative to jboss 4

2009-06-24 Thread yashendrac
Thanks for the wiki link timfox

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239806
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Encrypt KeyStore-Password in a Tomcat-Connetctor for 4.2

2009-06-01 Thread yashendrac
Andre,
I confirmed that it is broken in JBoss5.0.1, I am not sure since when it is 
broken but it was working on JBoss4.2.1. I also confirmed that it is fixed in 
JBoss5.1.0

I checked the source code for following classes under jbosswe.jar and 
jbossweb-service.jar

1.org.jboss.net.ssl.JBossImplementation.java

2.org.jboss.net.ssl.JBossSocketFactory.java  

3.org.apache.tomcat.util.net.jsse.JSSESocketFactory

JBossSocketFactory overrides following methods from tomcat's 
JSSESocketFactory

protected TrustManager[] getTrustManagers(String keystoreType, String algorithm)
  | protected KeyManager[] getKeyManagers(String keystoreType, String algorithm,
  |   String keyAlias)
  | 

But in tomcat JSSESocketFactory under JBoss5.0.1, method signatures are changed 
by adding additional String parameter String keystoreProvider. 
So methods are changed to following in tomcat JSSESocketFactory 

protected TrustManager[] getTrustManagers(String keystoreType,
  | String keystoreProvider, String algorithm)
  | protected KeyManager[] getKeyManagers(String keystoreType,
  |   String keystoreProvider,
  |   String algorithm,
  |   String keyAlias)
  | 

So JBossSocketFactory was not overriding these methods anymore and despite 
providing SSLImplementation="org.jboss.net.ssl.JBossImplementation" these two 
methods from JSSESocketFactory were invoked in place of JBossSocketFactory.

This is fixed in JBoss5.1.0

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234480
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Security & JAAS/JBoss] - Re: Encrypt KeyStore-Password in a Tomcat-Connetctor for 4.2

2009-05-28 Thread yashendrac
Hi Andre,

Any luck finding the solution of this problem I was also running into same 
problem only difference is that I tried this same configuration with JBoss 
5.0.1.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233978
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: JMS over HTTPS:any alternative to jboss 4

2009-05-27 Thread yashendrac
Thank you gaohoward.

I will refer the example you mentioned.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4233667
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: MBean POJO(jboss ejb3 annotations) NOT working in jboss

2009-05-20 Thread yashendrac
Ok I followed the steps mentioned in this FAQ

http://www.jboss.org/community/wiki/WhydontmyAS42xServicebeansdeployinAS5

my service had @EJB for ejb dependency injection, after removing that I can see 
start method of my service is invoked but still it is stuck in PreInstall 
status, this is the message in log
 
  Deployment "WebServer" is missing the following dependencies:
  | Dependency "smc.jboss:service=KeyStoreService" (should be in state 
"Create", but is actually in state "PreInstall")

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232361
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - MBean POJO(jboss ejb3 annotations) NOT working in jboss 5

2009-05-20 Thread yashendrac
I am not able to deploy MBean POJO in jboss 5 though it works in jboss4.
I have an MBean POJO developed using jboss ejb3 annotations @Service and 
@Management

something like this :

import org.jboss.ejb3.annotation.Management;
  | import org.jboss.ejb3.annotation.Service;
  | import javax.ejb.EJB;
  | @Management( KeyStoreServiceMBean.class )
  | @Service( objectName = "smc.jboss:service=KeyStoreService" )
  | public class KeyStoreService implements KeyStoreServiceMBean {
  | 
  |   @EJB
  |   private KeyStoreSession keyStoreSessionBean;
  |...
  |...
  | }
  | 

As using jboss ejb3 annotation, in place of bundling in .sar with *-service or 
*-bean. I have directly bundled it in jar and there is no *-service or *-bean 
xml for defining this MBean.

This same jar gets deployed without any complaint in jboss 4 but it never gets 
deployed in jboss 5 only message i see in log is 


2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added 
bean(jboss.j2ee:ear=core.ear,jar=core.jar,name=KeyStoreService,service=EJB3) to 
KernelDeployment of: core.jar
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel] 
installing bean: 
jboss.j2ee:ear=core.ear,jar=core.jar,name=AlarmsListener,service=EJB3
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   
with dependencies:
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   
and demands:
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232351
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Management, JMX/JBoss] - Re: JBoss 5: MBean depends on EJB3 Staleless Bean according

2009-05-20 Thread yashendrac
I am also getting some problem with MBean in jboss 5.
I have an MBean POJO developed using jboss ejb3 annotations @Service and 
@Management

something like this :

import org.jboss.ejb3.annotation.Management;
  | import org.jboss.ejb3.annotation.Service;
  | import javax.ejb.EJB;
  | @Management( KeyStoreServiceMBean.class )
  | @Service( objectName = "smc.jboss:service=KeyStoreService" )
  | public class KeyStoreService implements KeyStoreServiceMBean {
  | 
  |   @EJB
  |   private KeyStoreSession keyStoreSessionBean;
  |...
  |...
  | }
  | 

As using jboss ejb3 annotation, in place of bundling in .sar with *-service or 
*-bean. I have directly bundled it in jar and there is no *-service or *-bean 
xml for defining this MBean.

This same jar gets deployed without any complaint in jboss 4 but it never gets 
deployed in jboss 5 only message i see in log is 


2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added 
bean(jboss.j2ee:ear=core.ear,jar=core.jar,name=KeyStoreService,service=EJB3) to 
KernelDeployment of: core.jar
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel] 
installing bean: 
jboss.j2ee:ear=core.ear,jar=core.jar,name=AlarmsListener,service=EJB3
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   
with dependencies:
  | 2009-05-20 16:25:42,877 INFO  [org.jboss.ejb3.deployers.JBossASKernel]   
and demands:
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232349
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - JMS over HTTPS:any alternative to jboss 4

2009-05-19 Thread yashendrac
We are migrating to JBoss5.0.1 from JBoss4.2.1
Our application uses jbossmq-httpil.sar(HTTP/HTTPS Invocation Layer, part of 
JBossMQ in jboss4, which allows accessing JBossMQ service over the HTTP or 
HTTPS protocols)

In new Jboss Msssing, jbossmq-httpil.sar is not there. Does anybody know the 
alternative to jbossmq-httpil in JBoss 5.

Also I am accessing HTTPServerILServiceMBean from my code to set some values.
Code:

   1. HTTPServerILServiceMBean mbean = (HTTPServerILServiceMBean) 
MBeanProxyExt.create(HTTPServerILService  
  |2. MBean.class, "jboss.mq:service=InvocationLayer,type=HTTPS");  
  |3. mbean.setURLHostName(address.getHostAddress());  
  | 
  | HTTPServerILServiceMBean mbean = (HTTPServerILServiceMBean) 
MBeanProxyExt.create(HTTPServerILService MBean.class, 
"jboss.mq:service=InvocationLayer,type=HTTPS"); 
mbean.setURLHostName(address.getHostAddress());
  | 

Any suggestion would be highly appreciated.

Thanks 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232032
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Multiple data sources when using MySQL

2009-05-18 Thread yashendrac
Hi,

I am also getting same error related to MySQL.

  Deployment 
"jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is 
missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment 
"jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is 
missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" 
is missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is 
missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" 
is missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.destination:name=ObjectUpdates,service=Topic" 
is missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.destination:name=audit,service=Queue" is 
missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging.destination:name=report,service=Topic" is 
missing the following dependencies:
  | Dependency "jboss.messaging:service=PostOffice" (should be in state 
"Create", but is actually in state "Configured")
  |   Deployment "jboss.messaging:service=PostOffice" is missing the following 
dependencies:
  | Dependency "jboss.jgroups:service=ChannelFactory" (should be in state 
"Create", but is actually in state "** NOT FOUND Depends on 
'jboss.jgroups:service=ChannelFactory' **")
  | 

Any Idea if commenting out following is safe?

jboss.jgroups:service=ChannelFactory
 in the file deploy/messaging/mysql-persistence-service.xml
  | 

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231746
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Messaging] - Re: Destination COnfiguration issue with Jboss 5 and Messagi

2009-05-18 Thread yashendrac
Hi Raj,

Any luck finding the solution for this problem.

I am also facing exactly same problem only difference is that I am trying to 
use MySql ds and persistance files from example folder.

Please post your solution if you found any.

Thank You
Yashendra

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4231744
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user