|
Hi Anshuk, I did not do too many experiments with Geronimo, and I don’t
understand it completely. I can guess that you need to create all the JMS resources
that your client is using in Geronimo. When you create these resources, you give them JNDI names that
you can lookup in your client program. You can create connection factories and destination
(Topic/Queue) in the Geronimo console. But I noticed that not all of this functionality is available in
Geronimo 1.0. For example: I didn’t find a way to create JMS destinations
in the console. I think that currently, these resources should be declared in the
deployment plan of the JCA module, in this case - ActiveMQ. However, ActiveMQ is already embedded in Geronimo, so I don’t
know what should be the procedure. I don’t know if I helped much. If not, maybe one of the Geronimo
team could help more. Kind regards, Coridan Inc. From: Anshuk Chinmoy
Pal Chaudhuri [mailto:[EMAIL PROTECTED] Thanks Shai. It worked and the MDB got deployed. But I am having some kind issue in context
with the JMS Client. Here is the client code: public class JMSClient { public final static String JNDI_FACTORY = "org.activemq.jndi.ActiveMQInitialContextFactory"; public final static String URL = "tcp://localhost:61616"; private static Context jndiContext = null; private static QueueConnectionFactory factory = null; private static Queue receiveQueue = null; private static final String QueueName = "QueueRequest"; /*private static final String
FactoryName = "DefaultActiveMQConnectionFactory";*/ public static Context getInitialContext() throws NamingException { if(jndiContext == null){ Hashtable properties = new Hashtable(); properties.put(Context.INITIAL_CONTEXT_FACTORY,JNDI_FACTORY); properties.put(Context.PROVIDER_URL, URL); properties.put(Context.SECURITY_PRINCIPAL,"geronimo"); properties.put(Context.SECURITY_CREDENTIALS,"geronimo"); jndiContext = new InitialContext(properties); } return jndiContext; } /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub QueueConnection queueConn = null; QueueSession queueSess = null; TextMessage myMessage = null; QueueSender queueSender = null; try { jndiContext = getInitialContext(); ActiveMQConnectionFactory ac = new ActiveMQConnectionFactory(URL); receiveQueue = (Queue) jndiContext.lookup(QueueName); queueConn = ac.createQueueConnection(); queueSess =
queueConn.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); queueSender = queueSess.createSender(receiveQueue); myMessage =
queueSess.createTextMessage(); myMessage.setText("Sample Message"); queueSender.send(myMessage); queueSender.close(); queueSess.close(); queueConn.close(); } catch (Exception e) { e.printStackTrace(System.out); } } } Its throwing that couldn't find the Queue with the name
"QueueRequest". What I want to know is that all the configuration for
the client is correct or not? Warm Regards, From: Hi Anshuk, I am new with Geronimo and I had the same
problem. It is true that there is no module called
org/apache/Geronimo/SystemJMS. It is probably an old JMS module name. Try to replace this name with
geronimo/activemq/1.0/car which is the name of the ActiveMQ JMS module. It should work. Good luck and regards, Coridan Inc. From: Anshuk Chinmoy
Pal Chaudhuri [mailto:[EMAIL PROTECTED] When I deploy
org/apache/geronimo/SystemJMS project. Geronimo report error that...: D:\geronimo-1.0\bin>java -jar
deployer.jar start org/apache/geronimo/SystemJMS Error:
org/apache/geronimo/SystemJMS does not appear to be a the Any pointers what kind of error is that? How do I register the project with config
id org/apache/geronimo/SystemJMS? If I dont then I wont be able to deploy
MDB on the server. Warm Regards, From: Anshuk
Chinmoy Pal Chaudhuri [mailto:[EMAIL PROTECTED] <<ejb-jar.xml>>
<<JMS_CLIENT_MDB_LISTENER_DEPLOYMENT_PLAN.xml>>
<<openejb-jar.xml>> I
am having some issues in deploying MDB's on Geronimo 1.0 reagrding the parent id. I have
created the queues (which is mentioned in the MDB config files) using the
resource adapater file from the
activemq-ra-3.2.1 file. The
resource adapter file contains the parent id: geronimo/activemq-broker/1.0/car
The
parent id of the MDB deployment file has to be org/apache/geronimo/SystemJMS
otherwise
it will throw an error of
java.lang.ClassNotFoundException: org.activemq.ra.ActiveMQActivationSpec,true.
But while deploying the MDB using the parent id: org/apache/geronimo/SystemJMS,there is an
error saying that Unable to
load first parent of configuration TESTING_JMS_MDB No configuration with id:
org/apache/geronimo/SystemJMS I
have attached the configuration files:
The
default activemq-broker application is running. Warm Regards,
|
Title: Stuck in deploying MDB
- RE: Stuck in deploying MDB Shai Wolf
- Newbie question about ejb client jar Jay D. McHugh
- Re: Stuck in deploying MDB Aaron Mulder
- RE: Stuck in deploying MDB Anshuk Chinmoy Pal Chaudhuri
- RE: Stuck in deploying MDB Kailash Vasani
- RE: Stuck in deploying MDB Anshuk Chinmoy Pal Chaudhuri
