• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MBD DI Query In EJB3.0

 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one answer this?
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes,

Before deploying application, create ConnectionFactroy , Destination through admin console of glassfish server.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic