Thank you for the tip. It works.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181729#4181729
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181729
___
jboss-user mailing lis
Is it possible to separate my entityies and session beans? If I don't add
persistence.xml to the JAR with entities hibernate don't see them (no tables
will be created). If I add persistence.xml to both session beans JAR and
entities JAR hibernate generate IllegalArgumentException: Unknown entity
I have some kind of runtime configuration in my application: entity may contain
a reference to the name of some session bean.
| public interface MyPolicy
| {
| public String get();
| }
|
| @Stateless
| @Local(MyPolicy.class)
| public class MyPolicy1 implements MyPolicy
|
Is it possible to support optional certificate login for application in JBoss?
I have an application with simple web form login. There are some computers (not
users) that must have additional access rights and I want to know on
application server what computer is accessing AS. I think using of c
I can't modify bean that I want to lookup.
| @Local
| public interface LookupBeanLocal
| {
| public Object lookup(String name);
| }
|
| @Stateless
| public class LookupBean implements LookupBeanLocal
| {
| public Object lookup(String name)
| {
| // Her
How can I lookup EJB via JNDI like @EJB annotation do it? I don't know neither
application name nor bean name at compile time.
| ...
| @EJB
| private BeanLocal bean;
| ...
|
I tried using InitialContext:
| new InitialContext().lookup("BeanLocal/local");
|
It doesn't work becaus
I want to get path to JAR/EAR/WAR in which current bean is located. I have
custom class-level annotation in my application (like @Stateless) and want to
process it. So I need all class files from my application archive to pass on
tool like Javassist in order to extract all annotated classes.
Vi
Does dynamic class loading really work in JBoss 4.2.2?
On server I have a bean:
Bean.java
| @Stateless
| public class Bean implements BeanRemote
| {
| public void callMe()
| {
| }
| }
|
BeanRemote.java
| @Remote
| public interface BeanRemote
| {
| public
Is there any way to get application WAR/EAR in EJB session bean?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169172#4169172
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169172
__
I have the table from which I want to get unique values for some entities.
| public class UniqueGenerator
| {
| @Id
| @Column(...)
| private String id;
|
| @Column(...)
| private Long currentValue;
| ...
| }
|
Then in data access layer I have to wri
"waynebaylor" wrote : if you remove the stateful bean lookup does the code
still generate an exception?
No, it works properly.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109689#4109689
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=post
I can't get access to stateful bean, but can to stateless one. Why?
| package org.test.ejb;
|
| public interface StatelessRemote
| {
| public void test();
| }
|
| package org.test.ejb;
|
| public interface StatefulRemote
| {
| public void test();
| public
12 matches
Mail list logo