Ram Venkat

Greenhorn
+ Follow
since Nov 28, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ram Venkat

place jboss.xml in your ejb-jar like jboss.xml

Explanation from Spec

The non-entity superclass serves for inheritance of behavior only. The state of a non-entity
superclass is NOT PERSISTENT. Any state inherited from non-entity superclasses is nonpersistent
in an inheriting entity class.


My quesion : If we are not able to save state inherited from Non-Entity superlass is Non-Persistent in an inherting entity class. Then what is use of this design?
Paul Anil,

One Hour back I Ordered EnthuWare EJB V5. Even my order is also showing as unprocessed. any thing going wrong with ORDER Process.

Thanks
Hi ,


Can any one give good example or explantion of setRollBackOnly / getRollBackOnly method in UserTransaction and EJBContext.


Thanks In Advance
Hi ,

Looking for SCBCD 5.0 exam. new to EJB 3. having some background on EJB2

1) I reading EJB 3 in Action (Manning) and completed the first 7 & 11 chapters.

2) Do i need to read the Part 4 and Part 5? in EJB 3 In Action

3) Pro EJB 3: Java Persistence API (chapters 3 to 7)for Entity API.

4) MiKalai Zaikin guide.

5) EJB Specifications

6) Any other book need to refer for the exam or is this enough?.


Thanks in advance
Yes,

Before deploying application, create ConnectionFactroy , Destination through admin console of glassfish server.
Folks,

Having same dilama,

EJB 3 In Action : 1 � 11
Pro EJB 3: Java Persistence API (chapters 3 to 7)
MiKalai Zaikin guide

Guys pl confirm same?
Hi ,

What is class level injection (I Understood Field / Setter method Injection). but not getting clear view on class level injection.

What is class level injection?
What is the use of class level injection?


Thanks in Advance
[ April 02, 2008: Message edited by: Ram Venkat ]
Hi all,

@Remove (Remove session with client, instance back to pool)
@PreDestroy (Instance Destroyed from Memory.)

Order should be

@Remove
@PreDestroy

Right?
Max Vaha ,

Problem with your DI code in MainPageBean class


Through service instance you need to call all business class implementation methods, @EJB annotation should use on service interface in your case service interface in IHelloEJBLocal.

Hope it will help
[ April 02, 2008: Message edited by: Ram Venkat ]
Gowher Naik ,

Yes, you have to define clearnUp , Remove methods in Interface, no need to declate @Remove in interface.
Can any one answer this?
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)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:209)
at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:524)
at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:536)
at com.sun.enterprise.server.ApplicationLoader.doLoad(ApplicationLoader.java:188)
at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
at com.sun.enterprise.server.AbstractManager.load(AbstractManager.java:225)
at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:217)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
|#]

[#|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.container.ejb|_ThreadID=10;_ThreadName=main;_RequestID=a729b1cb-e7b9-44ff-b49b-8dc6280ea89b;|appId=Ejb3InAction moduleName=MyClass_jar ejbName=MyMDB|#]

[#|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(ActiveJmsResourceAdapter.java:1546)
at com.sun.enterprise.connectors.system.ActiveJmsResourceAdapter.updateMDBRuntimeInfo(ActiveJmsResourceAdapter.java:1380)
at com.sun.enterprise.connectors.inflow.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:170)
at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanCo
Finally i found solution for this problem



@EJB
RemoteInt remote = null; It's creating problem because it's assigned to null;
p s v m(){
remote.display();
}

i changed to above code to
@EJB
[B]RemoteInt remote;

It's working now.

but can any one give explanation on this.
Finally i found solution for this problem



@EJB
RemoteInt remote = null; It's creating problem because it's assigned to null;
p s v m(){
remote.display();
}

i changed to above code to
@EJB
[B]RemoteInt remote;

It's working now.

but can any one give explanation on this.