How to change JNDI service provider for EJB's?
I need EJBean's home interface to be bound to another JNDI provider, not Weblogic.
How can I do it?
The most simple solution is not working: to specify <jndi-name> in weblogic-ejb-jar.xml
for bean as "xxx:bean_name".
By JNDI rules for such names context factory with name com.sun.jndi.url.xxx.xxxURLContextFactory
will be used. But for Weblogic this does not work. An exception is thrown during
bean deployment -
javax.management.MalformedObjectNameException: ObjectName: Invalid value -> xxx:bean_name
at javax.management.ObjectName.validateAndAdd(ObjectName.java:440) at javax.management.ObjectName.initObjectName(ObjectName.java:409)
at javax.management.ObjectName.<init>(ObjectName.java:254) at weblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:196)
at weblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelegate.java:90)
at weblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate.java:83)
at weblogic.ejb20.internal.BaseEJBHomeMBean.<init>(BaseEJBHomeMBean.java:33) ......................
This is not an answer on my
question - My questions was: how to force a Welogic EJB Container to BIND EJBean's
home interface to another JNDI Service provider, not Weblogic.
But you wrote how to use JNDI in general - I already know how to use it :)))
Phil.
"VSK" <[email protected]> wrote:
Hi
Have a look at the code below
private Context getInitialContext () throws NamingException
String from = "CtxHelper::getInitialContext ";
String webLogicHostUrl = t3://SERVERNAME:9001
Logger.debug(from, "Begin Method", 3);
Hashtable h = System.getProperties();
h.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory
h.put(Context.PROVIDER_URL, webLogicHostUrl);
return new InitialContext(h);
} //end getInitialContext
This way we will get the InitailContext and then do a jndi lookup using
the
Context object as follows
ctx.lookup..........
Now in the above code replace weblogic.jndi.WLInitialContextFactory by
ur
provider.
Hope this helps.
-VKS
"Phil Peshin" <[email protected]> wrote in message
news:[email protected]...
I need EJBean's home interface to be bound to another JNDI provider,not
Weblogic.
How can I do it?
The most simple solution is not working: to specify <jndi-name> inweblogic-ejb-jar.xml
for bean as "xxx:bean_name".
By JNDI rules for such names context factory with namecom.sun.jndi.url.xxx.xxxURLContextFactory
will be used. But for Weblogic this does not work. An exception isthrown
during
bean deployment -
javax.management.MalformedObjectNameException: ObjectName: Invalidvalue -> xxx:bean_name
at javax.management.ObjectName.validateAndAdd(ObjectName.java:440)at
javax.management.ObjectName.initObjectName(ObjectName.java:409)
at javax.management.ObjectName.<init>(ObjectName.java:254) atweblogic.management.WebLogicObjectName.<init>(WebLogicObjectName.java:196)
atweblogic.management.runtime.RuntimeMBeanDelegate.register(RuntimeMBeanDelega
te.java:90)
atweblogic.management.runtime.RuntimeMBeanDelegate.<init>(RuntimeMBeanDelegate
..java:83)
atweblogic.ejb20.internal.BaseEJBHomeMBean.<init>(BaseEJBHomeMBean.java:33)
Similar Messages
-
How to Change Analysis Services Server for Power View
I can't seem to figure out how to change what SSAS server/instance that is used to build the cubes for Power View items uploaded to SharePoint. I tried changed the trusted servers listed in the Excel Services service application but if I remove the original
SSAS server (which of course is a test server, not to be used for production) and have only the prod SSAS instance listed the reports fail to load with the generic 400 error. Is there another setting that I'm missing?
Thanks,
KyleHi ,
Since this issue is related to SQL Server, I will move this thread to SQL Server forum. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Best Regards,
Wendy
Wendy Li
TechNet Community Support -
How to fix this error "this iPad is not able to complete the activation process. Please press Home and start over. If the issue persists, please visit your nearest Apple Store or Authorized service provider for more information or replacement"? When I plugged in my iPad this popped up!
Hi csreddy,
If you are receiving a message to contact an Apple Retail Store or Authorized Service Provider for help updating from iOS 3, click on the link below to initiate that support:
Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
http://support.apple.com/en-us/HT204204
Update your device using iTunes
If you can’t update wirelessly, or if you want to update with iTunes, follow these steps:
Install the latest version of iTunes on your computer.
Plug in your device to your computer.
In iTunes, select your device.
In the Summary pane, click Check for Update.
Click Download and Update.
If you don't have enough free space to update using iTunes, you'll need to delete content manually from your device.
Find out what to do if you get other error messages while updating your device.
Last Modified: Jan 12, 2015
Apple - Find Locations
https://locate.apple.com
Contact Apple for support and service - Apple Support
http://support.apple.com/en-us/HT201232
Regards,
- Judy -
I have changed by service provider and have a new number which i use on Iphone 5. The number shown on Facetime and Imessage is still the old one. How do i update it
Deregister your old phone from here if you regsitered it
https://supportprofile.apple.com -
How to select service provider for software update
When i try to update of my nokia3110c mobile within it by using 'software update' option from phone menu, it shows 'select service provider'. Please tell me how to select this service provider.
Thank you.Hi veesh,
Thanks for your post and welcome to the Nokia forum.
Did you try to update your phone via Nokia suite?
Let us know how you get on and feel free to post any other questions you may have.
Regards,
Pfrancoise
If this post has helped you to solve this issue, please press the "accept as solution" icon. Kudos would always be appreciated. -
Do I have to use opmn:ormi in the JNDI Service Provider URL?
Trying to create a new Enterprise Message Source (JMS) and it's not updating the Data Object. Tested the OC4J queue using a Java POJO listener ... sending and receiving text message seems okay. I created a basic Plan (there's only one data element for now) and it is running.
Any suggestions would be appreciated!Here is a document from Ranga on how to connect BAM to OJMS (hope it helps):
Database Trigger - OJMS - BAM Integration Sample
Last updated 07/27/05 Ranga
OJMS setup
Step 1 - Oc4j setup
Install Standalone/Developer 10g OC4J or production version Application server.
Developer version download -http://www.oracle.com/technology/software/htdocs/devlic.html?/technology/software/products/ias/htdocs/utilsoft.html#1012 or from http://bamqa.us.oracle.com/bamqaWiki/attach?page=Downloads%2Foc4j1012_extended.zip
Modify following configuration files
o Add entry in <OC4J_Install_location>\j2ee\home\config\data-sources.xml for your database, use below sample replacing HOST, PORT and SERVICE_NAME in url tag
<data-source
class="com.evermind.sql.DriverManagerDataSource"
name="TTTDS"
location="jdbc/OracleTTTDS"
xa-location="jdbc/xa/OracleXaBamDS"
ejb-location="jdbc/OracleEjbBamDS"
connection-driver="oracle.jdbc.driver.OracleDriver"
username="scott"
password="tiger"
url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=stank04)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=db10g)))"
inactivity-timeout="30"
/>
o Add a resource provider entry in <OC4J_Install_location>\j2ee\home\config\application.xml
<resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
<description>BAM for Generic</description>
<property name="datasource" value="jdbc/OracleTTTDS"/>
</resource-provider>
Step 2 - Database setup
Install 10g or 9i database, below steps will setup AQ in sample schema scott.
Connect to database as sys and grant AQ permissions to scott user
connect sys/welcome1@db10g as sysdba
grant SELECT_CATALOG_ROLE to scott;
GRANT EXECUTE ON DBMS_APPLY_ADM TO scott;
GRANT EXECUTE ON DBMS_AQ TO scott;
GRANT EXECUTE ON DBMS_AQADM TO scott;
GRANT EXECUTE ON DBMS_CAPTURE_ADM TO scott;
GRANT EXECUTE ON DBMS_FLASHBACK TO scott;
GRANT EXECUTE ON DBMS_STREAMS_ADM TO scott;
execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY', 'scott', TRUE);
grant aq_administrator_role to scott;
grant execute on dbms_lock to scott;
grant execute on sys.dbms_aqin to scott;
grant execute on sys.dbms_aqjms to scott;
Connect to database as scott user and create AQ
connect scott/tiger@db10g
execute dbms_aqadm.stop_queue( queue_name => 'bam_ttq' );
execute dbms_aqadm.drop_queue( queue_name => 'bam_ttq');
execute DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'bam_ttq_tab');
execute dbms_aqadm.create_queue_table( queue_table => 'bam_ttq_tab', queue_payload_type => 'sys.aq$_jms_text_message', multiple_consumers => true );
execute dbms_aqadm.create_queue( queue_name => 'bam_ttq', queue_table => 'bam_ttq_tab' );
execute dbms_aqadm.start_queue( queue_name => 'bam_ttq' );
Database Trigger setup
Run the following sql connected to database as scott user, it creates a trigger on EMP table.
create or replace trigger send_recs_Employee AFTER INSERT OR Update ON EMP
FOR each row
declare
xml_complete varchar2(8000);
v_enqueue_options dbms_aq.enqueue_options_t;
v_message_properties dbms_aq.message_properties_t;
v_msgid raw(16);
temp sys.aq$_jms_text_message;
v_recipients dbms_aq.aq$_recipient_list_t;
Begin
temp:=sys.aq$_jms_text_message.construct;
v_recipients(1) := sys.aq$_agent('istante',null,0);
v_recipients(2) := sys.aq$_agent('test',null,0);
v_message_properties.recipient_list := v_recipients;
xml_complete :=
'<?xml version="1.0"?><row>' ||
'<EMPNO>' || :new.EMPNO || '</EMPNO>' ||
'<ENAME>' || :new.ENAME || '</ENAME>' ||
'<JOB>' || :new.JOB || '</JOB>' ||
'<MGR>' || :new.MGR || '</MGR>' ||
'<HIREDATE>' || :new.HIREDATE || '</HIREDATE>' ||
'<SAL>' || :new.SAL || '</SAL>' ||
'<COMM>' || :new.COMM || '</COMM>' ||
'<DEPTNO>' || :new.DEPTNO || '</DEPTNO>' ||
'</row>' ;
temp.set_text(xml_complete);
dbms_aq.enqueue(queue_name => 'bam_ttq',
enqueue_options => v_enqueue_options,
message_properties => v_message_properties,
payload => temp,
msgid => v_msgid );
End ;
BAM Setup
Administrator - Fix the classpaths for oc4j jar files for Oracle (AS JMS and OJMS) Message source type using the OC4J_Install_location. If you are using production App Server you need to add extra classpath entry <App Server Location>\opmn\lib\optic.jar
Architect - Create a new Enterprise message source of type Oracle (AS JMS and OJMS)
Initial Context Factory: com.evermind.server.rmi.RMIInitialContextFactory
JNDI Service Provider URL: o For Standalone oc4j: ormi://machine name/
Where machine name is OC4J installed host
o For Production App Server: opmn:ormi://<machine name>:<opmn request port>:home
Where machine name is App server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
TopicConnectionFactory Name: java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
Topic Name: java:comp/resource/BAMTTT/Topics/bam_ttq
JMS Message Type: TextMessage
Durable Subscriber Name (Optional): Istante
Message Selector (Optional):
Client ID (Optional): ClientID
Name Flow name Type Max size Formatting
row. row. String 4000 (none).
Enterprise Link Design Studio create a basic plan with
o Oracle BAM Enterprise Message Receiver, selecting the message source you created in above step.
o Display sink Grid
Create file jndi.properties in C:\Program Files\Oracle BAM\j2re1.4.1_01\lib with entries
java.naming.security.principal=admin
java.naming.security.credentials=welcome1 (App server/Oc4j password)
Running
Start OC4J
To enqueue messages update or insert records in EMP table connected to database as scott user
Insert into emp values (&empno,'FORD','ANALYST',7566,sysdate,60000,3000,20);
Run update on the enterprise plan
In above sample no parsing of the data is done, its got as one single string.
OJMS setup
Configuring JMS
http://www.oracle.com/technology/books/pdfs/2352_Ch06_FINAL.pdf
Oracle® Application Server Containers for J2EE Services Guide 10g Release 2 (10.1.2) for Windows or UNIX
http://iasdocs/iasdl/101200doc/web.1012/b14012/toc.htm -
JNDI environment properties for EJB in deployment descriptor
Is it possible to deploy an EJB on weblogic 6.0 such that the EJBHome
object is bound using JNDI to a different JNDI server such as ldap
server instead of the weblogic server by specifying JNDI env.
properties like PROVIDER_URL, INITIAL_CONTEXT_FACTORY in the
deployment descriptor? That is use the weblogic built-in deployer but
bind the JNDI names to a different JNDI server. For this, can the
EJBHome objects be treated as just RMI (over IIOP) objects and bind
them (stubs of the RMI objects) using the Sun's JNDI service provider.
The goal is that thereafter the Home JNDI names can be looked up by
RMI clients and the interface methods invoked.
Thanks,
... arunMust I put the war and jar files in the same ear ?
oh..ft...my boss is killing me ..
package..repackage...package..repackage..and test ??
Could anybody tell me how to refer a SLSB without put the webApp
and the EjbApp together in an Ear file ??
thanks very much!!!! -
Records management: Getting record GUID in Service Provider for Transactio
Hello,
I wan't to use a service provider for transaction (or may be reports) in a record.
I the called transaction (Z-transaction) I need the GUID of the record (from which this transaction was calle). Afterwards we want to add automatically a new document into the record.
Does anybody know, how to transfer (or receive) the ID of the record in our Z-transaction or z-report? Or are there any other techniques how to do this?
Many thanks for any advice,
MatthiasHi Espen,
Basic searching for documents and records can be done via the organizer part of the screen. It's the left part of the screen with the role-based view and the history. Select the folder for eg records and open it. Select the record type you want to search on and right click on it adn select search. You then can to enter your parameters (attribute values) on which you want to search. Same for the documents.
The search you are reffering to is the generic search in which it's possible to search over multiple documenttypes at once. For this however you need to customize RM parts. In the registry for once you have to change some settings on the element type (sps) of the generic document search element (e.g SRM_SPS_GEN_DOCUMENT_DEMO in the service provider SRM_SP_GEN_DOCUMENT). These options are only available in the newer systems (e.g. Netweaver 4s). Not in SAP Enterprise 4.7. So for the generic search options you"ll need more indepth knowlegde on how to customize SAP RM.
There is a kind of howto on the generic search options on: http://service.sap.com/recordsmanagement in the media library under documentation called "How To Guide: Cross Search based on Property Unification" .
Hope this helps.
Best regards,
Tjalling-Jan Gerkema -
(261680070) Q SYNCH-11 How do my web service methods accees EJBs and java classes?
A<SYNCH-11> How do my web service methods accees EJBs and java classes?
A<SYNCH-11> It is simple to use java classes, just do it as you would ordinarily.
The .jws file really contains a simple class so you can program with it in the same
way that you would use a regular Java class.
To use an EJB you can go and access it directly as you would with any EJB remote
client (lookup home stub, create, etc) or if the EJB is deployed to WLS you can use
a control to provide a very simple wrapper to the EJB. We will see this in detail
on Thursday in the ADVC module.Futher information about the possibility of callback:
It may be possible for a synchronous only web service (i.e. MS .net) to even paticipant
in the callback functionality of asynchronous web services. If the client implements
the appropriate methods for the callback but listens for them on a different port
or binding than the SOAP request, then web service may be able to build a response
if the client's "callback URL" is submitted as the beginning part of a conversation.
Watch the BEA developer forum (http://dev2dev.bea.com) for more information about
this approach and other tips and techniques for building web services.
"Adam FitzGerald" <[email protected]> wrote:
>
Q<SYNCH-03> I heard that MS .net only implements synchrnonus method? If
this is true.
Does it means my async methods will only work with J2EE clients?
A<SYNCH-03> I do not know the limitations of .net but let me point out that
is very
difficult to provide asynchronous web service method invocation (this is
different
from an asynchronous web service). HTTP as a general communication protocol
is based
on a request and response paradigm so your client libraries will mostly
likely be
expecting a response even if it is empty (check the asynchronous example
from today
to see that the start method still returns an empty response). You must
distinguish
this from the notion of an asynchronous web service which is a business
operation
that occurs on the server whose return value/result is not directly associated
with
building response to the client. An asynchronous web service can (and generally
will)
be started and stopped with web service operations that are invoked synchronously.
Thus MS .net clients can still be client to WLS hosted web services. -
How to change "No Password required" for Guest to "Yes"account under Somarsoft Dumpsec
Check Content:
Verify all accounts require passwords.
Run the DUMPSEC utility.
Select "Dump Users as Table" from the "Report" menu.
Select the following fields, and click "Add" for each entry:
UserName
SID
PswdRequired
AcctDisabled
Groups
If any accounts have "No" in the "PswdRequired" column, this is a finding.
Some built-in or application-generated accounts (e.g., Guest, IWAM_, IUSR, etc.) may not have this flag set, even though there are passwords present. It can be set by entering the following on a command line: "Net user <account_name> /passwordreq:yes".Hi Malik,
How to change "No Password required" for Guest to "Yes"account under Somarsoft Dumpsec
Please contact SystemTools Technical support to get more efficient support regarding this matter:
http://www.systemtools.com/support.htm
http://www.systemtools.com/toolboard/
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
How to change JNDI dynamically in DB adapter and FTP adapter
Hi every one,
Please any one explain "How to change JNDI dynamically in DB adapter and FTP adapter" with screen shots
Thanks in advanceYES, very much possible. Only with CRUD operation on a table is possible.
Please refer the below URL, where you can see the multiple check box selected under "Perform an operation on a table" under Operation Type.
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#BDCGADFJ
*7) Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question.*
Going forward, please raise this as a separate thread. So that people will get benefited.
Thanks,
Vijay -
Can we buy iphone from one country and then change the service provider
Hi,
I wanted to know if I buy an iphone from india today can I change the service provider when i come to U.S.A. for my studies in JanIt seems to depend on the country where you bought your phone.
In Australia, with a post-paid account I can have my carrier unlock the phone for free so I can use the phone on a pre-paid account in the States when I am there.
My carrier here gets paid regardless as I am on a 24-month contract. -
RecordsManagement: Error in service provider for DOMEA: SAP-Office Mails
Hi all,
I am trying to use the default service provider for Domea:SAP office mails( RMPS_LINK_SP_MAIL).
but i am getting an error " Standard activity not defined " Message no. SRM_ORGANIZER106.
can anyone please help me in this regard...
Also the scenario i am working for is: some particular mails coming to my out look inbox needs to be attached to the record. how to achieve this scenario.... will the above service provider helps me. or is there any other way to achieve this. I am using SAP Records Management not PSRM.
Thanks & Regards
kavitha.Hi all,
I am trying to use the default service provider for Domea:SAP office mails( RMPS_LINK_SP_MAIL).
but i am getting an error " Standard activity not defined " Message no. SRM_ORGANIZER106.
can anyone please help me in this regard...
Also the scenario i am working for is: some particular mails coming to my out look inbox needs to be attached to the record. how to achieve this scenario.... will the above service provider helps me. or is there any other way to achieve this. I am using SAP Records Management not PSRM.
Thanks & Regards
kavitha. -
How to change daemon (service) start order by systemd?
how to change daemon (service) start order by systemd? I want getty start after all other service have been started.
hoanglan87 wrote:If you do that, you'll not see services messages when booting.
That's the whole point. Once your system's working fine, you don't need to slow your boot down with those messages. You can always get them back by hitting the "e" key (with Grub) and editing the kernel boot line. Unless you've set your time-out to 0, which is probably not a good idea for most of us. Those service messages don't seem to be logged anywhere (although, there's lots of other logging you can enable). Anyway, we're thread-drifting here, sorry. -
How to stop the services provided by net80 and oracle9i
how to stop the services provided by net80 and oracle9i during the installation of forms6i & reports6i in windows 2003 server
Go into the control panel and choose services ... stop the services.
Maybe you are looking for
-
How do I transfer all my data from my original iPad 1 to my new iPad Air?
How do I transfer all my data from my original iPad 1 to my new iPad Air?
-
IPhoto doesn't open after restoring Mac
Hi, I recently restored my mac from Time Machine backup, post restoration the iPhoto app wont open up, even the logo is not displayed, all i can see is the default App logo. Please advice how can i reinstall the iPhotos App. I have tried with dif
-
When is the Oracle 10.1.0.4 patchset available?
Hi, Can someone tell me when the 10.1.0.4 patchset will be available please? Cheers, Warren
-
CS4 Encore cannot open project
Why after creating a CS4 Pro project, Dynamic Link to Encore shows error "Cannot open project; The folder for this project cannot be found?
-
To All, I recently purchased a brand new Dell Laptop Inspiron 5521 Windows 7 Home Premium with purchase of Microsoft Office 2013 and already preinstalled Adobe Reader X. When trying to insert object being a saved pdf documentinto Word Doc., I keep re