Get InstanceNumber at Runtime of J2EE-App in 2004s
I wrote a J2EE Application for 2004s and this application needs a at runtime the http-port/InstanceNumber. How can I get this on runtime?
Hi Remo,
Am not sure what u mean by Standard port. In my understanding, Ports can be changed in SMICM transcation code.
The J2EE ports are created via the following formula. Port Number = 50000100*instance_numberport_index
Am very sure the following Threads will answer your question...
Re: Get server and client ip address and port
How to obtain J2EE instance port number from Java?
Dont forget to grant me points Remo!!
Thanks
Subu
Similar Messages
-
MMS J2ee app made with JBOSS want to use it with JRUN
Hello fellow developers,
I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a [email protected], it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!.Hello fellow developers,
I am very interested in creating a small website for uploading photos from my cell phone to a j2ee app running on a JRUN 4 server.
I've downloaded the J2, JSR-212 SAMS Messaging API EJB Reference Implementation, from the nokia site. II also down load an MMSC and SMSC simulator from NOkia, which I believe developers can use in conjunction with testing the above ejb web application.
Briefly this is what I think is happening so far from reading tid bits here and there like the aritcle in Java Boutique.
It seems todescribe the SAMS api as being generic enough to accept all clients that supply SPI, which I believe is the interface that verizon, cingular, or that some other cell phone service might provide. This interface allows the forwarding of a text message or media message to another operation ( like yahoo mobile). Thus, when I send my photo to a myphone#@photo.yahoo.com, it goes to the MMSC that communicates through SPI say a SAMS J2EE applicaiton running on yahoo, which presents my recently snapped cell phone photo in my yahoo phone album.
I would like to test this J2ee app I download from nokia. However, in part of the instructions it claims that a person must down load JBOSS 4.0.
Does any one know if this Nokia J2ee app for JBoss can be used on a JRUN 4?
Can the NOKIA SMSC/MMSC simulator I downloaded work as well with JRUN4, as I notice the word JBOSS when I was installing this Simulator?
Does anyone know where, I can get anymore information on SAMS and how to implement it in a simple J2ee app?
When we can upload a cell phone photofrom the web browser of our phone than we will have arrived!. -
Usage of Object Cache for Java in J2EE apps
Hi,
we are investigating on whether we can use the Object Cache for Java
(OCS4J) for our requirements. The question we have come across is:
What is the designated way of integration for the Object cache to fit
into the J2EE environment? Unfortunately, although the current manuals
group OCS4J into the "Oracle Containers for J2EE Services Guide" and the
suggested package name for the whole thing in JSR 107 seems to be
javax.util.jcache, there is very little documentation on how the
designers would like J2EE programmers to use the cache from within a
J2EE app and all examples given are not from within a J2EE environment.
We are in particular thinking about a hierarchy of several cache
"compartments" (Region->Subregion->group) for different topics and using
the hierarchical name of the cache (region.subregion.group) as the
primary key for BMP Entity beans, each of them having their own
CacheAccess object. Then we would have an API of stateless Session beans
on top of that, which would be determining the cache "compartment", get
the appropriate Entity Bean with the Cache Access object and then do the
required operations on the cache.
But then we immediately run into the question of how the mapping between
Cache Objects and CacheAccess objects will be done etc.
So is there anybody that can give us any hints how to use the OCS4J in
an EJB scenario?
Thanks in advance for any help!
Andreas Loew
[email protected]We have Java client requesting over HTTP to application server. We would like to cache some of the objects created by the servlet while serving the request. Can I use the OCS4J for caching the Java objects. Do I require any software or just copying the JAR file and importing the class would serve the purpose?
Regards
Arun -
Project Conventions for J2EE Apps Early Access...
Hi
I am trying to set up a standardized directory structure for J2EE apps that is flexible enough from a simple webapp to a complex J2EE App with multiple EJB components, WARs...etc..etc...
For this, I turned to Java Blueprints Guidelines, Project Conventions for Enterprise Applications Early Access 1 posted on the Sun's web site...
This document states among follwoing that (quote)
-----(quote)
These conventions, which the Java BluePrints team has followed with its applications (which can be accessed from http://java.sun.com/blueprints/code/index.html), assume that developers use the Ant tool for building projects. Developers using other build tools may have to make slight modifications to the conventions.
----(end quote)
I have downloaded the latest J2EE SDk which has samples directory containing the famous , Adventure BUilder, Petstore, etc, etc.....But they do not follow project directory structure as outlined in this document...Moreover, I found each app has different project directory structure even for the same functional part..
1. Are the J2EE sample apps bundeled with J2EE SDK different than the ones available as separate download?
2. If they are not, where can I download sample apps that demonstrate project conventions outlined in the guidelines document...
Any comments are welcome...
Thanks
zambakHi,
The project conventions are new and early access version1. So it will be changing a little bit and as a result the apps may get a little out of sync. We are currently switching the apps over to match with the project conventions. For an app that dempnstrates project conventions, please see the adventure builder on java.net at https://adventurebuilder.dev.java.net/
We are working on a revised version of the project conventions, so your feedback/comments would be highly appreciated.
-Smitha
Hi
I am trying to set up a standardized directory
structure for J2EE apps that is flexible enough from a
simple webapp to a complex J2EE App with multiple EJB
components, WARs...etc..etc...
For this, I turned to Java Blueprints Guidelines,
Project Conventions for Enterprise Applications Early
Access 1 posted on the Sun's web site...
This document states among follwoing that (quote)
-----(quote)
These conventions, which the Java BluePrints team has
followed with its applications (which can be accessed
from http://java.sun.com/blueprints/code/index.html),
assume that developers use the Ant tool for building
projects. Developers using other build tools may have
to make slight modifications to the conventions.
----(end quote)
I have downloaded the latest J2EE SDk which has
samples directory containing the famous , Adventure
BUilder, Petstore, etc, etc.....But they do not
follow project directory structure as outlined in this
document...Moreover, I found each app has
different project directory structure even for the
same functional part..
1. Are the J2EE sample apps bundeled with J2EE SDK
different than the ones available as separate
download?
2. If they are not, where can I download sample apps
that demonstrate project conventions outlined in the
guidelines document...
Any comments are welcome...
Thanks
zambak -
Is your organization building and deploying J2EE apps? If so, Halo
can help solve one of the toughest issues facing enterprises today:
Finding the root cause of software faults.
"Halo monitors, pinpoints, reports on and provides a source-code level
root cause of software faults in deployed J2EE apps. Halo is unique
because it's the only technology that can give you a root cause
diagnosis in a fully deployed, live production application. Halo has
such low performance overhead that customers deploy their final,
production versions of their applications with Halo enabled.
Used with Web Application Servers like WebLogic, Halo helps ensure
that deployed code is reliable and able to be quickly fixed if
problems turn up. Most important, because Halo is an "always on"
technology, you get all the information you need to rapidly solve a
problem on the first fault. Problem replication and bug reports are
obsolete with Halo
"Halo has a unique ability to provide a root cause diagonosis and
understanding
of software problems in production systems, without needing to
replicate the
issue.
Test on WebLogic proved that Halo runs with extremely low overhead and
is suitable for use in deployed production systems"
Andrew Sliwkowski, Software Engineer
BEA Systems, Inc.
The key is Halo's high performance, low overhead TraceBack
instrumentation technology. Based on technology out of MIT and proven
in the field, TraceBack enables you to instrument JARs, EARs and WARs
within minutes, without touching source code.
Halo is useful throughout the entire application life cycle, from
development through test, beta and deployment.
If you have interest in learning more visit our website at
www.incer.com or email me directly at [email protected] (Rick Martin)I have two questions. We have just started developing apps using jdev9i, 9iAS v2 and are new to the j2ee environment so my questions may be very easy ones.
Question 1: We have set up Oracle pooling connection to our databases. We have a development, test and production database. When I deploy my application, it includes the connections. This is preventing me from moving the EAR files from dev to test to prod without modification and re deploying to my EAR file. Is there a way or a place that I can put my database connections that will not be included in my EAR files and the application still find them?datasources.xml is where the info regradings connection to databases is licated. If you're using 9iAS
you can use EM to create datasource entry at the global level. In OC4J standalone you could use admin.jar
or edit the file. Check out the standalone user's guide at http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_so_usersguide_r2.pdf.
Also, you will othe OC4J docs on OTN.
Question 2: I have a stand alone oc4j set up for our developers to use while testing their applications. The applications include libraries supplied in jdev such as xml parser v2. I do not want to deploy those lib files with the app because I will have to redeploy all my apps if I upgrade jdev. I just want to be able to upgrade the libraries, test the apps and not have to redeploy everything. I can do this by coping the jdev lib to 9iAS but I can't seem to find the right place to put the lib for the stand alone oc4j instance. You can use the library tag within application.xml for server wide availability. Check out the article
http://otn.oracle.com/oramag/oracle/02-sep/o52oc4j_2.html specifically class loading in OC4J section
Any help would be greatly appreciated. Thanks in advance. -
How to read weblogic user/password within a J2EE app ?
All,
There is an J2EE that exposes a webservice and the service can not be secured with ws-security since the service is an exact implementation of an standard that does not mandate ws-secutiry and only insists on SSL/TLS. The application however needs a legitimate authenticated weblogic user for the rest of its work and hence the app has to read a known user created in the weblogic and then read its password as well and authenticate within the app and use that authenticated subject. User can create this predefined user in weblogic and we may ask user to store the same weblogic password also in a CSF like OPSS and then have the app read the CSF, but since the password is available in the weblogic internal ldap, we want to leverage that and read the user's password using any of the weblogic mbean's APIs. Can anyone provide a pointer on how to read a user's password within the Weblogic's embedded ldap ?
We referred to this Developing with the User and Role API - 11g Release 1 (11.1.1) & 6 Managing Security Realms with JMX but could not successfully get it working with J2EE app (Servlet/Filter).You can use JMX
Please find a sample here
List Users and Groups in Weblogic using JMX | Middleware wonders!! -
Is there a way to get a version of the Garage Band app that runs on version 5.1.1? I have an iPad 1 and can't get any higher iOS. The App store is telling me that Garage Band only runs on iOS 7.
Unfortunately the answer is still no.
-
How to get SSO userid to URL-based app?
I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
The version of Portal will be 9.0.2 (or greater).This topic is answered in the PDK forum here:
How to get SSO userid to URL-based app? -
i am trying to install msnbc app from the app store and keep getting an error message. The app will not install. What can i do?
This is asked and answered many times each day. The forum search bar is on the right side of this page.
Disable your firewall/security software and try again. -
How do i get a list of all the apps i have purchased this year
how do i get a list of all the apps have purchased this year and how much each app was
Check your iTunes purchase history (click your email address in the upper right corner in the iTunes App Store-> log in -> click Purchase History). This gives you a comprehensive list of apps you've purchased.
Cheers, Tom -
How can i get a list of all the apps i purchased last year?
i would like to get a summary of all the apps i purchased as well as the prices
Open App Store and sign in with your Apple ID. Click on the Purchase icon in the toolbar. This will list out all your App Store purchases. It will not list prices, but you can look those up for each purchased application.
There should also be an account summary. Click on the Account link under Quick Links on the right. -
How can I purchase an iTunes card online and get the code online to purchase apps.
How can I purchase an iTunes card online and get the code online to purchase apps.
iTunes Gift Options
http://support.apple.com/kb/HT2736 -
Hi, just need to know how to get my music, video, pictures and apps form my iPhone to my new laptop as the old computer, which I used before was stolen. I only have my phone left and if I try to conect it to my new laptop it's trying to delete everything.
I have also noticed all my settings won't stay set, example....I removed the check mark from "third party cookies", the when I close Firefox and reopen the check mark is back, also my tool bar has screwed up....can't reset, been having trouble the up grade.
-
how can I get my entire itunes account music, apps, etc accessible on my new mac book from my old pc?!!!!! shouldn't this be easy?
If you still have the old PC, look at this article: Move iTunes from PC to MAC, http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html
-
How can I get a refund for an unwanted app that I just purchased?
How can I get a refund for an unwanted app that I just purchased?
Click here and ask the iTunes Store staff for a refund. Consider whether or not you want to do this now carefully first; if they grant one, you'll need a very good reason to get another from them.
(111524)
Maybe you are looking for
-
How to transfer iphone5 contacts from work outlook on my iPhone to mac
I have bought my iphone5 from my employer when leaving. The work outlook account contains over 400 contacts that I want to transfer to my own mac. Tried synching in icloud but they dont transfer. I want the data on my mac so I can use icloud and not
-
Running Oracle 9i and 10g on same box
Hi Guys! :-) I have a development box (Win2003) that I run one Oracle 9i home on, and I wish to install a 10g home aswell. I need to install the new Oracle 10g listener on a different port. Can someone please give me some directions / how to guide ho
-
View Setup time in the DS planning board
Hello Everyone. I maintained setup time for a resource but it is not displaying in DS planning board. What could have I missed? Thanks. Michelle
-
I have to migrate data from one table to another where one of the columns is the same in both tables. e.g. ID COLUMN Is there a way to migrate data such that I can update all rows in the ID column in table 2 with corresponding values from ID column i
-
Is it possible to use the new sharing articles (facebook, twitter, email) using a single edition licence? If yes, how? I'll check that option on the viewer builder but I haven't find it. Regards, Felipe