Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MBD DI Query In EJB3.0

 
Ram Venkat
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Today I Tried one MDB example with following entries.

MDB:
step 1 :
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName="destinationName",propertyValue="myMDBQueue") ,
@ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue")
},
mappedName="myMDBQueue"
)

step 2:
@Resource(name="jms/QueueConnectionFactory")
private ConnectionFactory connectionFactory;

@Resource(name="jms/myMDBQueue",mappedName="myMDBQueue")
private Destination saveQueue;



while deploying i am getting following error on admin console (using glassfish)

Deployment has succeeded with following warning, please look at the log file for details

Error occurred during application loading phase. The application will not run properly. Please fix your application and redeploy. WARNING: com.sun.enterprise.deployment.backend.IASDeploymentException: Error while loading application [Ejb3InAction]. Please refer to the server log for more details. com.sun.enterprise.deployment.backend.IASDeploymentException: Error while loading application [Ejb3InAction]. Please refer to the server log for more details.



following error found from log file of my server.


[#|2008-03-27T20:32:52.125+0530|INFO|sun-appserver9.1|javax.resourceadapter.mqjmsra.lifecycle|_ThreadID=10;_ThreadName=main;|MQJMSRA_RA1101: SJSMQ JMSRA Started IRECT|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;MyMDB;com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|MDB00017: [MyMDB]: Exception in creating message-driven bean container: [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue]|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb.mdb|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|com.sun.enterprise.connectors.ConnectorRuntimeException
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration(ActiveJmsResourceAdapter.java:1546)
.java:1380)
at com.sun.

|#]

[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.container.ejb|_ThreadID=10;_ThreadName=main;com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|EJB5090: Exception in creating EJB container [com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue]|#]



[#|2008-03-27T20:32:52.140+0530|SEVERE|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|LDR5004: UnExpected error occured while creating ejb container
com.sun.enterprise.connectors.ConnectorRuntimeException: JMS resource not created : myMDBQueue
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.getPhysicalDestinationFromConfiguration
[ March 28, 2008: Message edited by: Ram Venkat ]
 
Ram Venkat
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one answer this?
 
Rodrigo Cunha
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same problem, did you get a solution to this already?
thks
 
Ram Venkat
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,

Before deploying application, create ConnectionFactroy , Destination through admin console of glassfish server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic