Where do I deploy common EJB helper and utility classes
Hi,
I have a number of EJBs that each use a common set interfaces, exceptions and Value beans. If I deploy using the iasdeploy command line, then I must package up all these common classes within each of the EJB modules - leading to a lot of duplicate code.
Is there a smarter a way of packaged the common classes so that I can include them in the .EAR file but only in one module.
Note: I would prefer to only argument the IAS classpath with 3rd party classes that rarely change and not these common classes e.g. Jlog
cheers
Daniel
Hi,
Try to put all the EJB's in a single package and import the package. I
can think of this solution right now, will keep posting for updates.
Regards
Raj
Daniel Westerdale wrote:
Hi,
I have a number of EJBs that each use a common set interfaces,
exceptions and Value beans. If I deploy using the iasdeploy command
line, then I must package up all these common classes within each of
the EJB modules - leading to a lot of duplicate code.
Is there a smarter a way of packaged the common classes so that I can
include them in the .EAR file but only in one module.
Note: I would prefer to only argument the IAS classpath with 3rd party
classes that rarely change and not these common classes e.g. Jlog
cheers
Daniel
Try our New Web Based Forum at http://softwareforum.sun.com
Includes Access to our Product Knowledge Base!
Similar Messages
-
Steps to deploy an ejb application and running an ejb client in weblogic server6.1
steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
if the client is an simple java application and if the client is a servletHi.
Check out the beanManaged example that ships with WLS and read the accompanying docs. This
is a simple EJB with a servlet that invokes it.
Michael
shekhar sachdev wrote:
steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
if the client is an simple java application and if the client is a servlet--
Michael Young
Developer Relations Engineer
BEA Support -
Deploying the JSPs, Servlets and Java class files
Hello All,
I'm very new to the Oracle 9i AS. We are using Version 1.0.2.2.
How do we deploy the JSPs, Servlets, and Java class files (simple class files, not EJBs)?
plese give us the procedure and stpes how to deply or the links for the same.
Thanks,
Santhosh.Hi
I guess u r running apache-jserv as servlet engine for your jsp and servlets. If its so, jsp files can be run without any additonal configuration by putting the jsp file under document root or any subdirectory and for running servlets u have to add classpath entries for your servlet in jserv.properties file.
To make sure that your servlet engine is working, try
http://servername:port/servlet/IsItWorking, if u get success msg that means servlet engine is working fine.
Hope this will help
Regards
Kumaran -
Where is the getString() implementation for RS and Object class question
Dear all,
I had these two questions ringing since a long time.
1)ResultSet is an interface.
In my jdbc code I have generally written rs.getString() and rs.getInt etc.. without giving a second thought as to where exactly is this getter implemented !
I have RTF API .. without too much help.
Could some one kindly explain Where is the implementation of the getString method ?
2) Could you please tell why the Wait() Notify() and NotifyAll methods have been implemented in the Object class ? What was the need to define em in the Object class ?
Thanks in advance for your time spent on this.
RgdsSarvananda wrote:
In the MySQL driver for example it's implemented in com.mysql.jdbc.ResultSet Right. Now it makes sense to me. Every single db that gives me a driver will have their specific implementation for the interface methods of ResultSet.
>
why do you need that?
..Thats a design decision
One of my friends asked me this and I was caught unawares. Any ideas on what factors could have made this design decision ?
Rgds
>
In the MySQL driver for example it's implemented in com.mysql.jdbc.ResultSet Right. Now it makes sense to me. Every single db that gives me a driver will have their specific implementation for the interface methods of ResultSet.
>
why do you need that?
..Thats a design decision
One of my friends asked me this and I was caught unawares. Any ideas on what factors could have made this design decision ?
A desire to not have to couple your code to a particular database and JDBC driver. It's a classic example of the abstract factory pattern -
Where do i deploy my JSPs , Setrvlets and beans in Oracle iAS .
Any help woild be great !
Thanks
Jinosh PhilipJinosh,
I don't mean to pass the buck here, but your best bet is to check with the iAS documentation.
If you're talking about deploying your BC4J application module to iAS, we haven't certified that yet, but I believe there is some documentation written by our team included in their release notes. Probably for the latest version.
For JSPs, it should just be a matter of putting them in the document root and adding any runtime archives they depend on in the webserver's classpath (generally set via a config file). -
I'm working on deploying common EJBs on Sun 7 app server. I have two or three EJBs that I would like all of my applications to access. But, I don't want to put them in the application ear files.
With ias6.5, we could do this. The common EJB classes had to be in the server classpath (not my favorite solution), but it worked.
With Sun 7, we can't even get the application deployed. I've deployed the common EJB, but when I try to deploy the application, it chokes. It says "Error - unresolved: <ejb link> commonEJB " I tried to take the ejb link property out of the xml, but it didn't like that either.
Is it even possible to deploy standalone EJBs and have multiple applications access them?The ejb link and ejb references must be within the same application (for standards based deployment).
-
EJB accessing web application classes
Hi,
what is the right method to enable packaged EJB to access classes of a
web application? Packaging both the EJB and web application in same
ear is not possible in this situation. We are running WebLogic 6.0 and
ejb is in
wlserver6.0/config/mydomain/applications/EJB.jar
and the classes it should use are in
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
i.e. not packed into war -package. adding
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
other deployments.Please address calling and EJB from a JSP using the EJB to JSP tags...?I'm throwing
ClassCast errros on Object...
William Kemp <[email protected]> wrote:
This is addressed numerous times in this newsgroup and others. So, if
you are
insterested in additional explanations, a search of the newsgroups will
be
productive.
The WLS 6.x classloading scheme for enterprise apps, ejbs, and webapps
does
not permit and ejb to access webapp classes in the WEB-INF/classes directory
unless those classes are placed in the java system classpath, which,
you have
found, creates other problems.
If classes are needed by both webapp and ejb, place them in a utility
jar file
that is packaged in the ear with the ejb, or webapp, or both, and refer
to
them with the Class-Path manifest directive in the ejb jar file or the
webapp
war file.
For the details, see:
http://e-docs.bea.com/wls/docs61/programming/packaging.html#1029830
and the 7.0 stuff is good, too:
http://edocs.bea.com/wls/docs70/programming/classloading.html#1029830
Bill
janne wrote:
Hi,
what is the right method to enable packaged EJB to access classes ofa
web application? Packaging both the EJB and web application in same
ear is not possible in this situation. We are running WebLogic 6.0and
ejb is in
wlserver6.0/config/mydomain/applications/EJB.jar
and the classes it should use are in
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes,
i.e. not packed into war -package. adding
wlserver6.0/config/mydomain/applications/application_name/WEB-INF/classes
to WebLogic's CLASSPATH enables the ejb to deploy but seems to screw
other deployments. -
Define a requirement type and a class for each strategy
Hello,
Where can I define a requirement type and a class for each strategy?Hi
Follow the following path
SPRO -Production-Production Planning- Demand Management -Planned Independent Requirements - Requirements Types/Requirements Classes
then Planning strategy - Define Strategy
regards
ramakant -
I need help for deploy an EJB to Oracle 8i
I want to deploy an EJB on Oracle8i, but my JDeveloper 3.2
doesn't have the option "Enterprise Java Bean to Oracle8i", it
has only the option "CORBA to Oracle8i" in the deploy wizard. Is
this correct?
JDeveloper 3.1 has the option "Enterprise Java Bean to Oracle8i"
in the deploy wizard. why doesn't Jdeveloper appear this option?
I need help or information about this.
thank you.To copy the data of one account to another one, you can use the Shared folder, stored in /Users. You have to log in this user in order to copy the files to the folder, and then, log in the new user and copy the files to the folders where you want to store your files. Another option is to use an external drive.
To start by default with one account, open System Preferences > Login Options, and choose your old account next to "Automatic login" -
Deploying EJB JAR and Application EAR, META-INF directory name
To all:
I had a problem the last couple of days with deploying an EJB and application.
I'm new to WebLogic, maybe this is common knowledge, but I researched it and
didn't find any reference to what I discovered.
I'm using WebLogic Server 7 Service Pack 2 (7.02), on Windows 2000.
My problem was that the application that I was trying to deploy would not deploy
successfully, because a dependent class was not found for the EJB. I tried everything,
but the only thing I could get to work was placing the dependent jar files in
the classpath of the WebLogic server, within the start script. I correctly had
the Class-Path manifest line correct, but the dependent classes were not being
found.
Through trial and error I discovered that the META-INF directory within the JAR
and EAR archives HAS TO BE ALL UPPERCASE for the app server to successfully find
the manifest.mf file and the application.xml file.
As soon as I changed the directory name in both the EJB JAR file and the application
EAR file, the EJB deployed successfully, all dependent classes were then found.
I'm posting this here to help anybody that might have the same problem. There
is not any documentation that I could find that had this directory name requirement
explicitly stated.
Regards,
JDWhat does the manual for the OC4J application server have to say about it all?
-
EJB ACLs and permissions, help needed urgently
Hello,
I am using WL6.1. I need to use weblogic.security.acl.Security.checkPermission
to check if a user has permission to acess an EJB method. I know one can call
the method and check the exception to see yes or no. But that requires knowing
the method signature (parameters and return types etc.).
I read the documentation and here is what I got:
ACLs and permissions for WebLogic EJBs differ from ACLs and permissions for other
kinds of WebLogic Server resources in the following ways:
1. EJB ACLs are configured in the access control properties of the EJB's deployment
descriptor.
2. Permissions are granted on individual methods of a bean; there are no predefined
permissions.
3. Permissions on EJBs are granted to Roles, which map to groups in WebLogic Server.
So if I read it correctly:
1. One does not need to use WL console to configure EJB ACLs? If otherwise, how
do we do it?. There is no documentation for it.
2. What is the ACLName to use when I call the method weblogic.security.acl.Security.checkPermission(java.security.Principal
principal, java.lang.String aclName,
java.security.acl.Permission permission,
char sep)?
I tried with JNDI name and EJB name and nothing seems to work.
Can anyone help me out?
Thanks.
Ling WangIt all depends on where do you want to keep your ACLs and the rest of security.
Simplest will be fileRealm, but it has limited capability (10k ACLs I recall).
You do not heed console to set it up. Here is an excert from ACL file:
acl.read.OT_INTEGRATIONOBJREF=everyone
acl.read.OT_ORGTRANSPORT=OrgAdmin,AppAdmin
acl.read.OT_ORGUNITOFMEASURE=OrgAdmin,AppAdmin
# from nonWorkflowEvents.template
acl.execute.ET_QUERY=everyone
acl.execute.ET_BATCH=everyone
read/execute is action. Caps keep resource (name). On the right hand is a list
of roles. The security call will be lokking like:
boolean result = Security.hasPermission("ET_BATCH",
new PermissionImpl("read"), '.');
It does not throw, just returns a boolean.
Now, this is all about programmatic security. If you are up to declarative, you
need to assign role names to method names in deployment descriptor of your bean
and map them to actual roles.
Also you may have problems while asking security question about another principal
(nto the one currently logged in). Not that it does not work -- just needs caution.
Hope it helps.
"Ling Wang" <[email protected]> wrote:
>
Hello,
I am using WL6.1. I need to use weblogic.security.acl.Security.checkPermission
to check if a user has permission to acess an EJB method. I know one
can call
the method and check the exception to see yes or no. But that requires
knowing
the method signature (parameters and return types etc.).
I read the documentation and here is what I got:
ACLs and permissions for WebLogic EJBs differ from ACLs and permissions
for other
kinds of WebLogic Server resources in the following ways:
1. EJB ACLs are configured in the access control properties of the EJB's
deployment
descriptor.
2. Permissions are granted on individual methods of a bean; there are
no predefined
permissions.
3. Permissions on EJBs are granted to Roles, which map to groups in WebLogic
Server.
So if I read it correctly:
1. One does not need to use WL console to configure EJB ACLs? If otherwise,
how
do we do it?. There is no documentation for it.
2. What is the ACLName to use when I call the method weblogic.security.acl.Security.checkPermission(java.security.Principal
principal, java.lang.String aclName,
java.security.acl.Permission permission,
char sep)?
I tried with JNDI name and EJB name and nothing seems to work.
Can anyone help me out?
Thanks.
Ling Wang -
Compiling EJB files and Deployment Discriptor
Hi,
Could any body tell me step by step process of compiling EJB files and building deployment descriptor. I want to learn from scrap. I search on web but not found material that I need.
Actually I've made a simple EJB example now I want to compile and want to write a deployment descriptor for that using ant or javac.
You can also refer me tutorial describing the process form scrap.
Looking forward,
Regards,
AbbasiAlthough you could deploy each bean in a different .jar file , deploying them
together in an jar file produces a classloader arrangement that allows one ejb
class to refer to another ejb class. Packaging ejb jar files in a ear file produces
a common classloader for the ejb jar files.
"Gary Gu" <[email protected]> wrote:
>
Hi,
To build ejb jar files, we can include all beans (including bean class,
home,
inteface, and other java classes) of the application into one jar file.
Or we
can make ONE jar file for EACH bean (including only bean class, home
and interface.
NOT other dependent classes that will sit in weblogic server classpath).
I would like to know any disadvantage for second method in terms of memory,
class
loading, etc. Or any advantage for the second method
Thanks -
Building+Deploying EAR, EJB and WS Proxy DCs
Hi,
I have three types of DCs in my track:-
1. Deployable Web Service ProxyDC
2. EJB Module DC (which uses classes from Deployable WS Proxy DC)
3. EAR Application DC (for above EJB DC)
I am able to build and deploy EAR of WS Proxy DC successfully.
But I am not able to deployEAR of EJB DC as its unable to locate classes in WS Proxy DC. It gives NoClassDefFoundError while deployment of EAR..
Do I need to make some changes to ejb-j2ee-engine.xml file in EJB DC and application-j2ee-engine.xml file in EAR DC?
Please help.
Thanks and regards,
Amey MogareHi Jan,
I am totally confused here.
EAR DC contains--> EJB DC uses--> WS Proxy DC
Lets start from root DC ie WS Proxy DC.
1. For WS Proxy DC, what public par should I create? and how?
2. I know that for EJB DC, I need only compilation public part.
3. What should be done for EAR? How do I link Web Service proxy DC to EAR DC?
Thanks and regards,
Amey Mogare -
HELP...HELP..Deployment of EJB with JDeveloper
where do the JDeveloper deploy, its EJB jar file, before starting the application?I searched a lot, but couldn't find.
JDeveloper has an in built OC4J(an servlet and EJB container). It deploys in this app server.
-
Dear , please help me to solve my problem in activating my iPhone
Where I lost it since 3 months and when found it cannot activating my ID
Where give me (Your Apple ID has been disabled for security reasons. To enable your account, reset your password at applied.apple.com)
And try to reset my password but cannot please help me where am a poor man and cannot pay another money to solving this problem to any one
My iPhone data
Ime: ****
Model: A1332
FCC ID : BCG-E2380A
IC: 579C-E2380A
MY id at cloud ****
Password ( ****)
My country : Egypt
MY EMAIL : ****
Tell no: ****
<Personal Information Edited By Host>The following may help:
Apple ID: 'This Apple ID has been disabled for security reasons' alert appears - Apple Support
If you didn't receive your Apple ID verification or reset email - Apple Support
Maybe you are looking for
-
Pages on iPad won't import Pages from my computer
This makes me cross ! I have bought Pages for the iPad so I can open and edit Pages documents that I create on my office Mac. However my iPad version will not import them because it will only import from files that are created with iWork 09 ! - my of
-
Hi, I am working on Vendor master data. The standerd syndication map for Vendor to R/3 system has the authorization groups mapped to BEGRU at target. Well source is like - authorization group [Remote key] - Mapped to-------> BEGRU Name
-
How to manually delete and album from iPod Nano v 1.1.3
Dear Forum Members: I want to manually delete an album or two from my iPod Nano. I am have trouble getting iTunes to sync as the sync button is grey in iTunes 11.3 (on XP OS / Desktop). I don't know how to delete an Album to free up space on iPod Nan
-
How can I download widgets in Mavericks??
Every time I try to d/l a widget, I am redirected to iCloud. Any ideas?
-
help