Many thanks for your help, it is exactly what I needed
Regards
JFH
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069530#4069530
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069530
__
Well, since your EjbLocator class is not itself a Service (Stateless EJB or
JMX), you can't inject into it. It's just a POJO; there's no way for the
container to know that it should be scanned for dependencies or injection.
So you can do one of a couple things:
1) Make your EjbLocator itself a
Can you explain a little more please?
In my EjbLocator class, I use
@PersistenceContext(unitName="StatInfoUnit")
private EntityManager manager;
public T find(Class ejb3Class, Object id) {
return manager.find(ejb3Class, id);
}
How should I do?
Caused by: java.lang.NullPointerException
| at com.statinfo.stat.data.EjbLocator.find(EjbLocator.java:66)
Client injection is not supported in AS 4.2.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068708#4068708
Reply to the post :
http://www.jboss
Here is part of the log:
09:29:45,822 INFO [JmxKernelAbstraction] creating wrapper delegate for:
org.jboss.ejb3.entity.PersistenceUnitDeployment
09:29:45,837 INFO [JmxKernelAbstraction] installing MBean:
persistence.units:ear=statinfo.ear,unitName=StatInfoUnit with dependencies:
09:29:45,837 I
Can you please post the stack trace you're getting?
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068293#4068293
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068293
___
I reintroduce persistence.xml:
java:/StatInfoDS
META-INF/orm.xml
<*class>test.MySite
false
<*provider>org.hibernate.ejb.HibernatePersistence
<*properties>
<*property name="hibernate.hbm2ddl.auto" value="update" />
No I have followed your instruction, here is my code:
MySite.java:
package test;
@javax.persistence.Entity
@javax.persistence.Table(name="SI_SITE")
public class MySite {
@javax.persistence.Column(name="siteId")
@javax.persistence.Id
private java.lang.Long siteId;
@javax.persistence.Column(name
JF HEINTZ -
Are you also using @Inject instead of @PersistenceUnit? Post your code?
ejbiva, Did this work for you?
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068039#4068039
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posti
Hello everybody,
I have exactly the same problem. I used to work with Jboss AS 4.2.0.GA. I ahve
migrate to Jboss AS 4.2.1.GA with no difference.
Have you resolved this?
Thanks
JF HEINTZ
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067794#4067794
Reply
ok I will try it ,any way ,Thank you for all ,two gentlemen,:) ,I am from
china.nice meet you
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066057#4066057
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066057
Agree w/ Wayne. Beat me to it. :)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065959#4065959
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065959
___
jboss-user mailing l
instead of
anonymous wrote :
| @Inject
| private EntityManager manager;
|
you should try
| @PersistenceContext(unitName="persistence_unit_name")
| EntityManager manager;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065791#4065791
Reply
hi ALRubinger,the SessionBean just as follows
@Stateful
public class ShoppingCartBean implements ShoppingCart
{
@Inject
private EntityManager manager;
private Order order;
public void buy(String product, int quantity, double price)
{
if (order == null) order = new Order();
Could you post your code for the Session Bean?
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065575#4065575
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065575
___
wolfc,I tried it again.but is same. sessionBean is initiated succeesfuly,but
the accessing to entity bean failed.why?The Exception is same
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064952#4064952
Reply to the post :
http://www.jboss.com/index.html?modul
Don't install any of the preview release into AS 4.2. Use 4.2.1 as installed,
by default it has the latest EJB 3 installation.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064931#4064931
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=post
Dear wolfc ,why use AS 4.2.1 GA? any defect with AS 4.2.0?I am sorry one thing
I should mentioned,that is I have never create related table in the
oracle.because the ejb should create it indtead of me,that is true?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&
Use AS 4.2.1 GA
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064871#4064871
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4064871
___
jboss-user mailing list
jboss-user@list
19 matches
Mail list logo